mwifiex: update signal strength in mBm units
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 16 Mar 2012 03:51:47 +0000 (20:51 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 20:05:57 +0000 (16:05 -0400)
commitc9919be642252baae7a80cacff52a3ed586b0547
tree6f8960439995ea08775b422146c5cdf10e78d79e
parentd17087e78d3961bd42f99cc3cf8cbf2d7d8ef55e
mwifiex: update signal strength in mBm units

During wiphy registration signal_type is initialized to
CFG80211_SIGNAL_TYPE_MBM. So convert signal strength from dBm to
mBm. Also, the value is absolute. Make it negative before
sending to cfg80211.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/scan.c