hostap: only add STA interface when hostapd enabled
For add_interface(), only add STA interface when hostapd enabled, and the Soft-AP interface will be added in zephyr_hostapd_init(). Signed-off-by: Maochen Wang <maochen.wang@nxp.com>
This commit is contained in:
parent
82700b8b88
commit
e2f671ee00
1 changed files with 6 additions and 0 deletions
|
|
@ -507,6 +507,12 @@ static void iface_cb(struct net_if *iface, void *user_data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_WIFI_NM_HOSTAPD_AP
|
||||||
|
if (wifi_nm_iface_is_sap(iface)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!net_if_is_admin_up(iface)) {
|
if (!net_if_is_admin_up(iface)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue