Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor11392991139299 NetWiFiMgr_AP_Scan() Anchor11394921139492The Wireless Manager’s AP_Scan() function start the scan process. Results are passed back to the caller in a table of NET_IF_WIFI_AP structure which contains fields for link network SSID, channel, network type, Security type and signal strength. Anchor11394931139493

Files

Anchor11234401123440Every Wireless Manager layer net_wifi_mgr.c Anchor11234461123446

Prototype

...

static void

                                                NET_IF_WIFI_AP   *p_buf_scan,
CPU_INT16U

                                                CPU_INT16U        scna_len_max,
const

                                          const NET_IF_WIFI_SSID *p_ssid,

                                                NET_IF_WIFI_CH
ch, NET_ERR
    ch,
                                                NET_ERR          *perr);
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2
Anchor
11234431123443
Code Block
          static void NetWiFiMgr_AP_Scan       (NET_IF           *p_if,
Anchor
11515261151526
Anchor
11395321139532
Anchor
11395621139562
Anchor
11395951139595
Anchor
11396301139630
Table Row (tr)

Anchor11234481123448Note that since every Wireless Manager’s AP_Scan() function is accessed only by function pointer via the Wireless Manager’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static’static. Anchor10986381098638

Arguments

...

11396951139695p_if Anchor11396961139696

Pointer to the interface to scan with.

...

1139706p_buf_scan Anchor11397641139764

Pointer to table that will receive the return network found.

...

scan_len_max Anchor11397661139766

Length of the scan buffer (i.e., number of network that can be found).

...

p_ssidanchor11397821139782

Pointer to variable that contains the SSID to find.

Anchor11396971139697ch Anchor11321811132181

The wireless channel to scan:

...

...

NET_IF_WIFI_CH_ALL

...

NET_IF_WIFI_CH_1

...


NET_IF_WIFI_CH_2

...


NET_IF_WIFI_CH_3

...


...

NET_IF_WIFI_CH_4

...

NET_IF_WIFI_CH_5

...


NET_IF_WIFI_CH_6

...


...

NET_IF_WIFI_CH_7

...

NET_IF_WIFI_CH_8

...


NET_IF_WIFI_CH_9

...

NET_IF_WIFI_CH_10

...


...

NET_IF_WIFI_CH_11

...

NET_IF_WIFI_CH_12

...


NET_IF_WIFI_CH_13

...


...

NET_IF_WIFI_CH_14

Anchor11518411151841   Anchor11155771115577perr Anchor11321931132193

Pointer to variable that will receive the return error code from this function.

...

Returned Values

Anchor11156221115622None. Anchor11156231115623

Required Configuration

...

1115624None. Anchor10971981097198

Notes/Warnings

...

None.