]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
mt76x0: add ieee80211_ops ops pointer to mt76x0_alloc_device signature
[linux.git] / drivers / net / wireless / mediatek / mt76 / mt76x0 / pci.c
index 79db75811458c6ed53ca1c944bc8fbdf481d6236..8c020aaf1f0cca349556d528b1d822ed4aa0c2a4 100644 (file)
 #include "mt76x0.h"
 #include "mcu.h"
 #include "../mt76x02_dma.h"
+#include "../mt76x02_util.h"
+
+static int mt76x0e_start(struct ieee80211_hw *hw)
+{
+       return 0;
+}
+
+static void mt76x0e_stop(struct ieee80211_hw *hw)
+{
+}
+
+static const struct ieee80211_ops mt76x0e_ops = {
+       .tx = mt76x0_tx,
+       .start = mt76x0e_start,
+       .stop = mt76x0e_stop,
+       .config = mt76x0_config,
+       .add_interface = mt76x02_add_interface,
+       .remove_interface = mt76x02_remove_interface,
+       .configure_filter = mt76x02_configure_filter,
+};
 
 static int mt76x0e_register_device(struct mt76x0_dev *dev)
 {
@@ -86,7 +106,7 @@ mt76x0e_probe(struct pci_dev *pdev, const struct pci_device_id *id)
        if (ret)
                return ret;
 
-       dev = mt76x0_alloc_device(&pdev->dev, NULL);
+       dev = mt76x0_alloc_device(&pdev->dev, NULL, &mt76x0e_ops);
        if (!dev)
                return -ENOMEM;