]> 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)
commit5d1e87d3c28e0612175a772732fc89fa6be3fcf7
treeb3a6daa5ddfcdca2f1dec4af242b8d53c9217e20
parenteeb1b21facf987617b2691323bfd64e8fdb9d23b
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