Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH 2/2] zd1211rw: enable an AP that can't support fully PS clients (wireless-testing).
@ 2008-11-24  7:44 Rami Rosen
  2008-11-24 10:35 ` Johannes Berg
  0 siblings, 1 reply; 8+ messages in thread
From: Rami Rosen @ 2008-11-24  7:44 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, johannes, j

This patch enables master mode support in zd1211rw driver and enables
it to support the PS challenged mode when used in master mode.

It adds this functionality in the zd1211rw driver by adding support to
master mode (NL80211_IFTYPE_AP) in zd_op_add_interface() and in
zd_mac_alloc_hw() methods
of drivers/net/wireless/zd_mac.c.

In addition, the new boolean member of wiphy struct, ap_ps_challenged,
is initialized to true in zd_mac_alloc_hw().

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..d00cff2 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,10 +973,11 @@ 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);
-
+	hw->wiphy->ap_ps_challenged = true;
 	hw->max_signal = 100;
 	hw->queues = 1;
 	hw->extra_tx_headroom = sizeof(struct zd_ctrlset);

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

end of thread, other threads:[~2008-11-27  9:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24  7:44 [PATCH 2/2] zd1211rw: enable an AP that can't support fully PS clients (wireless-testing) Rami Rosen
2008-11-24 10:35 ` Johannes Berg
2008-11-24 11:09   ` Rami Rosen
2008-11-24 11:21     ` Johannes Berg
2008-11-24 11:38       ` Rami Rosen
2008-11-24 11:44         ` Johannes Berg
2008-11-27  9:06         ` Johannes Berg
2008-11-27  9:31           ` Rami Rosen

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