wifi: mt76: connac: move mt7615_mcu_del_wtbl_all to connac
authorFelix Fietkau <nbd@nbd.name>
Tue, 27 Aug 2024 09:30:05 +0000 (11:30 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 12:23:07 +0000 (14:23 +0200)
Preparation for reusing it in mt7915

Link: https://patch.msgid.link/20240827093011.18621-18-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h

index f7722f67db576f9a1d7191d11c52905a155c25cc..f9274c130c57fdb936cef6cf8c55911b88fdec28 100644 (file)
@@ -319,7 +319,7 @@ void mt7615_init_work(struct mt7615_dev *dev)
        mt7615_mcu_set_eeprom(dev);
        mt7615_mac_init(dev);
        mt7615_phy_init(dev);
-       mt7615_mcu_del_wtbl_all(dev);
+       mt76_connac_mcu_del_wtbl_all(&dev->mt76);
        mt7615_check_offload_capability(dev);
 }
 EXPORT_SYMBOL_GPL(mt7615_init_work);
index f6eb9939c3e251e3bddc22c4731adfd4dfda0610..1592188748028d138ad987fa3144a3c9ecdd6e1a 100644 (file)
@@ -1880,16 +1880,6 @@ out:
                                 sizeof(req), true);
 }
 
-int mt7615_mcu_del_wtbl_all(struct mt7615_dev *dev)
-{
-       struct wtbl_req_hdr req = {
-               .operation = WTBL_RESET_ALL,
-       };
-
-       return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(WTBL_UPDATE),
-                                &req, sizeof(req), true);
-}
-
 int mt7615_mcu_set_fcc5_lpn(struct mt7615_dev *dev, int val)
 {
        struct {
index 68f4a7727a269e27c11e04bb29531e725a55bc80..530da48ce3ea9f451380906faefd3ef77f9971fc 100644 (file)
@@ -399,7 +399,6 @@ void mt7615_mac_set_rates(struct mt7615_phy *phy, struct mt7615_sta *sta,
                          struct ieee80211_tx_rate *rates);
 void mt7615_pm_wake_work(struct work_struct *work);
 void mt7615_pm_power_save_work(struct work_struct *work);
-int mt7615_mcu_del_wtbl_all(struct mt7615_dev *dev);
 int mt7615_mcu_set_chan_info(struct mt7615_phy *phy, int cmd);
 int mt7615_mcu_set_wmm(struct mt7615_dev *dev, u8 queue,
                       const struct ieee80211_tx_queue_params *params);
index 3a575cebe4a9ab9bf1bec9b10bf30c8bcc948fa5..864246f940889959a39be9dc26abd16a8ef7f26c 100644 (file)
@@ -2849,6 +2849,17 @@ int mt76_connac_mcu_restart(struct mt76_dev *dev)
 }
 EXPORT_SYMBOL_GPL(mt76_connac_mcu_restart);
 
+int mt76_connac_mcu_del_wtbl_all(struct mt76_dev *dev)
+{
+       struct wtbl_req_hdr req = {
+               .operation = WTBL_RESET_ALL,
+       };
+
+       return mt76_mcu_send_msg(dev, MCU_EXT_CMD(WTBL_UPDATE),
+                                &req, sizeof(req), true);
+}
+EXPORT_SYMBOL_GPL(mt76_connac_mcu_del_wtbl_all);
+
 int mt76_connac_mcu_rdd_cmd(struct mt76_dev *dev, int cmd, u8 index,
                            u8 rx_sel, u8 val)
 {
index e04ae7eddb0150bd109d14cab2cb40683864fc23..66d70d6e7957d4611b535c3d4e68b34e2e4e3635 100644 (file)
@@ -2032,6 +2032,7 @@ void mt76_connac_mcu_wtbl_smps_tlv(struct sk_buff *skb,
                                   void *sta_wtbl, void *wtbl_tlv);
 int mt76_connac_mcu_set_pm(struct mt76_dev *dev, int band, int enter);
 int mt76_connac_mcu_restart(struct mt76_dev *dev);
+int mt76_connac_mcu_del_wtbl_all(struct mt76_dev *dev);
 int mt76_connac_mcu_rdd_cmd(struct mt76_dev *dev, int cmd, u8 index,
                            u8 rx_sel, u8 val);
 int mt76_connac_mcu_sta_wed_update(struct mt76_dev *dev, struct sk_buff *skb);