Skip to contentSkip to conversation

mt76: mt7921: fix -Werror=incompatible-pointer-types build error

PATCH New [email protected] 1 participant 1 message Jun 21, 2022

Subsystems (2)
lore
Share & tools
lore

[email protected]

author reviewer
#0 lore raw

PATCH 1/1 mt76: mt7921: fix -Werror=incompatible-pointer-types build error

From: Sean Wang <[email protected]>

start/stop ap funciton definition is changed since 'ae7ba17b49b6 ("wifi: mac80211: pass the link id in start/stop ap")' was added, so we adapt into it to fix -Werror=incompatible-pointer-types build error.

---
 drivers/net/wireless/mediatek/mt76/mt7921/main.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7921/main.c +4 -4
index a9e0e00b764c..4be488da0117 100644
@@ -1505,8 +1505,8 @@ mt7921_channel_switch_beacon(struct ieee80211_hw *hw,
 }
 
 static int
-mt7921_start_ap(struct ieee80211_hw *hw,
-		struct ieee80211_vif *vif)
+mt7921_start_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
+		unsigned int link_id)
 {
 	struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv;
 	struct mt7921_phy *phy = mt7921_hw_phy(hw);
@@ -1527,8 +1527,8 @@ mt7921_start_ap(struct ieee80211_hw *hw,
 }
 
 static void
-mt7921_stop_ap(struct ieee80211_hw *hw,
-	       struct ieee80211_vif *vif)
+mt7921_stop_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
+	       unsigned int link_id)
 {
 	struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv;
 	struct mt7921_phy *phy = mt7921_hw_phy(hw);
Signature · 1 line
2.25.1