From: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
To: "Stefanik Gábor" <netrolller.3d@gmail.com>
Cc: "linux-wireless" <linux-wireless@vger.kernel.org>,
"Hin-Tak Leung" <hintak.leung@gmail.com>,
"Larry Finger" <Larry.Finger@lwfinger.net>,
"Johannes Berg" <johannes@sipsolutions.net>,
"John W. Linville" <linville@tuxdriver.com>
Subject: Re: [RFC] rtl8187: Do not wait for an ACK when IEEE80211_TX_CTL_NO_ACK is set
Date: Thu, 27 Nov 2008 15:43:56 -0200 [thread overview]
Message-ID: <200811271543.59126.herton@mandriva.com.br> (raw)
In-Reply-To: <69e28c910811261431u26e341d3p51ebadca807f4b61@mail.gmail.com>
Em Quarta 26 Novembro 2008, =C3=A0s 20:31:03, Stefanik G=C3=A1bor escre=
veu:
> (Patch also available as an attachment in case Gmail decides to linew=
rap
> it.)
>
> Currently we always wait for an ACK even if IEEE80211_TX_CTL_NO_ACK i=
s set.
> This is just the opposite of what other drivers do.
nack.
I've seen other drivers set just a flag when hardware has a bit field t=
o
signalize that there isn't need to ack the tx packet to be sent, but
don't saw anyone changing retry in tx hw header. Also setting to 0 in
no_ack case looks wrong, for example see ath5k where it even checks for
0 and returns an error if you try to do this.
> Change both RTL8187L and RTL8187B to skip waiting for an ACK when no
> ACK was requested.
>
> Signed-off-by: G=C3=A1bor Stefanik <netrolller.3d@gmail.com>
> ---
> drivers/net/wireless/rtl818x/rtl8187_dev.c | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c
> b/drivers/net/wireless/rtl818x/rtl8187_dev.c
> index 9fd23b5..7f12d9f 100644
> --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
> +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
> @@ -230,7 +230,10 @@ static int rtl8187_tx(struct ieee80211_hw *dev,
> struct sk_buff *skb)
> hdr->flags =3D cpu_to_le32(flags);
> hdr->len =3D 0;
> hdr->rts_duration =3D rts_dur;
> - hdr->retry =3D cpu_to_le32(info->control.rates[0].count << 8);
> + if (!(info->flags & IEEE80211_TX_CTL_NO_ACK))
> + hdr->retry =3D cpu_to_le32(info->control.rates[0].count << 8);
> + else
> + hdr->retry =3D 0;
> buf =3D hdr;
>
> ep =3D 2;
> @@ -248,7 +251,10 @@ static int rtl8187_tx(struct ieee80211_hw *dev,
> struct sk_buff *skb)
> memset(hdr, 0, sizeof(*hdr));
> hdr->flags =3D cpu_to_le32(flags);
> hdr->rts_duration =3D rts_dur;
> - hdr->retry =3D cpu_to_le32(info->control.rates[0].count << 8);
> + if (!(info->flags & IEEE80211_TX_CTL_NO_ACK))
> + hdr->retry =3D cpu_to_le32(info->control.rates[0].count << 8);
> + else
> + hdr->retry =3D 0;
> hdr->tx_duration =3D
> ieee80211_generic_frame_duration(dev, priv->vif,
> skb->len, txrate);
--
[]'s
Herton
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-11-27 17:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 22:31 [RFC] rtl8187: Do not wait for an ACK when IEEE80211_TX_CTL_NO_ACK is set Stefanik Gábor
2008-11-27 17:43 ` Herton Ronaldo Krzesinski [this message]
2008-11-27 20:02 ` Stefanik Gábor
2008-11-27 21:52 ` Herton Ronaldo Krzesinski
2008-11-27 21:59 ` Johannes Berg
2008-11-27 22:39 ` Stefanik Gábor
2008-11-28 0:33 ` herton
2008-11-27 23:10 ` Hin-Tak Leung
2008-11-27 23:45 ` Hin-Tak Leung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200811271543.59126.herton@mandriva.com.br \
--to=herton@mandriva.com.br \
--cc=Larry.Finger@lwfinger.net \
--cc=hintak.leung@gmail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=netrolller.3d@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox