mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
mac80211: zero center freq segment 2 in VHT oper IE
Clear the Channel Center Frequency Segment 2 in VHT operation IEs to avoid sending non-zero values if the SKB wasn't zeroed before adding the VHT operation IE. Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com> [change commit message a bit - not necessarily just mesh related] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
99e7ca44bb
commit
f020ae40b0
@ -2324,6 +2324,8 @@ u8 *ieee80211_ie_build_vht_oper(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap,
|
|||||||
if (chandef->center_freq2)
|
if (chandef->center_freq2)
|
||||||
vht_oper->center_freq_seg2_idx =
|
vht_oper->center_freq_seg2_idx =
|
||||||
ieee80211_frequency_to_channel(chandef->center_freq2);
|
ieee80211_frequency_to_channel(chandef->center_freq2);
|
||||||
|
else
|
||||||
|
vht_oper->center_freq_seg2_idx = 0x00;
|
||||||
|
|
||||||
switch (chandef->width) {
|
switch (chandef->width) {
|
||||||
case NL80211_CHAN_WIDTH_160:
|
case NL80211_CHAN_WIDTH_160:
|
||||||
|
Loading…
Reference in New Issue
Block a user