linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtl8187: Fix for change in STA handling in mac80211
@ 2008-12-11  1:59 Larry Finger
  2008-12-11  8:26 ` Johannes Berg
  2008-12-11 12:17 ` Hin-Tak Leung
  0 siblings, 2 replies; 8+ messages in thread
From: Larry Finger @ 2008-12-11  1:59 UTC (permalink / raw)
  To: John W Linville, Johannes Berg
  Cc: Herton Ronaldo Krzesinski, Hin-Tak Leung, linux-wireless

After commit ca247d5f50acd4fc6fdc1dec770e726b0d7eda60 "mac80211: only create
default STA interface if supported", rtl8187 stopped working because the
add_interface callback was not called. For reasons that I do not understand,
the IFTYPE_ADHOC bit, as well as the IFTYPE_STATION bit, must be set in the
interface_modes variable.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---

John,

This should be added to wireless-testing as soon as possible.

Larry
---

Index: wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -1429,7 +1429,10 @@ static int __devinit rtl8187_probe(struc
 	 * XXX: Once this driver supports anything that requires
 	 *	beacons it must implement IEEE80211_TX_CTL_ASSIGN_SEQ.
 	 */
-	dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
+	dev->wiphy->interface_modes =
+		BIT(NL80211_IFTYPE_STATION) |
+		BIT(NL80211_IFTYPE_ADHOC);
+
 
 	if ((id->driver_info == DEVICE_RTL8187) && priv->is_rtl8187b)
 		printk(KERN_INFO "rtl8187: inconsistency between id with OEM"

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

end of thread, other threads:[~2008-12-11 19:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11  1:59 [PATCH] rtl8187: Fix for change in STA handling in mac80211 Larry Finger
2008-12-11  8:26 ` Johannes Berg
2008-12-11 11:58   ` Hin-Tak Leung
2008-12-11 12:17 ` Hin-Tak Leung
2008-12-11 15:33   ` Larry Finger
2008-12-11 17:33     ` Hin-Tak Leung
2008-12-11 17:37       ` Stefanik Gábor
2008-12-11 19:24     ` Hin-Tak Leung

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).