Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299563
b: refs/heads/master
c: fd09c85
h: refs/heads/master
i:
  299561: 3b79234
  299559: 86c6827
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Apr 17, 2012
1 parent d55edfb commit f3edcae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6741e7f048dacc92e37c5d724ff5c64e45f6c2c9
refs/heads/master: fd09c85fe15aa66a69f091ba178817d5ef82476d
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,7 @@ static struct ath_buf *ath_tx_setup_buffer(struct ath_softc *sc,
struct ath_frame_info *fi = get_frame_info(skb);
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
struct ath_buf *bf;
int fragno;
u16 seqno;

bf = ath_tx_get_buffer(sc);
Expand All @@ -1831,9 +1832,16 @@ static struct ath_buf *ath_tx_setup_buffer(struct ath_softc *sc,
ATH_TXBUF_RESET(bf);

if (tid) {
fragno = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
seqno = tid->seq_next;
hdr->seq_ctrl = cpu_to_le16(tid->seq_next << IEEE80211_SEQ_SEQ_SHIFT);
INCR(tid->seq_next, IEEE80211_SEQ_MAX);

if (fragno)
hdr->seq_ctrl |= cpu_to_le16(fragno);

if (!ieee80211_has_morefrags(hdr->frame_control))
INCR(tid->seq_next, IEEE80211_SEQ_MAX);

bf->bf_state.seqno = seqno;
}

Expand Down

0 comments on commit f3edcae

Please sign in to comment.