* [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
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 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 0 siblings, 1 reply; 15+ messages in thread From: Johannes Berg @ 2008-11-17 17:40 UTC (permalink / raw) To: Rami Rosen; +Cc: linville, linux-wireless, kune [-- Attachment #1: Type: text/plain, Size: 378 bytes --] On Mon, 2008-11-17 at 17:51 +0200, Rami Rosen wrote: > 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. NAK. This device does not support multicast buffering. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-17 17:40 ` Johannes Berg @ 2008-11-19 13:59 ` Rami Rosen 2008-11-19 14:49 ` Johannes Berg 0 siblings, 1 reply; 15+ messages in thread From: Rami Rosen @ 2008-11-19 13:59 UTC (permalink / raw) To: Johannes Berg; +Cc: linville, linux-wireless, kune Hello, Regarding zd1211 working as an access point in master mode: 1) Searching for it shows that zd1211 chips do support acting as an access point (master mode). Two examples: 1.1) In the link below it says: "ZD1211 can operate in the mode of station and access point." http://linux.softpedia.com/get/System/Hardware/ZD1211-Driver-12712.shtml 2) I saw that in the zd1201 driver there is an access point parameter to the module ; in drivers/net/wireless/zd1201.c, we have: module_param(ap, int, 0). - Can you please elaborate a bit about how can we know whether a device support or does not support multicast buffering ? - Could it be that some zd1211 chipsets do support multicast buffering, and some do not ? Regards, Rami Rosen On Mon, Nov 17, 2008 at 7:40 PM, Johannes Berg <johannes@sipsolutions.net> wrote: > On Mon, 2008-11-17 at 17:51 +0200, Rami Rosen wrote: >> 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. > > NAK. This device does not support multicast buffering. > > johannes > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 13:59 ` Rami Rosen @ 2008-11-19 14:49 ` Johannes Berg 2008-11-19 15:09 ` Rami Rosen 0 siblings, 1 reply; 15+ messages in thread From: Johannes Berg @ 2008-11-19 14:49 UTC (permalink / raw) To: Rami Rosen; +Cc: linville, linux-wireless, kune [-- Attachment #1: Type: text/plain, Size: 748 bytes --] On Wed, 2008-11-19 at 15:59 +0200, Rami Rosen wrote: > Two examples: > 1.1) In the link below it says: "ZD1211 can operate in the mode of > station and access point." > http://linux.softpedia.com/get/System/Hardware/ZD1211-Driver-12712.shtml Maybe it can. > - Can you please elaborate a bit about how can we know whether a > device support or does not support multicast buffering ? I have no idea. At minimum, the driver needs to do what the wiki says: http://wireless.kernel.org/en/developers/Documentation/mac80211/API You'll also want to read the 802.11 docs about this. > - Could it be that some zd1211 chipsets do support multicast > buffering, and some do not ? Doubt it, they all use the same firmware. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 14:49 ` Johannes Berg @ 2008-11-19 15:09 ` Rami Rosen 2008-11-19 15:17 ` Johannes Berg 0 siblings, 1 reply; 15+ messages in thread From: Rami Rosen @ 2008-11-19 15:09 UTC (permalink / raw) To: Johannes Berg; +Cc: linville, linux-wireless, kune Hello, Thanks for your answer. Now, after looking at the API doc , It seems to me that sequence numbering is also missing in the zd1211rw driver. Regards, Rami Rosen On Wed, Nov 19, 2008 at 4:49 PM, Johannes Berg <johannes@sipsolutions.net> wrote: > On Wed, 2008-11-19 at 15:59 +0200, Rami Rosen wrote: > >> Two examples: >> 1.1) In the link below it says: "ZD1211 can operate in the mode of >> station and access point." >> http://linux.softpedia.com/get/System/Hardware/ZD1211-Driver-12712.shtml > > Maybe it can. > >> - Can you please elaborate a bit about how can we know whether a >> device support or does not support multicast buffering ? > > I have no idea. At minimum, the driver needs to do what the wiki says: > http://wireless.kernel.org/en/developers/Documentation/mac80211/API > You'll also want to read the 802.11 docs about this. > >> - Could it be that some zd1211 chipsets do support multicast >> buffering, and some do not ? > > Doubt it, they all use the same firmware. > > johannes > ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 15:09 ` Rami Rosen @ 2008-11-19 15:17 ` Johannes Berg 2008-11-19 16:01 ` John W. Linville 0 siblings, 1 reply; 15+ messages in thread From: Johannes Berg @ 2008-11-19 15:17 UTC (permalink / raw) To: Rami Rosen; +Cc: linville, linux-wireless, kune [-- Attachment #1: Type: text/plain, Size: 360 bytes --] On Wed, 2008-11-19 at 17:09 +0200, Rami Rosen wrote: > Hello, > Thanks for your answer. > > Now, after looking at the API doc , It seems to me that sequence > numbering is also missing in the zd1211rw driver. Possible, but that's not a huge problem. Not having multicast buffering means it won't work for powersaving clients, which is. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 15:17 ` Johannes Berg @ 2008-11-19 16:01 ` John W. Linville 2008-11-19 20:30 ` Johannes Berg 0 siblings, 1 reply; 15+ messages in thread From: John W. Linville @ 2008-11-19 16:01 UTC (permalink / raw) To: Johannes Berg; +Cc: Rami Rosen, linux-wireless, kune On Wed, Nov 19, 2008 at 04:17:49PM +0100, Johannes Berg wrote: > On Wed, 2008-11-19 at 17:09 +0200, Rami Rosen wrote: > > Hello, > > Thanks for your answer. > > > > Now, after looking at the API doc , It seems to me that sequence > > numbering is also missing in the zd1211rw driver. > > Possible, but that's not a huge problem. Not having multicast buffering > means it won't work for powersaving clients, which is. Is there some way we could take that into account? I'm sure there are users who would prefer to have an AP (i.e. their laptop) that can't support PS clients rather than not having an AP at all. John -- John W. Linville Linux should be at the core linville@tuxdriver.com of your literate lifestyle. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 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-20 8:27 ` Jouni Malinen 0 siblings, 2 replies; 15+ messages in thread From: Johannes Berg @ 2008-11-19 20:30 UTC (permalink / raw) To: John W. Linville; +Cc: Rami Rosen, linux-wireless, kune, Jouni Malinen [-- Attachment #1: Type: text/plain, Size: 916 bytes --] On Wed, 2008-11-19 at 11:01 -0500, John W. Linville wrote: > Is there some way we could take that into account? I'm sure there > are users who would prefer to have an AP (i.e. their laptop) that > can't support PS clients rather than not having an AP at all. That's a good question. The distinction here is between empowering users to do the wrong thing (AP without proper PS support) and enforcing the right thing (with the consequence of complete loss of AP functionality). The issue I see here is that users will see "ohh shiny, AP support" without knowing that it doesn't actually really support it. Not sure which side of the line we want to stand on, I prefer the correctness side but I can see arguments for the other side, would just like to have users know. Maybe we could have some way to tell hostapd this and then have hostapd print a huge warning about it when started up? johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 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-19 21:18 ` John W. Linville 2008-11-20 8:27 ` Jouni Malinen 1 sibling, 2 replies; 15+ messages in thread From: Luis R. Rodriguez @ 2008-11-19 21:00 UTC (permalink / raw) To: Johannes Berg Cc: John W. Linville, Rami Rosen, linux-wireless@vger.kernel.org, kune@deine-taler.de, Jouni Malinen On Wed, Nov 19, 2008 at 12:30:19PM -0800, Johannes Berg wrote: > On Wed, 2008-11-19 at 11:01 -0500, John W. Linville wrote: > > > Is there some way we could take that into account? I'm sure there > > are users who would prefer to have an AP (i.e. their laptop) that > > can't support PS clients rather than not having an AP at all. > > That's a good question. The distinction here is between empowering users > to do the wrong thing (AP without proper PS support) and enforcing the > right thing (with the consequence of complete loss of AP functionality). > The issue I see here is that users will see "ohh shiny, AP support" > without knowing that it doesn't actually really support it. Not sure > which side of the line we want to stand on, I prefer the correctness > side but I can see arguments for the other side, would just like to have > users know. Maybe we could have some way to tell hostapd this and then > have hostapd print a huge warning about it when started up? How about making it Kconfigable for broken AP support and add the warning there? Luis ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 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 1 sibling, 1 reply; 15+ messages in thread From: Luis R. Rodriguez @ 2008-11-19 21:16 UTC (permalink / raw) To: Johannes Berg Cc: John W. Linville, Rami Rosen, linux-wireless@vger.kernel.org, kune@deine-taler.de, Jouni Malinen On Wed, Nov 19, 2008 at 01:00:46PM -0800, Luis Rodriguez wrote: > On Wed, Nov 19, 2008 at 12:30:19PM -0800, Johannes Berg wrote: > > On Wed, 2008-11-19 at 11:01 -0500, John W. Linville wrote: > > > > > Is there some way we could take that into account? I'm sure there > > > are users who would prefer to have an AP (i.e. their laptop) that > > > can't support PS clients rather than not having an AP at all. > > > > That's a good question. The distinction here is between empowering users > > to do the wrong thing (AP without proper PS support) and enforcing the > > right thing (with the consequence of complete loss of AP functionality). > > The issue I see here is that users will see "ohh shiny, AP support" > > without knowing that it doesn't actually really support it. Not sure > > which side of the line we want to stand on, I prefer the correctness > > side but I can see arguments for the other side, would just like to have > > users know. Maybe we could have some way to tell hostapd this and then > > have hostapd print a huge warning about it when started up? > > How about making it Kconfigable for broken AP support and add the > warning there? That is have something like CONFIG_MAC80211_AP_HALF_ASSED Luis ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 21:16 ` Luis R. Rodriguez @ 2008-11-20 15:33 ` Michael Buesch 0 siblings, 0 replies; 15+ messages in thread From: Michael Buesch @ 2008-11-20 15:33 UTC (permalink / raw) To: Luis R. Rodriguez Cc: Johannes Berg, John W. Linville, Rami Rosen, linux-wireless@vger.kernel.org, kune@deine-taler.de, Jouni Malinen On Wednesday 19 November 2008 22:16:00 Luis R. Rodriguez wrote: > On Wed, Nov 19, 2008 at 01:00:46PM -0800, Luis Rodriguez wrote: > > On Wed, Nov 19, 2008 at 12:30:19PM -0800, Johannes Berg wrote: > > > On Wed, 2008-11-19 at 11:01 -0500, John W. Linville wrote: > > > > > > > Is there some way we could take that into account? I'm sure there > > > > are users who would prefer to have an AP (i.e. their laptop) that > > > > can't support PS clients rather than not having an AP at all. > > > > > > That's a good question. The distinction here is between empowering users > > > to do the wrong thing (AP without proper PS support) and enforcing the > > > right thing (with the consequence of complete loss of AP functionality). > > > The issue I see here is that users will see "ohh shiny, AP support" > > > without knowing that it doesn't actually really support it. Not sure > > > which side of the line we want to stand on, I prefer the correctness > > > side but I can see arguments for the other side, would just like to have > > > users know. Maybe we could have some way to tell hostapd this and then > > > have hostapd print a huge warning about it when started up? > > > > How about making it Kconfigable for broken AP support and add the > > warning there? > > That is have something like CONFIG_MAC80211_AP_HALF_ASSED This is not acceptable, IMO, because distros will always enable it and users still won't know about it. We want _users_ to know. So the idea of letting hostapd print a huge message is not that bad. -- Greetings Michael. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 21:00 ` Luis R. Rodriguez 2008-11-19 21:16 ` Luis R. Rodriguez @ 2008-11-19 21:18 ` John W. Linville 2008-11-20 6:37 ` Johannes Berg 1 sibling, 1 reply; 15+ messages in thread From: John W. Linville @ 2008-11-19 21:18 UTC (permalink / raw) To: Luis R. Rodriguez Cc: Johannes Berg, Rami Rosen, linux-wireless@vger.kernel.org, kune@deine-taler.de, Jouni Malinen On Wed, Nov 19, 2008 at 01:00:46PM -0800, Luis R. Rodriguez wrote: > On Wed, Nov 19, 2008 at 12:30:19PM -0800, Johannes Berg wrote: > > On Wed, 2008-11-19 at 11:01 -0500, John W. Linville wrote: > > > > > Is there some way we could take that into account? I'm sure there > > > are users who would prefer to have an AP (i.e. their laptop) that > > > can't support PS clients rather than not having an AP at all. > > > > That's a good question. The distinction here is between empowering users > > to do the wrong thing (AP without proper PS support) and enforcing the > > right thing (with the consequence of complete loss of AP functionality). > > The issue I see here is that users will see "ohh shiny, AP support" > > without knowing that it doesn't actually really support it. Not sure > > which side of the line we want to stand on, I prefer the correctness > > side but I can see arguments for the other side, would just like to have > > users know. Maybe we could have some way to tell hostapd this and then > > have hostapd print a huge warning about it when started up? > > How about making it Kconfigable for broken AP support and add the > warning there? That doesn't really associate the bad behavior with specific drivers. Probably better to send something do dmesg and/or make hostap aware of the issue. Any idea if many STAs are smart enough to stop going to sleep once (or if) they realize they are missing frames? John -- John W. Linville Linux should be at the core linville@tuxdriver.com of your literate lifestyle. ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 21:18 ` John W. Linville @ 2008-11-20 6:37 ` Johannes Berg 0 siblings, 0 replies; 15+ messages in thread From: Johannes Berg @ 2008-11-20 6:37 UTC (permalink / raw) To: John W. Linville Cc: Luis R. Rodriguez, Rami Rosen, linux-wireless@vger.kernel.org, kune@deine-taler.de, Jouni Malinen [-- Attachment #1: Type: text/plain, Size: 881 bytes --] On Wed, 2008-11-19 at 16:18 -0500, John W. Linville wrote: > > How about making it Kconfigable for broken AP support and add the > > warning there? > > That doesn't really associate the bad behavior with specific drivers. > Probably better to send something do dmesg and/or make hostap aware > of the issue. Indeed. It also doesn't help you when you're sitting on a train, IBSS mode isn't working and you need to exchange information with some other device :) Mind you, normal users would need to have NM support for APs anyway... > Any idea if many STAs are smart enough to stop going to sleep once > (or if) they realize they are missing frames? They barely have a chance to tell the difference between that and just regular packet loss, so I doubt any are. mac80211 certainly wouldn't be, and I don't see how to program such a thing easily. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-19 20:30 ` Johannes Berg 2008-11-19 21:00 ` Luis R. Rodriguez @ 2008-11-20 8:27 ` Jouni Malinen 2008-11-20 17:52 ` Johannes Berg 1 sibling, 1 reply; 15+ messages in thread From: Jouni Malinen @ 2008-11-20 8:27 UTC (permalink / raw) To: Johannes Berg; +Cc: John W. Linville, Rami Rosen, linux-wireless, kune On Wed, Nov 19, 2008 at 09:30:19PM +0100, Johannes Berg wrote: > That's a good question. The distinction here is between empowering users > to do the wrong thing (AP without proper PS support) and enforcing the > right thing (with the consequence of complete loss of AP functionality). > The issue I see here is that users will see "ohh shiny, AP support" > without knowing that it doesn't actually really support it. Not sure > which side of the line we want to stand on, I prefer the correctness > side but I can see arguments for the other side, would just like to have > users know. Maybe we could have some way to tell hostapd this and then > have hostapd print a huge warning about it when started up? I would be fine adding such a warning into hostapd if someone comes up with the patch and mac80211/nl80211 changes to provide the working-PS-mode capability flag. Is the problem with zd1211rw just in PS buffering of multicast/broadcast frames or does it also have problems with unicast? Many use cases could handle the multicast/broadcast case, but if unicast PS buffering does not work properly, there may be more issues.. Anyway, this leaves a nasty surprise for the end user who may not even realize what power saving really means in context of 802.11 and would not have any way of figuring out why the connection does not work suddenly when the STA goes to power save mode. -- Jouni Malinen PGP id EFC895FA ^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH ] zd1211rw: enable master mode. (wireless-testing) 2008-11-20 8:27 ` Jouni Malinen @ 2008-11-20 17:52 ` Johannes Berg 0 siblings, 0 replies; 15+ messages in thread From: Johannes Berg @ 2008-11-20 17:52 UTC (permalink / raw) To: Jouni Malinen; +Cc: John W. Linville, Rami Rosen, linux-wireless, kune [-- Attachment #1: Type: text/plain, Size: 921 bytes --] On Thu, 2008-11-20 at 10:27 +0200, Jouni Malinen wrote: > I would be fine adding such a warning into hostapd if someone comes up > with the patch and mac80211/nl80211 changes to provide the > working-PS-mode capability flag. Alright. I don't particularly care, so I'm not going to do that ;) > Is the problem with zd1211rw just in PS buffering of multicast/broadcast > frames or does it also have problems with unicast? Many use cases could > handle the multicast/broadcast case, but if unicast PS buffering does > not work properly, there may be more issues.. Anyway, this leaves a > nasty surprise for the end user who may not even realize what power > saving really means in context of 802.11 and would not have any way of > figuring out why the connection does not work suddenly when the STA goes > to power save mode. unicast buffering should be doable well in software though, no? johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [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