Changes between Version 17 and Version 18 of 802.11/wlan_exp/Extending
- Timestamp:
- Dec 17, 2015, 10:16:26 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/Extending
v17 v18 102 102 === Example Command: Reading Tx Queue Status === 103 103 104 This example shows how to implement a custom wlan_exp command, including the required Python and C code. The example command retrieves the status of the transmit (Tx) queues from the WARP node. The upper-level MAC responds to the command with the number of packets currently enqueued in each Tx queue. Because each upper-level MAC (AP, STA, IBSS) handles Tx queues differently the command handler is implemented in the {{{wlan_exp_ user_ap_process_cmd()}}} function of the top-level MAC.104 This example shows how to implement a custom wlan_exp command, including the required Python and C code. The example command retrieves the status of the transmit (Tx) queues from the WARP node. The upper-level MAC responds to the command with the number of packets currently enqueued in each Tx queue. Because each upper-level MAC (AP, STA, IBSS) handles Tx queues differently the command handler is implemented in the {{{wlan_exp_process_user_cmd()}}} function of the top-level MAC. 105 105 106 106 '''Python Code'''[[BR]]