Changes between Version 8 and Version 9 of 802.11/wlan_exp/Porting_v1.5


Ignore:
Timestamp:
Apr 19, 2016, 12:18:31 PM (8 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 802.11/wlan_exp/Porting_v1.5

    v8 v9  
    139139}}}
    140140
     141These constants are useful when filtering arrays of log entries. For example, assume {{{n_log_rx}}} is a numpy array of {{{RX_OFDM}}} entries:
     142{{{#!python
     143>>> c_rx = log_util.get_entry_constants('RX_OFDM')
     144
     145# Extract FCS Good Rx
     146>>> rx_good = n_log_rx[ (n_log_rx['flags'] & c_rx.flags['FCS_GOOD']) != 0) ]
     147
     148# Extract Beacon Rx
     149>>> rx_beacon = n_log_rx[ (n_log_rx['pkt_type'] == c_rx.pkt_type['BEACON']) ]
     150}}}
     151
     152The [../examples wlan_exp example scripts] have been updated to use the per-entry-type constants.
     153
    141154=== Tx/Rx Entry Changes ===
     155
     156Various fields in the Tx and Rx entry types are updated in v1.5.
    142157
    143158{{{#!th