[Meego-kernel] [PATCH] ar6003 : fix cfg80211 bss signal format
Chang, Samuel
samuelc at qca.qualcomm.com
Wed Jul 6 00:49:57 PDT 2011
Subject: Correct the cfg80211 bss signal strenth format
BOO # 10279 - Strength in list-service is always 100, which is wrong
ar6003_cfg80211_rssi_signal_fix.patch is based on an accepted patch -
kernel-adaptation-mrst-2.6.37.6-92.2 and ar6003_cfg_syncup_v2.patch.
Signed-off-by: Samuel Chang <samuelc at qca.qualcomm.com>
diff -ruN kernel-2.6.37.6-24.3_cfg80211_fix_patch_1/drivers/staging/ar6003/os/linux/cfg80211.c kernel-2.6.37.6-24.3_cfg80211_rssi_patch_1.1/drivers/staging/ar6003/os/linux/cfg80211.c
--- kernel-2.6.37.6-24.3_cfg80211_fix_patch_1/drivers/staging/ar6003/os/linux/cfg80211.c 2011-06-29 11:09:42.519414000 +0800
+++ kernel-2.6.37.6-24.3_cfg80211_rssi_patch_1.1/drivers/staging/ar6003/os/linux/cfg80211.c 2011-07-06 14:58:11.257184423 +0800
@@ -804,7 +804,7 @@
freq = cie->ie_chan;
channel = ieee80211_get_channel(wiphy, freq);
- signal = ni->ni_snr * 100;
+ signal = ni->ni_snr * 100 - 9500;
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,
("%s: bssid %02x:%02x:%02x:%02x:%02x:%02x channel %d freq %d size %d\n",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ar6003_cfg80211_syncup_v2.patch
Type: text/x-patch
Size: 15137 bytes
Desc: ar6003_cfg80211_syncup_v2.patch
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20110706/8a391161/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ar6003_cfg80211_rssi_signal_fix.patch
Type: text/x-patch
Size: 858 bytes
Desc: ar6003_cfg80211_rssi_signal_fix.patch
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20110706/8a391161/attachment-0001.bin>
More information about the MeeGo-kernel
mailing list