Loading...
Searching...
No Matches
List of scanned WiFis access points

Wrapper around l2scan list for WiFi scan results. More...

Detailed Description

Wrapper around l2scan list for WiFi scan results.

Files

file  wifi_scan_list.h
 Thin wrapper around l2scan list to support WiFi scan results.
 

Functions

static void wifi_scan_list_empty (wifi_scan_list_t *list, wifi_scan_list_node_t *nodes, unsigned nodes_numof)
 Empty the WiFi scan list to start a new scan.
 
static void wifi_scan_list_insert (wifi_scan_list_t *list, wifi_scan_list_node_t *nodes, unsigned nodes_numof, const wifi_scan_result_t *result)
 Insert a new WiFi scan result into the list.
 
static unsigned wifi_scan_list_to_array (const wifi_scan_list_t *list, wifi_scan_result_t *array, unsigned numof)
 Copy the content of a WiFi scan list to an array to get rid of the list overhead.
 

Function Documentation

◆ wifi_scan_list_empty()

static void wifi_scan_list_empty ( wifi_scan_list_t list,
wifi_scan_list_node_t nodes,
unsigned  nodes_numof 
)
inlinestatic

Empty the WiFi scan list to start a new scan.

Parameters
[in,out]listPointer to WiFi scan result list
[in,out]nodesPointer to WiFi scan result nodes array
[in]nodes_numofNumber of nodes in the array

Definition at line 39 of file wifi_scan_list.h.

◆ wifi_scan_list_insert()

static void wifi_scan_list_insert ( wifi_scan_list_t list,
wifi_scan_list_node_t nodes,
unsigned  nodes_numof,
const wifi_scan_result_t result 
)
inlinestatic

Insert a new WiFi scan result into the list.

Parameters
[in,out]listPointer to WiFi scan result list
[in,out]nodesPointer to WiFi scan result nodes array
[in]nodes_numofNumber of nodes in the array
[in]resultNew WiFi scan result to insert

Definition at line 55 of file wifi_scan_list.h.

◆ wifi_scan_list_to_array()

static unsigned wifi_scan_list_to_array ( const wifi_scan_list_t list,
wifi_scan_result_t array,
unsigned  numof 
)
inlinestatic

Copy the content of a WiFi scan list to an array to get rid of the list overhead.

Parameters
[in]listPointer to list
[in]arrayBuffer of nodes to store the result
[in]numofMaximum number of nodes that can be copied
Returns
Number of copied nodes

Definition at line 73 of file wifi_scan_list.h.