* [PATCH 1/6] ath9k: Fix bug in assigning sequence number
@ 2009-12-14 9:26 Sujith
2009-12-14 14:58 ` Luis R. Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Sujith @ 2009-12-14 9:26 UTC (permalink / raw)
To: linville; +Cc: linux-wireless
The internal, driver-specific maintenance of sequence
numbers is applicable only for HT frames.
Also, remove comments that are not relevant anymore.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
---
drivers/net/wireless/ath/ath9k/xmit.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/xmit.c b/drivers/net/wireless/ath/ath9k/xmit.c
index 2a11cc5..c56f4ac 100644
--- a/drivers/net/wireless/ath/ath9k/xmit.c
+++ b/drivers/net/wireless/ath/ath9k/xmit.c
@@ -1414,17 +1414,9 @@ static void assign_aggr_tid_seqno(struct sk_buff *skb,
* For HT capable stations, we save tidno for later use.
* We also override seqno set by upper layer with the one
* in tx aggregation state.
- *
- * If fragmentation is on, the sequence number is
- * not overridden, since it has been
- * incremented by the fragmentation routine.
- *
- * FIXME: check if the fragmentation threshold exceeds
- * IEEE80211 max.
*/
tid = ATH_AN_2_TID(an, bf->bf_tidno);
- hdr->seq_ctrl = cpu_to_le16(tid->seq_next <<
- IEEE80211_SEQ_SEQ_SHIFT);
+ hdr->seq_ctrl = cpu_to_le16(tid->seq_next << IEEE80211_SEQ_SEQ_SHIFT);
bf->bf_seqno = tid->seq_next;
INCR(tid->seq_next, IEEE80211_SEQ_MAX);
}
@@ -1636,7 +1628,8 @@ static int ath_tx_setup_buffer(struct ieee80211_hw *hw, struct ath_buf *bf,
bf->bf_keyix = ATH9K_TXKEYIX_INVALID;
}
- if (ieee80211_is_data_qos(fc) && (sc->sc_flags & SC_OP_TXAGGR))
+ if (ieee80211_is_data_qos(fc) && bf_isht(bf) &&
+ (sc->sc_flags & SC_OP_TXAGGR))
assign_aggr_tid_seqno(skb, bf);
bf->bf_mpdu = skb;
--
1.6.5.6
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/6] ath9k: Fix bug in assigning sequence number
2009-12-14 9:26 [PATCH 1/6] ath9k: Fix bug in assigning sequence number Sujith
@ 2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-15 5:03 ` Sujith
0 siblings, 2 replies; 5+ messages in thread
From: Luis R. Rodriguez @ 2009-12-14 14:58 UTC (permalink / raw)
To: Sujith; +Cc: linville, linux-wireless
On Mon, Dec 14, 2009 at 1:26 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> The internal, driver-specific maintenance of sequence
> numbers is applicable only for HT frames.
>
> Also, remove comments that are not relevant anymore.
>
> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Is this cc: stable?
Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/6] ath9k: Fix bug in assigning sequence number
2009-12-14 14:58 ` Luis R. Rodriguez
@ 2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-15 5:04 ` Sujith
2009-12-15 5:03 ` Sujith
1 sibling, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2009-12-14 14:58 UTC (permalink / raw)
To: Sujith; +Cc: linville, linux-wireless
On Mon, Dec 14, 2009 at 6:58 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Mon, Dec 14, 2009 at 1:26 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
>> The internal, driver-specific maintenance of sequence
>> numbers is applicable only for HT frames.
>>
>> Also, remove comments that are not relevant anymore.
>>
>> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
>
> Is this cc: stable?
Also what bug does this fix, the commit log in no way explains any of this.
Luis
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/6] ath9k: Fix bug in assigning sequence number
2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-14 14:58 ` Luis R. Rodriguez
@ 2009-12-15 5:03 ` Sujith
1 sibling, 0 replies; 5+ messages in thread
From: Sujith @ 2009-12-15 5:03 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Luis R. Rodriguez wrote:
> On Mon, Dec 14, 2009 at 1:26 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> > The internal, driver-specific maintenance of sequence
> > numbers is applicable only for HT frames.
> >
> > Also, remove comments that are not relevant anymore.
> >
> > Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
>
> Is this cc: stable?
No, this bug has been in the code forever.
Sujith
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/6] ath9k: Fix bug in assigning sequence number
2009-12-14 14:58 ` Luis R. Rodriguez
@ 2009-12-15 5:04 ` Sujith
0 siblings, 0 replies; 5+ messages in thread
From: Sujith @ 2009-12-15 5:04 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Luis R. Rodriguez wrote:
> On Mon, Dec 14, 2009 at 6:58 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> > On Mon, Dec 14, 2009 at 1:26 AM, Sujith <Sujith.Manoharan@atheros.com> wrote:
> >> The internal, driver-specific maintenance of sequence
> >> numbers is applicable only for HT frames.
> >>
> >> Also, remove comments that are not relevant anymore.
> >>
> >> Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
> >
> > Is this cc: stable?
>
> Also what bug does this fix, the commit log in no way explains any of this.
The patch just removes redundant maintenance of sequence numbers in the code.
Sujith
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-15 5:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 9:26 [PATCH 1/6] ath9k: Fix bug in assigning sequence number Sujith
2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-14 14:58 ` Luis R. Rodriguez
2009-12-15 5:04 ` Sujith
2009-12-15 5:03 ` Sujith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox