Allow disable_ht to override 11n configuration in AP mode
This is being done only for station mode, extend it to AP mode as well. Signed-hostap: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
This commit is contained in:
parent
a625ff6059
commit
5cbf5fd9bd
1 changed files with 11 additions and 2 deletions
|
@ -81,14 +81,23 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
|
|||
*/
|
||||
if (wpa_s->hw.modes) {
|
||||
struct hostapd_hw_modes *mode = NULL;
|
||||
int i;
|
||||
int i, no_ht = 0;
|
||||
for (i = 0; i < wpa_s->hw.num_modes; i++) {
|
||||
if (wpa_s->hw.modes[i].mode == conf->hw_mode) {
|
||||
mode = &wpa_s->hw.modes[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (mode && mode->ht_capab) {
|
||||
|
||||
#ifdef CONFIG_HT_OVERRIDES
|
||||
if (ssid->disable_ht) {
|
||||
conf->ieee80211n = 0;
|
||||
conf->ht_capab = 0;
|
||||
no_ht = 1;
|
||||
}
|
||||
#endif /* CONFIG_HT_OVERRIDES */
|
||||
|
||||
if (!no_ht && mode && mode->ht_capab) {
|
||||
conf->ieee80211n = 1;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue