Changes between Version 2 and Version 3 of 802.11/wlan_exp/HowToAddCommand


Ignore:
Timestamp:
Nov 25, 2015, 12:21:27 AM (8 years ago)
Author:
welsh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/HowToAddCommand

    v2 v3  
    1414'''Overview:'''
    1515
    16   1. Edit wlan_exp/cmds.py with:
     16  1. Edit wlan_exp/cmds.py:
    1717    - Create new non-overlapping CMDID_ value
    1818    - Create new message.Cmd subclass, probably by copy/paste of existing simple command
    1919    - 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
    2326  1. Possibly edit wlan_mac_[ap,sta,ibss].[c,h] for any MAC-specific responses to the new command
    2427
    2528
    26 '''Edit wlan_exp/cmds.py:'''
     29'''1. Edit wlan_exp/cmds.py:'''
    2730
    2831Add 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:
     
    112115
    113116
    114 '''Edit wlan_exp/node.py (or a subclass)'''
     117'''2. Edit wlan_exp/node.py (or a subclass)'''
    115118
    116119Add new command specific method to the node (or a subclass):
     
    144147
    145148
    146 '''Edit wlan_mac_high_framework/include/wlan_exp_node.h'''
     149'''3. Edit wlan_mac_high_framework/include/wlan_exp_node.h'''
    147150
    148151Add new Command ID (CMDID_) value to the C code.  This value should be the same as the CMDID_ value defined in the Python code:
     
    158161
    159162
    160 '''Edit wlan_mac_high_framework/wlan_exp_node.c'''
     163'''4. Edit wlan_mac_high_framework/wlan_exp_node.c'''
    161164
    162165Add command implementation with new case in the node_processCmd() switch statement:
     
    221224}}}
    222225
    223