diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2009-03-26 17:40:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:36 -0400 |
commit | 4bd7f03e915b6946307ce57f20718c6547734b5d (patch) | |
tree | c923c756de71ecac0b5e02f72cf68d44048e7f6e /drivers | |
parent | 06aa7afaaa21a4e7f1bcb196bd3f29193924a603 (diff) |
rndis_wlan: change quality level scale
Change quality level scale to match cfg80211 CFG80211_SIGNAL_TYPE_UNSPEC.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index a8758603e01c..9e7956d9c6be 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -1269,7 +1269,7 @@ static int rndis_iw_get_range(struct net_device *dev, | |||
1269 | range->max_frag = 2346; | 1269 | range->max_frag = 2346; |
1270 | 1270 | ||
1271 | range->max_qual.qual = 100; | 1271 | range->max_qual.qual = 100; |
1272 | range->max_qual.level = 154; | 1272 | range->max_qual.level = 100; |
1273 | range->max_qual.updated = IW_QUAL_QUAL_UPDATED | 1273 | range->max_qual.updated = IW_QUAL_QUAL_UPDATED |
1274 | | IW_QUAL_LEVEL_UPDATED | 1274 | | IW_QUAL_LEVEL_UPDATED |
1275 | | IW_QUAL_NOISE_INVALID; | 1275 | | IW_QUAL_NOISE_INVALID; |
@@ -1712,7 +1712,7 @@ static char *rndis_translate_scan(struct net_device *dev, | |||
1712 | devdbg(usbdev, "QUAL %d", le32_to_cpu(bssid->rssi)); | 1712 | devdbg(usbdev, "QUAL %d", le32_to_cpu(bssid->rssi)); |
1713 | iwe.cmd = IWEVQUAL; | 1713 | iwe.cmd = IWEVQUAL; |
1714 | iwe.u.qual.qual = level_to_qual(le32_to_cpu(bssid->rssi)); | 1714 | iwe.u.qual.qual = level_to_qual(le32_to_cpu(bssid->rssi)); |
1715 | iwe.u.qual.level = le32_to_cpu(bssid->rssi); | 1715 | iwe.u.qual.level = level_to_qual(le32_to_cpu(bssid->rssi)); |
1716 | iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED | 1716 | iwe.u.qual.updated = IW_QUAL_QUAL_UPDATED |
1717 | | IW_QUAL_LEVEL_UPDATED | 1717 | | IW_QUAL_LEVEL_UPDATED |
1718 | | IW_QUAL_NOISE_INVALID; | 1718 | | IW_QUAL_NOISE_INVALID; |
@@ -2400,7 +2400,7 @@ static void rndis_update_wireless_stats(struct work_struct *work) | |||
2400 | if (ret == 0) { | 2400 | if (ret == 0) { |
2401 | memset(&iwstats.qual, 0, sizeof(iwstats.qual)); | 2401 | memset(&iwstats.qual, 0, sizeof(iwstats.qual)); |
2402 | iwstats.qual.qual = level_to_qual(le32_to_cpu(rssi)); | 2402 | iwstats.qual.qual = level_to_qual(le32_to_cpu(rssi)); |
2403 | iwstats.qual.level = le32_to_cpu(rssi); | 2403 | iwstats.qual.level = level_to_qual(le32_to_cpu(rssi)); |
2404 | iwstats.qual.updated = IW_QUAL_QUAL_UPDATED | 2404 | iwstats.qual.updated = IW_QUAL_QUAL_UPDATED |
2405 | | IW_QUAL_LEVEL_UPDATED | 2405 | | IW_QUAL_LEVEL_UPDATED |
2406 | | IW_QUAL_NOISE_INVALID; | 2406 | | IW_QUAL_NOISE_INVALID; |