cfg80211/mac80211: fill qual.qual value/adjust max_qual.qual
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 18 Feb 2009 17:27:22 +0000 (18:27 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:40 +0000 (14:52 -0500)
commita77b855245541823b49999a27245ad7428879096
tree29e80ea3f90a22309b55ea1823eda5700ebc4b49
parentcb3a8eec0e66edfe8db7d3b3bf19d25745bae3c3
cfg80211/mac80211: fill qual.qual value/adjust max_qual.qual

Due to various bugs in the software stack we end up having
to fill qual.qual; level should be used, but wpa_supplicant
doesn't properly ignore qual.qual, NM should use qual.level
regardless of that because qual.qual is 0 but doesn't handle
IW_QUAL_DBM right now.

So fill qual.qual with the qual.level value clamped to
-110..-40 dBm or just the regular 'unspecified' signal level.
This requires a mac80211 change to properly announce the
max_qual.qual and avg_qual.qual values.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wext.c
net/wireless/scan.c