Rabbit RabbitCore RCM4400W Product Manual - page 84
76
RabbitCore RCM4400W
WIFI_SCANCB
Sets up a user callback function that will be called when a user-requested scan has com-
pleted. The callback function must have the following function prototype. (The name of
the function may be different.)
root void scan_callback(far wifi_scan_data* data);
The scan data will be provided in the data parameter. This structure has the following
definition.
#define _WIFI_SCAN_NUM
typedef struct {
int count;
_wifi_wln_scan_bss bss[_WIFI_SCAN_NUM];
} wifi_scan_data;
count
will have the number of access points that were detected.
bss
is an array where each element corresponds to a detected access point.
_wifi_wln_scan_bss
is a structure that has the following definition.
typedef struct {
uint8 ssid[WLN_SSID_SIZE];
int ssid_len;
int channel;
mac_addr bss_addr;
uint16 bss_caps;
uint8 wpa_info[WLN_WPAIE_SIZE];
uint8 erp_info;
uint16 rates;
uint16 rates_basic;
uint16 atim;
int tx_rate;
int rx_signal;
} _wifi_wln_scan_bss;
The structure elements have the following definitions:
ssid
= service set ID (max. length 32)
ssid_len
= SSID length in bytes
channel
= channel number (1–13)
bss_addr
= BSS ID (access point MAC address)
bss_caps
reserved
wpa_info
reserved
erp_info
reserved
rates
reserved
rates_basic
reserved
atim
reserved
tx_rate
= maximum transmit rate (in 100 kbps)
rx_signal
= received signal strength (0–107)