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:
Maochen Wang 2024-10-15 16:02:20 +08:00 committed by Henrik Brix Andersen
parent eb45da5a44
commit a259900720

View File

@ -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);