mt7603: fix CF-End transmit rate when 11b stations are connected

Use a CCK rate in that case

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2018-12-30 17:08:40 +01:00
parent 24ec040a97
commit 48fb0116f0
2 changed files with 13 additions and 0 deletions
+10
View File
@@ -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)) {
+3
View File
@@ -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;