Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix ifmodes check
@ 2008-12-11  8:30 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-12-11  8:30 UTC (permalink / raw)
  To: John Linville; +Cc: Larry Finger, linux-wireless

In "mac80211: only create default STA interface if supported",
I tried to make sure a driver supported STA mode before adding
the default virtual interface. That had a stupid bug though
which Larry found: I didn't use BIT().

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
---
 net/mac80211/main.c |    2 +-
 1 filechanged, 1 insertion(+), 1 deletion(-)
	 
--- everything.orig/net/mac80211/main.c	2008-12-11 09:27:30.000000000 +0100
+++ everything/net/mac80211/main.c	2008-12-11 09:27:39.000000000 +0100
@@ -887,7 +887,7 @@ int ieee80211_register_hw(struct ieee802
 	local->mdev->select_queue = ieee80211_select_queue;
 
 	/* add one default STA interface if supported */
-	if (local->hw.wiphy->interface_modes & NL80211_IFTYPE_STATION) {
+	if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_STATION)) {
 		result = ieee80211_if_add(local, "wlan%d", NULL,
 					  NL80211_IFTYPE_STATION, NULL);
 		if (result)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-11  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11  8:30 [PATCH] mac80211: fix ifmodes check Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox