Skip to content

Commit ba3d49f

Browse files
morihisa-momonanashif
authored andcommitted
wifi: airoc: FIX interface up (in softap)
When creating softap, interface is not recognized as up. Signed-off-by: Morihisa Momona <[email protected]>
1 parent f95c878 commit ba3d49f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/wifi/infineon/airoc_wifi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ static int airoc_mgmt_ap_enable(const struct device *dev, struct wifi_connect_re
658658

659659
data->is_ap_up = true;
660660
airoc_if = airoc_ap_if;
661+
net_if_dormant_off(data->iface);
661662
error:
662663

663664
k_sem_give(&data->sema_common);
@@ -703,6 +704,7 @@ static int airoc_mgmt_ap_disable(const struct device *dev)
703704
if (whd_ret == CY_RSLT_SUCCESS) {
704705
data->is_ap_up = false;
705706
airoc_if = airoc_sta_if;
707+
net_if_dormant_on(data->iface);
706708
} else {
707709
LOG_ERR("Can't stop wifi ap: %u", whd_ret);
708710
}

0 commit comments

Comments
 (0)