Changes between Version 2 and Version 3 of 802.11/wlan_exp/HowToAddCommand
- Timestamp:
- Nov 25, 2015, 12:21:27 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
802.11/wlan_exp/HowToAddCommand
v2 v3 14 14 '''Overview:''' 15 15 16 1. Edit wlan_exp/cmds.py with:16 1. Edit wlan_exp/cmds.py: 17 17 - Create new non-overlapping CMDID_ value 18 18 - Create new message.Cmd subclass, probably by copy/paste of existing simple command 19 19 - Add new subclass to __all__ 20 1. Edit wlan_exp/node.py (or a subclass) with new command-specific node method 21 1. Add new CMDID_ value to wlan_mac_high_framework/include/wlan_exp_node.h 22 1. Edit wlan_mac_high_framework/wlan_exp_node.c with new case in giant node_processCmd() switch statement 20 1. Edit wlan_exp/node.py (or a subclass): 21 - Add new command-specific node method 22 1. Edit wlan_mac_high_framework/include/wlan_exp_node.h: 23 - Add new CMDID_ value (same as CMDID_ value in wlan_exp/cmds.py) 24 1. Edit wlan_mac_high_framework/wlan_exp_node.c: 25 - New case in the node_processCmd() switch statement 23 26 1. Possibly edit wlan_mac_[ap,sta,ibss].[c,h] for any MAC-specific responses to the new command 24 27 25 28 26 ''' Edit wlan_exp/cmds.py:'''29 '''1. Edit wlan_exp/cmds.py:''' 27 30 28 31 Add a new Command ID (CMDID_) value that does not overlap with any existing Command ID value. For example, we can add "CMDID_NODE_USER_CMD" to the file: … … 112 115 113 116 114 ''' Edit wlan_exp/node.py (or a subclass)'''117 '''2. Edit wlan_exp/node.py (or a subclass)''' 115 118 116 119 Add new command specific method to the node (or a subclass): … … 144 147 145 148 146 ''' Edit wlan_mac_high_framework/include/wlan_exp_node.h'''149 '''3. Edit wlan_mac_high_framework/include/wlan_exp_node.h''' 147 150 148 151 Add new Command ID (CMDID_) value to the C code. This value should be the same as the CMDID_ value defined in the Python code: … … 158 161 159 162 160 ''' Edit wlan_mac_high_framework/wlan_exp_node.c'''163 '''4. Edit wlan_mac_high_framework/wlan_exp_node.c''' 161 164 162 165 Add command implementation with new case in the node_processCmd() switch statement: … … 221 224 }}} 222 225 223