Changes between Version 3 and Version 4 of 802.11/wlan_exp/Extending


Ignore:
Timestamp:
Dec 14, 2015, 5:18:53 PM (8 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/Extending

    v3 v4  
    7272In this example the custom command will query the lengths of Tx queues.
    7373Modify the {{{wlan_exp_user_ap_process_cmd()}}} function in {{{wlan_mac_ap.c}}}.
     74{{{#!c
     75    #define USER_CMDID_TX_QUEUE_STATUS 100
     76    int i;
     77    u32 req_queue_id;
     78    u32 q_id, q_occ;
     79        dl_entry* curr_station_info_entry;
     80        station_info* curr_station_info;
     81}}}
     82
     83Add a new case for the new command ID to the {{{switch(cmd_id)}}} statement:
     84
    7485{{{#!c
    7586    case USER_CMDID_TX_QUEUE_STATUS: