diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-01-30 05:13:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:44 -0500 |
commit | 7fee5372d814c4be9546e5c28ac0058258d8df3e (patch) | |
tree | 021aefd5c32d265f2ca6c9b379c11e0484aeba74 /net/mac80211/wext.c | |
parent | 7a7dec656252a5784218a22abf76ad1cdef115d0 (diff) |
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>
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 5c88b8246bbb..bad1cfbfdf18 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -173,8 +173,7 @@ static int ieee80211_ioctl_giwrange(struct net_device *dev, | |||
173 | range->num_encoding_sizes = 2; | 173 | range->num_encoding_sizes = 2; |
174 | range->max_encoding_tokens = NUM_DEFAULT_KEYS; | 174 | range->max_encoding_tokens = NUM_DEFAULT_KEYS; |
175 | 175 | ||
176 | if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC || | 176 | if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC) |
177 | local->hw.flags & IEEE80211_HW_SIGNAL_DB) | ||
178 | range->max_qual.level = local->hw.max_signal; | 177 | range->max_qual.level = local->hw.max_signal; |
179 | else if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) | 178 | else if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) |
180 | range->max_qual.level = -110; | 179 | range->max_qual.level = -110; |