Update hw mode after ACS selects the channel
hostapd based automatic channel selection doesn't update the hardware mode after the channel is selected. This change specifically helps channel 14 which can operate only in IEEE 802.11b mode. Signed-off-by: Sunil Ravi <sunilravi@google.com>
This commit is contained in:
parent
f47d378cea
commit
a7684a21c7
1 changed files with 9 additions and 0 deletions
|
@ -1007,6 +1007,15 @@ static void acs_study(struct hostapd_iface *iface)
|
|||
if (iface->conf->ieee80211ac || iface->conf->ieee80211ax)
|
||||
acs_adjust_center_freq(iface);
|
||||
|
||||
err = hostapd_select_hw_mode(iface);
|
||||
if (err) {
|
||||
wpa_printf(MSG_ERROR,
|
||||
"ACS: Could not (err: %d) select hw_mode for freq=%d channel=%d",
|
||||
err, iface->freq, iface->conf->channel);
|
||||
err = -1;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
err = 0;
|
||||
fail:
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue