wifi: rtw89: correct aSIFSTime for 6GHz band
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 30 Apr 2024 02:05:15 +0000 (10:05 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sat, 4 May 2024 00:14:49 +0000 (08:14 +0800)
aSIFSTime is 10us for 2GHz band and 16us for 5GHz and 6GHz bands.
Originally, it doesn't consider 6GHz band and use wrong value, so correct
it accordingly.

Cc: stable@vger.kernel.org
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240430020515.8399-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac80211.c

index ca4938eed23c097ebc6a758581aee987e630f707..1ec97250e88e54679b28baad33a72d51ad43d3c4 100644 (file)
@@ -318,7 +318,7 @@ static u8 rtw89_aifsn_to_aifs(struct rtw89_dev *rtwdev,
        u8 sifs;
 
        slot_time = vif->bss_conf.use_short_slot ? 9 : 20;
-       sifs = chan->band_type == RTW89_BAND_5G ? 16 : 10;
+       sifs = chan->band_type == RTW89_BAND_2G ? 10 : 16;
 
        return aifsn * slot_time + sifs;
 }