cfg80211: add nl80211 beacon-only statistics
Add these two values: * BEACON_RX: number of beacons received from this peer * BEACON_SIGNAL_AVG: signal strength average for beacons only These can then be used for Android Lollipop's statistics request. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
319090bf6c
commit
a76b1942a1
3 changed files with 13 additions and 0 deletions
|
@ -3768,6 +3768,8 @@ static int nl80211_send_station(struct sk_buff *msg, u32 cmd, u32 portid,
|
|||
|
||||
PUT_SINFO(T_OFFSET, t_offset, u64);
|
||||
PUT_SINFO(RX_DROP_MISC, rx_dropped_misc, u64);
|
||||
PUT_SINFO(BEACON_RX, rx_beacon, u64);
|
||||
PUT_SINFO(BEACON_SIGNAL_AVG, rx_beacon_signal_avg, u8);
|
||||
|
||||
#undef PUT_SINFO
|
||||
nla_nest_end(msg, sinfoattr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue