Commit 9600995a authored by Muzaffar Ahmed's avatar Muzaffar Ahmed Committed by Benjamin Cabé
Browse files

drivers: wifi: siwx91x: Fix NWP bootup assert

Fixed the assert related to AP mode / Hidden SSID in NWP bootup

Signed-off-by: default avatarMuzaffar Ahmed <muzaffar.ahmed@silabs.com>
parent 391290e6
Loading
Loading
Loading
Loading
+1 −1
Changes for soc/silabs/silabs_siwx91x/siwg917/nwp.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ int siwx91x_get_nwp_config(sl_wifi_device_configuration_t *get_config, uint8_t w
	sl_si91x_boot_configuration_t *boot_config = &default_config.boot_config;

	__ASSERT(get_config, "get_config cannot be NULL");
	__ASSERT((hidden_ssid == true || max_num_sta != 0) && wifi_oper_mode != WIFI_SOFTAP_MODE,
	__ASSERT((hidden_ssid == false && max_num_sta == 0) || wifi_oper_mode == WIFI_SOFTAP_MODE,
		 "hidden_ssid or max_num_sta requires SOFT AP mode");

	if (wifi_oper_mode == WIFI_SOFTAP_MODE && max_num_sta > AP_MAX_NUM_STA) {