Changeset 1710

Show
Ignore:
Timestamp:
09/13/06 12:41:13 (2 years ago)
Author:
kelmo
Message:

Add IEEE80211_RADIOTAP_DBM_ANTSIGNAL and IEEE80211_RADIOTAP_DBM_ANTNOISE fields
to the radiotap header on rx. This is useful as the current current signal
field is relative to an arbitrary value (in this case the noise floor) which an
application parsing the radiotap headers would not necessarily be aware of.

Signed-off-by: Scott Raynel <smr26@cs.waikato.ac.nz>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/net80211/ieee80211_monitor.c

    r1709 r1710  
    375375                                } 
    376376 
     377                                th->wr_dbm_antnoise = -95; 
     378                                th->wr_dbm_antsignal = th->wr_dbm_antnoise + signal; 
    377379                                th->wr_antenna = ds->ds_rxstat.rs_antenna; 
    378380                                th->wr_antsignal = signal; 
  • trunk/net80211/ieee80211_monitor.h

    r1488 r1710  
    113113        (1 << IEEE80211_RADIOTAP_RATE)          | \ 
    114114        (1 << IEEE80211_RADIOTAP_CHANNEL)       | \ 
     115        (1 << IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \ 
     116        (1 << IEEE80211_RADIOTAP_DBM_ANTNOISE)  | \ 
    115117        (1 << IEEE80211_RADIOTAP_ANTENNA)       | \ 
    116118        (1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL)  | \ 
     
    125127        u_int16_t wr_chan_freq; 
    126128        u_int16_t wr_chan_flags; 
     129        int8_t  wr_dbm_antsignal; 
     130        int8_t  wr_dbm_antnoise; 
    127131        u_int8_t wr_antenna; 
    128132        u_int8_t wr_antsignal; 
     133        u_int8_t wr_pad[2]; /* Ensure fcs is on 32 bit boundary */ 
    129134        u_int32_t wr_fcs; 
    130 }
     135}__attribute__((__packed__))
    131136 
    132137#define ATH_TX_RADIOTAP_PRESENT (               \