Changeset 41828


Ignore:
Timestamp:
2014-07-25T16:29:58+02:00 (4 years ago)
Author:
nbd
Message:

hostapd: prevent spurious 20/40 mhz channel bandwidth switches if noscan is enabled

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/hostapd/patches/300-noscan.patch

    r41022 r41828  
    3131  
    3232        hostapd_set_state(iface, HAPD_IFACE_HT_SCAN); 
     33--- a/src/ap/ieee802_11_ht.c 
     34+++ b/src/ap/ieee802_11_ht.c 
     35@@ -221,6 +221,9 @@ void hostapd_2040_coex_action(struct hos 
     36        if (!(iface->conf->ht_capab & HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET)) 
     37                return; 
     38  
     39+       if (iface->conf->noscan) 
     40+               return; 
     41+ 
     42        hdr_len = data - (u8 *) mgmt; 
     43        if (hdr_len > len) 
     44                return; 
     45@@ -319,6 +322,9 @@ void ht40_intolerant_add(struct hostapd_ 
     46        if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) 
     47                return; 
     48  
     49+       if (iface->conf->noscan) 
     50+               return; 
     51+ 
     52        wpa_printf(MSG_INFO, "HT: Forty MHz Intolerant is set by STA " MACSTR 
     53                   " in Association Request", MAC2STR(sta->addr)); 
     54  
Note: See TracChangeset for help on using the changeset viewer.