]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: return the RSSI in dBm
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 20 Mar 2013 15:05:45 +0000 (17:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Mar 2013 18:25:12 +0000 (19:25 +0100)
commit361a3d8f565300ad633454caa428403108cf7913
treeb3a6daa5ddfcdca2f1dec4af242b8d53c9217e20
parentac44ce351266e6562194fa5a1d4e4cf201cb0724
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>
net/mac80211/util.c