mac80211: remove HW_SIGNAL_DB
Giving the signal in dB isn't much more useful to userspace than giving the signal in unspecified units. This removes some radiotap information for zd1211 (the only driver using this flag), but it helps a lot for getting cfg80211-based scanning which won't support dB, and zd1211 being dB is a little fishy anyway. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: Bruno Randolf <bruno@thinktube.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
7a7dec6562
commit
7fee5372d8
@@ -173,8 +173,7 @@ static int ieee80211_ioctl_giwrange(struct net_device *dev,
|
||||
range->num_encoding_sizes = 2;
|
||||
range->max_encoding_tokens = NUM_DEFAULT_KEYS;
|
||||
|
||||
if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC ||
|
||||
local->hw.flags & IEEE80211_HW_SIGNAL_DB)
|
||||
if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)
|
||||
range->max_qual.level = local->hw.max_signal;
|
||||
else if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM)
|
||||
range->max_qual.level = -110;
|
||||
|
Reference in New Issue
Block a user