Skip to content

Commit

Permalink
driver: wifi: siwx917: Fix scan configuration handling
Browse files Browse the repository at this point in the history
Fixed the handling of active and passive scan user arguments to
ensure correct behavior.

Removed forced active scan and updated it to respect the
user-provided options.

Signed-off-by: Arunmani Alagarsamy <[email protected]>
  • Loading branch information
ArunmaniAlagarsamy2710 committed Jan 22, 2025
1 parent a80b4ac commit 1517c5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/wifi/siwx917/siwx917_wifi.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ static int siwx917_scan(const struct device *dev, struct wifi_scan_params *z_sca
return -EBUSY;
}

/* FIXME: fill sl_scan_config with values from z_scan_config */
sl_scan_config.type = SL_WIFI_SCAN_TYPE_ACTIVE;
if (z_scan_config) {
sl_scan_config.type = z_scan_config->scan_type;
}

sl_scan_config.channel_bitmap_2g4 = 0xFFFF;
memset(sl_scan_config.channel_bitmap_5g, 0xFF, sizeof(sl_scan_config.channel_bitmap_5g));

Expand Down

0 comments on commit 1517c5a

Please sign in to comment.