Skip to content

Commit

Permalink
mt7603: fix CF-End transmit rate when 11b stations are connected
Browse files Browse the repository at this point in the history
Use a CCK rate in that case

Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Dec 30, 2018
1 parent 24ec040 commit 48fb011
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mt7603/main.c
Expand Up @@ -318,8 +318,18 @@ mt7603_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
}

if (changed & BSS_CHANGED_ERP_SLOT) {
u32 val;

dev->slottime = info->use_short_slot ? 9 : 20;
mt7603_mac_set_timing(dev);

if (info->use_short_slot)
val = MT7603_CFEND_RATE_DEFAULT;
else
val = MT7603_CFEND_RATE_11B;

mt76_rmw_field(dev, MT_AGG_CONTROL, MT_AGG_CONTROL_CFEND_RATE,
val);
}

if (changed & (BSS_CHANGED_BEACON_ENABLED | BSS_CHANGED_BEACON_INT)) {
Expand Down
3 changes: 3 additions & 0 deletions mt7603/mt7603.h
Expand Up @@ -48,6 +48,9 @@

#define MT7603_EDCCA_BLOCK_TH 10

#define MT7603_CFEND_RATE_DEFAULT 0x69 /* chip default (24M) */
#define MT7603_CFEND_RATE_11B 0x03 /* 11B LP, 11M */

struct mt7603_vif;
struct mt7603_sta;

Expand Down

0 comments on commit 48fb011

Please sign in to comment.