Skip to content

Commit 9600995

Browse files
muahmed-silabskartben
authored andcommitted
drivers: wifi: siwx91x: Fix NWP bootup assert
Fixed the assert related to AP mode / Hidden SSID in NWP bootup Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
1 parent 391290e commit 9600995

File tree

1 file changed

+2
-2
lines changed
  • soc/silabs/silabs_siwx91x/siwg917

1 file changed

+2
-2
lines changed

soc/silabs/silabs_siwx91x/siwg917/nwp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ int siwx91x_get_nwp_config(sl_wifi_device_configuration_t *get_config, uint8_t w
178178
sl_si91x_boot_configuration_t *boot_config = &default_config.boot_config;
179179

180180
__ASSERT(get_config, "get_config cannot be NULL");
181-
__ASSERT((hidden_ssid == true || max_num_sta != 0) && wifi_oper_mode != WIFI_SOFTAP_MODE,
182-
"hidden_ssid or max_num_sta requires SOFTAP mode");
181+
__ASSERT((hidden_ssid == false && max_num_sta == 0) || wifi_oper_mode == WIFI_SOFTAP_MODE,
182+
"hidden_ssid or max_num_sta requires SOFT AP mode");
183183

184184
if (wifi_oper_mode == WIFI_SOFTAP_MODE && max_num_sta > AP_MAX_NUM_STA) {
185185
LOG_ERR("Exceeded maximum supported stations (%d)", AP_MAX_NUM_STA);

0 commit comments

Comments
 (0)