Skip to content

Commit 7260f2d

Browse files
MaochenWang1kartben
authored andcommitted
hostap: remove unnecessary register of mgd iface in hostapd
In zephyr_hostapd_init, calls net_if_get_wifi_sap to get the SAP iface, it means mgd iface of SAP type is registered before zephyr_hostapd_init. Actually the mgd iface of SAP should be called in iface_api.init phase. Therefore, remove unnecessary register of mgd iface in hostapd init. Signed-off-by: Maochen Wang <[email protected]>
1 parent b5007b5 commit 7260f2d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modules/hostap/src/supp_main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,12 +1090,6 @@ static void zephyr_hostapd_init(struct supplicant_context *ctx)
10901090
zephyr_hostapd_ctrl_init((void *)interfaces->iface[i]->bss[0]);
10911091
}
10921092

1093-
ret = wifi_nm_register_mgd_iface(wifi_nm_get_instance("hostapd"), iface);
1094-
if (ret) {
1095-
LOG_ERR("Failed to register mgd iface with native stack %s (%d)",
1096-
ifname, ret);
1097-
goto out;
1098-
}
10991093
out:
11001094
return;
11011095
}

0 commit comments

Comments
 (0)