mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cfg80211: Return beacon loss count in station
If station info contains a beacon loss count, return it to userspace. Signed-off-by: Paul Stewart <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
84381b4ed5
commit
a85e1d5597
6 changed files with 24 additions and 2 deletions
|
|
@ -2390,6 +2390,9 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
|
|||
if (sinfo->filled & STATION_INFO_TX_FAILED)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_TX_FAILED,
|
||||
sinfo->tx_failed);
|
||||
if (sinfo->filled & STATION_INFO_BEACON_LOSS_COUNT)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_BEACON_LOSS,
|
||||
sinfo->beacon_loss_count);
|
||||
if (sinfo->filled & STATION_INFO_BSS_PARAM) {
|
||||
bss_param = nla_nest_start(msg, NL80211_STA_INFO_BSS_PARAM);
|
||||
if (!bss_param)
|
||||
|
|
|
|||
Loading…
Reference in a new issue