mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 01:04:03 -05:00
mesh: Set correct secondary channel offset if HT40 is disabled
Previously, secondary channel offset could be non zero even though disable_ht40=1. This patch fixes it. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
6b6286eb78
commit
05aed438cd
@ -1901,6 +1901,11 @@ void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
|
|||||||
if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR))
|
if (pri_chan->flag & (HOSTAPD_CHAN_DISABLED | HOSTAPD_CHAN_NO_IR))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifdef CONFIG_HT_OVERRIDES
|
||||||
|
if (ssid->disable_ht40)
|
||||||
|
return;
|
||||||
|
#endif /* CONFIG_HT_OVERRIDES */
|
||||||
|
|
||||||
/* Check/setup HT40+/HT40- */
|
/* Check/setup HT40+/HT40- */
|
||||||
for (j = 0; j < ARRAY_SIZE(ht40plus); j++) {
|
for (j = 0; j < ARRAY_SIZE(ht40plus); j++) {
|
||||||
if (ht40plus[j] == channel) {
|
if (ht40plus[j] == channel) {
|
||||||
|
Loading…
Reference in New Issue
Block a user