hostap: fix DUT hang when start SAP on wrong channel
When try to start SAP on channel 12 with region code US, the channel check will fail and calls supplicant_send_wifi_mgmt_ap_status() with iface->owner is NULL, which causes DUT hang. Set iface->owner when enable the SAP can fix this issue. Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
parent
eb45da5a44
commit
a259900720
@ -1737,6 +1737,8 @@ int supplicant_ap_enable(const struct device *dev,
|
||||
goto out;
|
||||
}
|
||||
|
||||
iface->owner = iface;
|
||||
|
||||
if (iface->state == HAPD_IFACE_ENABLED) {
|
||||
ret = -EBUSY;
|
||||
wpa_printf(MSG_ERROR, "Interface %s is not in disable state", dev->name);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user