mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 10:31:08 +00:00
wifi: mac80211: mlme: clean up supported channels element code
Clean up the code building the supported channels element a little bit by using a local variable instead of the long line. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
b048c98447
commit
64f4b93afa
1 changed files with 3 additions and 2 deletions
|
@ -1078,8 +1078,9 @@ static int ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
|
|||
*pos++ = WLAN_EID_SUPPORTED_CHANNELS;
|
||||
*pos++ = 2 * sband->n_channels;
|
||||
for (i = 0; i < sband->n_channels; i++) {
|
||||
*pos++ = ieee80211_frequency_to_channel(
|
||||
sband->channels[i].center_freq);
|
||||
int cf = sband->channels[i].center_freq;
|
||||
|
||||
*pos++ = ieee80211_frequency_to_channel(cf);
|
||||
*pos++ = 1; /* one channel in the subband*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue