Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300713
b: refs/heads/master
c: e66a8dd
h: refs/heads/master
i:
  300711: bf9dc0c
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Apr 11, 2012
1 parent f4704c1 commit 9be2f14
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 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: cefa5fd29756c608cd9ad67a358324972f7fbc25
refs/heads/master: e66a8ddff72e85605f2212a0ebc666c7e9116641
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ enum rt2x00_state_flags {
CONFIG_CHANNEL_HT40,
CONFIG_POWERSAVING,
CONFIG_HT_DISABLED,
CONFIG_QOS_DISABLED,

/*
* Mark we currently are sequentially reading TX_STA_FIFO register
Expand Down
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,18 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw,
rt2x00dev->intf_associated--;

rt2x00leds_led_assoc(rt2x00dev, !!rt2x00dev->intf_associated);

clear_bit(CONFIG_QOS_DISABLED, &rt2x00dev->flags);
}

/*
* Check for access point which do not support 802.11e . We have to
* generate data frames sequence number in S/W for such AP, because
* of H/W bug.
*/
if (changes & BSS_CHANGED_QOS && !bss_conf->qos)
set_bit(CONFIG_QOS_DISABLED, &rt2x00dev->flags);

/*
* When the erp information has changed, we should perform
* additional configuration steps. For all other changes we are done.
Expand Down
15 changes: 13 additions & 2 deletions trunk/drivers/net/wireless/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,19 @@ static void rt2x00queue_create_tx_descriptor_seq(struct rt2x00_dev *rt2x00dev,

__set_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags);

if (!test_bit(REQUIRE_SW_SEQNO, &rt2x00dev->cap_flags))
return;
if (!test_bit(REQUIRE_SW_SEQNO, &rt2x00dev->cap_flags)) {
/*
* rt2800 has a H/W (or F/W) bug, device incorrectly increase
* seqno on retransmited data (non-QOS) frames. To workaround
* the problem let's generate seqno in software if QOS is
* disabled.
*/
if (test_bit(CONFIG_QOS_DISABLED, &rt2x00dev->flags))
__clear_bit(ENTRY_TXD_GENERATE_SEQ, &txdesc->flags);
else
/* H/W will generate sequence number */
return;
}

/*
* The hardware is not able to insert a sequence number. Assign a
Expand Down

0 comments on commit 9be2f14

Please sign in to comment.