hostapd: Do not start secondary BSS unless interface is enabled
It is possible for additional BSSs to be added while the primary interface is still in the process of determining channel parameters (HT co-ex scan, ACS, DFS). Do not enable secondary interfaces in such state immediately, but instead, wait for the pending operation on the primary interface to complete. Once that's done, the added extra BSSs will also be enabled in hostapd_setup_interface_complete(). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
36501a22a4
commit
5e1a4565f8
1 changed files with 2 additions and 1 deletions
|
@ -1768,7 +1768,8 @@ int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf)
|
|||
ETH_ALEN);
|
||||
|
||||
if (start_ctrl_iface_bss(hapd) < 0 ||
|
||||
hostapd_setup_bss(hapd, -1)) {
|
||||
(hapd_iface->state == HAPD_IFACE_ENABLED &&
|
||||
hostapd_setup_bss(hapd, -1))) {
|
||||
hapd_iface->conf->num_bss--;
|
||||
hapd_iface->num_bss--;
|
||||
wpa_printf(MSG_DEBUG, "%s: free hapd %p %s",
|
||||
|
|
Loading…
Reference in a new issue