Wi-Fi scan configuration structure.

Indicates the configuration parameters for a Wi-Fi scan operation.

Note

  • The Quick Scan feature is enabled when a specific channel and SSID are given for scanning. SiWx91x scans for the AP given in the scan API and posts the scan results immediately after finding the access point.

  • The channel_bitmap_2g4 uses the lower 14 bits to represent channels from 1 to 14, where channel 1 = (1 << 0), channel 2 = (1 << 1), and so on.

  • 5GHz is not supported.

Channel Number 2.4 GHz

channel_bitmap_2g4

1

(1 << 0)

2

(1 << 1)

3

(1 << 2)

4

(1 << 3)

5

(1 << 4)

6

(1 << 5)

7

(1 << 6)

8

(1 << 7)

9

(1 << 8)

10

(1 << 9)

11

(1 << 10)

12

(1 << 11)

13

(1 << 12)

14

(1 << 13)

Public Attributes#

Scan type to be configured of type sl_wifi_scan_type_t.

uint32_t

Reserved.

uint32_t

Duration in milliseconds between periodic scans.

uint16_t

Bitmap of selected 2.4GHz channels.

uint32_t

Bitmap of selected 5GHz channels (currently not supported)

uint8_t

Enable LP mode, 1 - Enable LP mode, 0 - Disable LP mode.

Public Attribute Documentation#

type#

sl_wifi_scan_type_t sl_wifi_scan_configuration_t::type

Scan type to be configured of type sl_wifi_scan_type_t.


Definition at line 229 of file components/protocol/wifi/inc/sl_wifi_types.h

flags#

uint32_t sl_wifi_scan_configuration_t::flags

Reserved.


Definition at line 230 of file components/protocol/wifi/inc/sl_wifi_types.h

periodic_scan_interval#

uint32_t sl_wifi_scan_configuration_t::periodic_scan_interval

Duration in milliseconds between periodic scans.


Definition at line 231 of file components/protocol/wifi/inc/sl_wifi_types.h

channel_bitmap_2g4#

uint16_t sl_wifi_scan_configuration_t::channel_bitmap_2g4

Bitmap of selected 2.4GHz channels.


Definition at line 232 of file components/protocol/wifi/inc/sl_wifi_types.h

channel_bitmap_5g#

uint32_t sl_wifi_scan_configuration_t::channel_bitmap_5g[8]

Bitmap of selected 5GHz channels (currently not supported)


Definition at line 233 of file components/protocol/wifi/inc/sl_wifi_types.h

lp_mode#

uint8_t sl_wifi_scan_configuration_t::lp_mode

Enable LP mode, 1 - Enable LP mode, 0 - Disable LP mode.


Definition at line 234 of file components/protocol/wifi/inc/sl_wifi_types.h