linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] zd1211rw: Replace ZD_CS_MULTICAST with ZD_CS_NO_ACK
@ 2009-05-14 17:21 Gábor Stefanik
  2009-05-14 17:32 ` Gábor Stefanik
  0 siblings, 1 reply; 4+ messages in thread
From: Gábor Stefanik @ 2009-05-14 17:21 UTC (permalink / raw)
  To: linville, dsd, kune; +Cc: linux-wireless

According to my tests, all that ZD_CS_MULTICAST does is to
disable retrying/waiting for an ACK. Reflect this by renaming
the bit to ZD_CS_NO_ACK and setting it based on
IEEE80211_TX_CTL_NO_ACK, instead of is_multicast_ether_addr.

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
---
 drivers/net/wireless/zd1211rw/zd_mac.c |    6 +++---
 drivers/net/wireless/zd1211rw/zd_mac.h |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c 
b/drivers/net/wireless/zd1211rw/zd_mac.c
index 85c27ac..d1ec99f 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.c
+++ b/drivers/net/wireless/zd1211rw/zd_mac.c
@@ -430,9 +430,9 @@ static void cs_set_control(struct zd_mac *mac, 
struct zd_ctrlset *cs,
     if (info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)
         cs->control |= ZD_CS_NEED_RANDOM_BACKOFF;
 
-    /* Multicast */
-    if (is_multicast_ether_addr(header->addr1))
-        cs->control |= ZD_CS_MULTICAST;
+    /* No ACK expected (multicast, etc.) */
+    if (info->flags & IEEE80211_TX_CTL_NO_ACK)
+        cs->control |= ZD_CS_NO_ACK;
 
     /* PS-POLL */
     if (ieee80211_is_pspoll(header->frame_control))
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.h 
b/drivers/net/wireless/zd1211rw/zd_mac.h
index 4c05d3e..7c27591 100644
--- a/drivers/net/wireless/zd1211rw/zd_mac.h
+++ b/drivers/net/wireless/zd1211rw/zd_mac.h
@@ -87,7 +87,7 @@ struct zd_ctrlset {
 
 /* zd_ctrlset control field */
 #define ZD_CS_NEED_RANDOM_BACKOFF    0x01
-#define ZD_CS_MULTICAST            0x02
+#define ZD_CS_NO_ACK            0x02
 
 #define ZD_CS_FRAME_TYPE_MASK        0x0c
 #define ZD_CS_DATA_FRAME        0x00
-- 
1.5.6.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* Re: [PATCH] zd1211rw: Replace ZD_CS_MULTICAST with ZD_CS_NO_ACK
@ 2009-05-14 17:47 Xose Vazquez Perez
  2009-05-14 19:09 ` Gábor Stefanik
  0 siblings, 1 reply; 4+ messages in thread
From: Xose Vazquez Perez @ 2009-05-14 17:47 UTC (permalink / raw)
  To: linux-wireless, netrolller.3d

Gábor Stefanik wrote:
 
> Nah, ignore this, it got wordwrapped. (I thought Thunderbird allows
> disabling word-wrap... :-( )

see : http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/email-clients.txt
or linux-2.6/Documentation/email-clients.txt

regards,
-- 
Polycommander, Erkowit, Urquiola, Andros Patria, Cason, Aegean Sea, Prestige, ...

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

end of thread, other threads:[~2009-05-14 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 17:21 [PATCH] zd1211rw: Replace ZD_CS_MULTICAST with ZD_CS_NO_ACK Gábor Stefanik
2009-05-14 17:32 ` Gábor Stefanik
  -- strict thread matches above, loose matches on Subject: below --
2009-05-14 17:47 Xose Vazquez Perez
2009-05-14 19:09 ` Gábor Stefanik

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