mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
mt76: connac: remove PHY_MODE_AX_6G configuration in mt76_connac_get_phy_mode
Get rid of PHY_MODE_AX_6G configuration in mt76_connac_get_phy_mode routine since mode is an u8 and PHY_MODE_AX_6G is set in phymode_ext field in mt76_connac_bss_basic_tlv. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
e4fce22b5b
commit
dfdf6725d5
@@ -1190,12 +1190,8 @@ mt76_connac_get_phy_mode(struct mt76_phy *phy, struct ieee80211_vif *vif,
|
||||
if (vht_cap->vht_supported)
|
||||
mode |= PHY_MODE_AC;
|
||||
|
||||
if (he_cap && he_cap->has_he) {
|
||||
if (band == NL80211_BAND_6GHZ)
|
||||
mode |= PHY_MODE_AX_6G;
|
||||
else
|
||||
mode |= PHY_MODE_AX_5G;
|
||||
}
|
||||
if (he_cap && he_cap->has_he && band == NL80211_BAND_5GHZ)
|
||||
mode |= PHY_MODE_AX_5G;
|
||||
}
|
||||
|
||||
return mode;
|
||||
@@ -1318,7 +1314,7 @@ int mt76_connac_mcu_uni_add_bss(struct mt76_phy *phy,
|
||||
idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx;
|
||||
basic_req.basic.hw_bss_idx = idx;
|
||||
if (band == NL80211_BAND_6GHZ)
|
||||
basic_req.basic.phymode_ext = BIT(0);
|
||||
basic_req.basic.phymode_ext = PHY_MODE_AX_6G;
|
||||
|
||||
basic_phy = mt76_connac_get_phy_mode_v2(phy, vif, band, NULL);
|
||||
basic_req.basic.nonht_basic_phy = cpu_to_le16(basic_phy);
|
||||
|
||||
@@ -423,7 +423,8 @@ enum {
|
||||
#define PHY_MODE_AC BIT(5)
|
||||
#define PHY_MODE_AX_24G BIT(6)
|
||||
#define PHY_MODE_AX_5G BIT(7)
|
||||
#define PHY_MODE_AX_6G BIT(8)
|
||||
|
||||
#define PHY_MODE_AX_6G BIT(0) /* phymode_ext */
|
||||
|
||||
#define MODE_CCK BIT(0)
|
||||
#define MODE_OFDM BIT(1)
|
||||
|
||||
Reference in New Issue
Block a user