netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH wireless-dev] d80211: Don't discriminate against 802.11b drivers
@ 2006-05-05  2:32 Michael Wu
  2006-05-11 15:54 ` Jiri Benc
  0 siblings, 1 reply; 15+ messages in thread
From: Michael Wu @ 2006-05-05  2:32 UTC (permalink / raw)
  To: John W. Linville; +Cc: Jiri Benc, Jouni Malinen, netdev, jkmaline

This makes the current hack used to prevent 802.11g cards from scanning with 
802.11b channels not break scanning in 802.11b drivers.

Signed-off-by: Michael Wu <flamingice@sourmilk.net>

diff --git a/net/d80211/ieee80211_sta.c b/net/d80211/ieee80211_sta.c
index 2720f1d..5c8fe22 100644
--- a/net/d80211/ieee80211_sta.c
+++ b/net/d80211/ieee80211_sta.c
@@ -2566,7 +2566,7 @@ int ieee80211_sta_req_scan(struct net_de
 		memcpy(local->scan_ssid, ssid, ssid_len);
 	} else
 		local->scan_ssid_len = 0;
-	local->scan_skip_11b = 1; /* FIX: clear this is 11g is not supported */
+	local->scan_skip_11b = local->hw->num_modes > 1;
 	local->scan_state = SCAN_SET_CHANNEL;
 	local->scan_hw_mode_idx = 0;
 	local->scan_channel_idx = 0;

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2006-05-19 19:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-05  2:32 [PATCH wireless-dev] d80211: Don't discriminate against 802.11b drivers Michael Wu
2006-05-11 15:54 ` Jiri Benc
2006-05-10 17:31   ` Michael Wu
2006-05-12 10:47     ` Jiri Benc
2006-05-12 20:35       ` Michael Wu
2006-05-15 11:37         ` Jiri Benc
2006-05-15 12:04           ` Johannes Berg
2006-05-15 13:35             ` Jiri Benc
2006-05-15 14:01               ` Michael Buesch
2006-05-15 14:12                 ` Jiri Benc
2006-05-15 17:19           ` Michael Wu
2006-05-19 18:06             ` John W. Linville
2006-05-19 19:03               ` Michael Wu
2006-05-19 19:22                 ` John W. Linville
2006-05-11 20:41   ` Michael Buesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).