Versions Compared

Key

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

...

Anchor11409001140900 NetWiFiMgr_Mgmt() Anchor11409011140901A wireless management/Mgmt() function is used to implement miscellaneous functionality needed by the driver such as command that need response.anchor11409021140902

Files

Anchor11409031140903Every Wireless Manager layer net_wifi_mgr.c Anchor11409041140904

Prototype

...


...

static void NetWiFiMgr_Mgmt (NET_IF p_if, CPU_INT08U
  cmd,
                                       CPU_INT08U      *p_buf_cmd,
CPU_INT16U

                                       CPU_INT16U       buf_cmd_len,
CPU_INT08U

                                       CPU_INT08U      *p_buf_rtn,
CPU_INT16U

                                       CPU_INT16U       buf_rtn_len_max,
NET_ERR

                                       NET_ERR         *p_err);
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2
Anchor
11409071140907
Anchor
11409081140908
Code Block


          static void NetWiFiMgr_Mgmt (NET_IF           p_if,
                                       NET_IF_WIFI_CMD
cmd,
Anchor
11409091140909
Anchor
11411321141132
Anchor
11411591141159
Anchor
11411831141183
Anchor
11409101140910
Table Row (tr)

...



Note that since every Wireless Manager’s Mgmt() 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’. Anchor11409161140916 Arguments Anchor11409171140917static’.

Arguments

p_if Anchor11409181140918

Pointer to the interface to wireless device to manage.

...

cmd Anchor11413601141360

Management command to send.

...

The driver can define and implement its own management commands which need a response by calling the Wireless Manager api (p_mgr_api->Mgmt()) to send the management command and to receive the response.

...

Driver management command code '100' series reserved for driver.

...

p_buf_cmdanchor11409221140922

Pointer to variable that contains the data to send.

Anchor11415571141557buf_cmd_len Anchor11415581141558

Length of the command buffer.

...

11416121141612p_buf_rtn Anchor11416131141613

Pointer to variable that will receive the return data.

...

1141623buf_rtn_len_max Anchor11416181141618

Length of the return buffer.

Anchor11416141141614p_err Anchor11409241140924

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

...

...

Returned Values

Anchor11409261140926None. Anchor11409271140927

Required Configuration

...

None. Anchor11409291140929

Notes/Warnings

...

Prior calling this function, the network lock must be acquired.