Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/packages/extras-buildpkgs/hostapd/debian/patches/300-noscan.patch
Views: 3964
--- a/hostapd/config_file.c1+++ b/hostapd/config_file.c2@@ -3411,6 +3411,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,3bss->ieee80211w = 1;4#endif /* CONFIG_OCV */5#ifdef CONFIG_IEEE80211N6+ } else if (os_strcmp(buf, "noscan") == 0) {7+ conf->noscan = atoi(pos);8+ } else if (os_strcmp(buf, "ht_coex") == 0) {9+ conf->no_ht_coex = !atoi(pos);10} else if (os_strcmp(buf, "ieee80211n") == 0) {11conf->ieee80211n = atoi(pos);12} else if (os_strcmp(buf, "ht_capab") == 0) {13--- a/src/ap/ap_config.h14+++ b/src/ap/ap_config.h15@@ -932,6 +932,8 @@ struct hostapd_config {1617int ht_op_mode_fixed;18u16 ht_capab;19+ int noscan;20+ int no_ht_coex;21int ieee80211n;22int secondary_channel;23int no_pri_sec_switch;24--- a/src/ap/hw_features.c25+++ b/src/ap/hw_features.c26@@ -477,7 +477,8 @@ static int ieee80211n_check_40mhz(struct27int ret;2829/* Check that HT40 is used and PRI / SEC switch is allowed */30- if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch)31+ if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch ||32+ iface->conf->noscan)33return 0;3435hostapd_set_state(iface, HAPD_IFACE_HT_SCAN);36--- a/src/ap/ieee802_11_ht.c37+++ b/src/ap/ieee802_11_ht.c38@@ -252,6 +252,9 @@ void hostapd_2040_coex_action(struct hos39return;40}4142+ if (iface->conf->noscan || iface->conf->no_ht_coex)43+ return;44+45if (len < IEEE80211_HDRLEN + 2 + sizeof(*bc_ie)) {46wpa_printf(MSG_DEBUG,47"Ignore too short 20/40 BSS Coexistence Management frame");48@@ -412,6 +415,9 @@ void ht40_intolerant_add(struct hostapd_49if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)50return;5152+ if (iface->conf->noscan || iface->conf->no_ht_coex)53+ return;54+55wpa_printf(MSG_INFO, "HT: Forty MHz Intolerant is set by STA " MACSTR56" in Association Request", MAC2STR(sta->addr));57585960