Skip to content

Commit 21b20de

Browse files
nipandey-01kartben
authored andcommitted
drivers: wifi: siwx91x: Fix passive scan bug
- Setting default value of passive scan dwell time of 400ms as SDK doesn't configure default value. Signed-off-by: Nitin Pandey <[email protected]>
1 parent efd9519 commit 21b20de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/wifi/siwx91x/siwx91x_wifi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "sl_wifi_constants.h"
2424

2525
#define SIWX91X_DRIVER_VERSION KERNEL_VERSION_STRING
26+
#define SIWX91X_DEFAULT_PASSIVE_SCAN_DWELL_TIME 400
2627

2728
LOG_MODULE_REGISTER(siwx91x_wifi);
2829

@@ -1121,6 +1122,9 @@ siwx91x_configure_scan_dwell_time(sl_wifi_scan_type_t scan_type, uint16_t dwell_
11211122
dwell_time_active);
11221123
break;
11231124
case SL_WIFI_SCAN_TYPE_PASSIVE:
1125+
if (!dwell_time_passive) {
1126+
dwell_time_passive = SIWX91X_DEFAULT_PASSIVE_SCAN_DWELL_TIME;
1127+
}
11241128
ret = sl_si91x_configure_timeout(SL_SI91X_CHANNEL_PASSIVE_SCAN_TIMEOUT,
11251129
dwell_time_passive);
11261130
break;

0 commit comments

Comments
 (0)