Search Linux Wireless

Re: [PATCH v2 11/15] ath9k: remove unnecessary IEEE80211_TX_CTL_NO_ACK checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jun 07, 2009 at 11:25:31AM -0700, Gábor Stefanik wrote:
> On Sat, Jun 6, 2009 at 2:03 AM, Luis R. Rodriguez<lrodriguez@xxxxxxxxxxx> wrote:
> > We check for this condition early on in our mac80211 get_rate()
> > callback ath_get_rate(), so remove this check later down the path.
> >
> > Cc: Derek Smithies <derek@xxxxxxxxxxxxxx>
> > Cc: Chittajit Mitra <Chittajit.Mitra@xxxxxxxxxxx>
> > Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
> > ---
> >  drivers/net/wireless/ath/ath9k/rc.c |    6 ++----
> >  1 files changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c
> > index 9907f2f..d8d2152 100644
> > --- a/drivers/net/wireless/ath/ath9k/rc.c
> > +++ b/drivers/net/wireless/ath/ath9k/rc.c
> > @@ -783,7 +783,6 @@ static void ath_rc_rate_set_rtscts(struct ath_softc *sc,
> >         * just CTS.  Note that this is only done for OFDM/HT unicast frames.
> >         */
> >        if ((sc->sc_flags & SC_OP_PROTECT_ENABLE) &&
> > -           !(tx_info->flags & IEEE80211_TX_CTL_NO_ACK) &&
> >            (rate_table->info[rix].phy == WLAN_RC_PHY_OFDM ||
> >             WLAN_RC_PHY_HT(rate_table->info[rix].phy))) {
> >                rates[0].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT;
> > @@ -890,9 +889,8 @@ static void ath_rc_ratefind(struct ath_softc *sc,
> >         *
> >         * FIXME: Fix duration
> >         */
> > -       if (!(tx_info->flags & IEEE80211_TX_CTL_NO_ACK) &&
> > -           (ieee80211_has_morefrags(fc) ||
> > -            (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG))) {
> > +       if (ieee80211_has_morefrags(fc) ||
> > +           (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG)) {
> >                rates[1].count = rates[2].count = rates[3].count = 0;
> >                rates[1].idx = rates[2].idx = rates[3].idx = 0;
> >                rates[0].count = ATH_TXMAXTRY;
> > --
> > 1.6.0.6
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> Is this a side effect of my NO_ACK retry count patchset accepted earlier?

Yes.

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux