linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] b43: Fixes injection speed (up to 350 pps)
@ 2008-04-12 13:39 Jory A. Pratt
  2008-04-13  7:43 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Jory A. Pratt @ 2008-04-12 13:39 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: b43-injection-wireless-testing.patch --]
[-- Type: text/plain, Size: 1419 bytes --]

# Fixes injection speed (up to 350 pps)

diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 345c34b..d3a5535 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -2841,6 +2841,11 @@ static int b43_op_tx(struct ieee80211_hw *hw,
                goto out;
        if (unlikely(b43_status(dev) < B43_STAT_STARTED))
                goto out;
+
+       if (ctl->type == IEEE80211_IF_TYPE_MNTR) {
+               ctl->flags |= IEEE80211_TXCTL_NO_ACK;
+       }
+
        /* TX is done without a global lock. */
        if (b43_using_pio_transfers(dev))
                err = b43_pio_tx(dev, skb, ctl);
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index 19aefbf..85e446b 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -318,7 +318,8 @@ int b43_generate_txhdr(struct b43_wldev *dev,
        /* MAC control */
        if (!(txctl->flags & IEEE80211_TXCTL_NO_ACK))
                mac_ctl |= B43_TXH_MAC_ACK;
-       if (!(((fctl & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) &&
+       if ( (txctl->type != IEEE80211_IF_TYPE_MNTR) &&
+             !(((fctl & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) &&
              ((fctl & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PSPOLL)))
                mac_ctl |= B43_TXH_MAC_HWSEQ;
        if (txctl->flags & IEEE80211_TXCTL_FIRST_FRAGMENT)

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

* Re: [RFC 1/2] b43: Fixes injection speed (up to 350 pps)
  2008-04-12 13:39 [RFC 1/2] b43: Fixes injection speed (up to 350 pps) Jory A. Pratt
@ 2008-04-13  7:43 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2008-04-13  7:43 UTC (permalink / raw)
  To: Jory A. Pratt; +Cc: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]


> +       if (ctl->type == IEEE80211_IF_TYPE_MNTR) {
> +               ctl->flags |= IEEE80211_TXCTL_NO_ACK;
> +       }
> +
>         /* TX is done without a global lock. */
>         if (b43_using_pio_transfers(dev))
>                 err = b43_pio_tx(dev, skb, ctl);
> diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
> index 19aefbf..85e446b 100644
> --- a/drivers/net/wireless/b43/xmit.c
> +++ b/drivers/net/wireless/b43/xmit.c
> @@ -318,7 +318,8 @@ int b43_generate_txhdr(struct b43_wldev *dev,
>         /* MAC control */
>         if (!(txctl->flags & IEEE80211_TXCTL_NO_ACK))
>                 mac_ctl |= B43_TXH_MAC_ACK;
> -       if (!(((fctl & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) &&
> +       if ( (txctl->type != IEEE80211_IF_TYPE_MNTR) &&
> +             !(((fctl & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) &&
>               ((fctl & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PSPOLL)))
>                 mac_ctl |= B43_TXH_MAC_HWSEQ;
>         if (txctl->flags & IEEE80211_TXCTL_FIRST_FRAGMENT)

FWIW, Michael meant this one too, it's not acceptable and we've
previously said why.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2008-04-13  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-12 13:39 [RFC 1/2] b43: Fixes injection speed (up to 350 pps) Jory A. Pratt
2008-04-13  7:43 ` 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).