linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH ] zd1211rw: enable master mode. (wireless-testing)
@ 2008-11-17 15:51 Rami Rosen
  2008-11-17 17:40 ` Johannes Berg
  0 siblings, 1 reply; 15+ messages in thread
From: Rami Rosen @ 2008-11-17 15:51 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, kune

This patch adds initial support for master mode for zd1211rw USB
wireless driver (via tools such as  hostapd).
It enables basic functionality like association from a managed station
and identifying the master mode by scanning from a station.

Signed-off-by: Rami Rosen <ramirose@gmail.com>

diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c
b/drivers/net/wireless/zd1211rw/zd_mac.c
index 980acdf..03be818 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -721,6 +721,7 @@ static int zd_op_add_interface(struct ieee80211_hw *hw,
 		return -EOPNOTSUPP;

 	switch (conf->type) {
+	case NL80211_IFTYPE_AP:
 	case NL80211_IFTYPE_MONITOR:
 	case NL80211_IFTYPE_MESH_POINT:
 	case NL80211_IFTYPE_STATION:
@@ -972,6 +973,7 @@ struct ieee80211_hw *zd_mac_alloc_hw(struct
usb_interface *intf)
 		    IEEE80211_HW_SIGNAL_DB;

 	hw->wiphy->interface_modes =
+		BIT(NL80211_IFTYPE_AP) |
 		BIT(NL80211_IFTYPE_MESH_POINT) |
 		BIT(NL80211_IFTYPE_STATION) |
 		BIT(NL80211_IFTYPE_ADHOC);

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

end of thread, other threads:[~2008-11-20 17:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17 15:51 [PATCH ] zd1211rw: enable master mode. (wireless-testing) Rami Rosen
2008-11-17 17:40 ` Johannes Berg
2008-11-19 13:59   ` Rami Rosen
2008-11-19 14:49     ` Johannes Berg
2008-11-19 15:09       ` Rami Rosen
2008-11-19 15:17         ` Johannes Berg
2008-11-19 16:01           ` John W. Linville
2008-11-19 20:30             ` Johannes Berg
2008-11-19 21:00               ` Luis R. Rodriguez
2008-11-19 21:16                 ` Luis R. Rodriguez
2008-11-20 15:33                   ` Michael Buesch
2008-11-19 21:18                 ` John W. Linville
2008-11-20  6:37                   ` Johannes Berg
2008-11-20  8:27               ` Jouni Malinen
2008-11-20 17:52                 ` Johannes Berg

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