mt76: connac: adjust wlan_idx size from u8 to u16
authorChad Monroe <chad.monroe@smartrg.com>
Sat, 12 Feb 2022 18:04:26 +0000 (10:04 -0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Feb 2022 13:40:22 +0000 (14:40 +0100)
Newer chips such as MT7915 require up to 16-bits for this field.

Fixes: 49126ac1f8d26 ("mt76: connac: move mt76_connac_mcu_bss_basic_tlv in connac module")
Signed-off-by: Chad Monroe <chad.monroe@smartrg.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h

index 4363115639bb6970195f6a140f121412caf9f3ef..0a646ae51c8d0b1f5fcbbbbaffa783d81880f737 100644 (file)
@@ -2654,7 +2654,7 @@ EXPORT_SYMBOL_GPL(mt76_connac_mcu_bss_ext_tlv);
 int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb,
                                  struct ieee80211_vif *vif,
                                  struct ieee80211_sta *sta,
-                                 struct mt76_phy *phy, u8 wlan_idx,
+                                 struct mt76_phy *phy, u16 wlan_idx,
                                  bool enable)
 {
        struct mt76_vif *mvif = (struct mt76_vif *)vif->drv_priv;
index 7b9d82dd3f9da085e3742b40ec64e59fae07dfa6..384c3eab1c8ace936fbd71c7bdf047ec80660d23 100644 (file)
@@ -1642,7 +1642,7 @@ void mt76_connac_mcu_bss_omac_tlv(struct sk_buff *skb,
 int mt76_connac_mcu_bss_basic_tlv(struct sk_buff *skb,
                                  struct ieee80211_vif *vif,
                                  struct ieee80211_sta *sta,
-                                 struct mt76_phy *phy, u8 wlan_idx,
+                                 struct mt76_phy *phy, u16 wlan_idx,
                                  bool enable);
 void mt76_connac_mcu_sta_uapsd(struct sk_buff *skb, struct ieee80211_vif *vif,
                               struct ieee80211_sta *sta);