mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
mac80211: return the RSSI in dBm
For the sake of speed of calculation and number accuracy, mac80211 tracks the RSSI in dBm * 16. But it forgot to divide back by 16 when the RSSI is asked by the driver. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
f00f188f82
commit
3a7bba649e
1 changed files with 1 additions and 1 deletions
|
@ -2056,7 +2056,7 @@ int ieee80211_ave_rssi(struct ieee80211_vif *vif)
|
||||||
/* non-managed type inferfaces */
|
/* non-managed type inferfaces */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return ifmgd->ave_beacon_signal;
|
return ifmgd->ave_beacon_signal / 16;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ieee80211_ave_rssi);
|
EXPORT_SYMBOL_GPL(ieee80211_ave_rssi);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue