Microchip® Advanced Software Framework

tstrM2MScanOption Struct Reference

This struct contains the configuration options for Wi-Fi scan.

See Also
tenuM2mScanCh tstrM2MScan

#include <m2m_types.h>

Data Fields

uint8 __PAD16__ [2]
 
uint8 __PAD__ [PAD_SZ(2)]
 
sint8 s8RssiThresh
 
uint16 u16PassiveScanTime
 
uint8 u8NumOfSlot
 
uint8 u8ProbesPerSlot
 
uint8 u8SlotTime
 

uint8 tstrM2MScanOption::__PAD16__[2]

Padding bytes for forcing 4-byte alignment

uint8 tstrM2MScanOption::__PAD__[PAD_SZ(2)]

Padding bytes for forcing 4-byte alignment

sint8 tstrM2MScanOption::s8RssiThresh

The Received Signal Strength Indicator threshold required for (fast) reconnection to an AP without scanning all channels first. Refers to active scan as part of reconnection to a previously connected AP. The device connects to the target AP immediately if it receives a sufficiently strong probe response on the expected channel. Low thresholds facilitate fast reconnection. High thresholds facilitate connection to the strongest signal. Valid settings are in the range -128<=Thresh<0. Default setting is M2M_FASTCONNECT_DEFAULT_RSSI_THRESH.

Referenced by m2m_validate_scan_options().

uint16 tstrM2MScanOption::u16PassiveScanTime

The length of each scan slot in milliseconds. Refers to passive scan only. The device listens for beacons during this time. Valid settings are in the range 10<=PassiveScanTime<=1200. Default setting is M2M_SCAN_DEFAULT_PASSIVE_SLOT_TIME.

uint8 tstrM2MScanOption::u8NumOfSlot
 The min number of slots is 2 for every channel, 

every slot the soc will send Probe Req on air, and wait/listen for PROBE RESP/BEACONS for the u16slotTime

The number of scan slots per channel. Refers to both active and passive scan. Valid settings are in the range 0<Slots<=255. Default setting is M2M_SCAN_DEFAULT_NUM_SLOTS.

Referenced by m2m_validate_scan_options(), m2m_wifi_set_scan_options(), and os_m2m_wifi_set_scan_options_imp().

uint8 tstrM2MScanOption::u8ProbesPerSlot

Number of probe requests to be sent for each scan slot (when not specifying network to scan). Number of probe requests to be sent for each ssid to scan in each scan slot (when specifying network to scan). Refers to active scan only. Valid settings are in the range 0<Probes<=2. Default setting is M2M_SCAN_DEFAULT_NUM_PROBE.

Referenced by m2m_validate_scan_options().

uint8 tstrM2MScanOption::u8SlotTime

the time that the Soc will wait on every channel listening to the frames on air when that time increaseed number of AP will increased in the scan results min time is 10 ms and the max is 250 ms

The length of each scan slot in milliseconds. Refers to active scan only. The device listens for probe responses and beacons during this time. Valid settings are in the range 10<=SlotTime<=250. Default setting is M2M_SCAN_DEFAULT_SLOT_TIME.

Referenced by m2m_validate_scan_options(), m2m_wifi_set_scan_options(), and os_m2m_wifi_set_scan_options_imp().