mt76x2u: init: remove mt76x2u_init_beacon_offsets routine
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 6 Nov 2018 16:59:48 +0000 (17:59 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 30 Nov 2018 11:29:30 +0000 (12:29 +0100)
Remove mt76x2u_init_beacon_offsets routine since the driver supports
just STA mode

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c

index 8b280a4ea792742681a14ca31dbb6ea282b20b11..de0fbdb02c4db2016f5d0d7235df045ad6465090 100644 (file)
@@ -156,14 +156,6 @@ struct mt76x02_dev *mt76x2u_alloc_device(struct device *pdev)
        return dev;
 }
 
-static void mt76x2u_init_beacon_offsets(struct mt76x02_dev *dev)
-{
-       mt76_wr(dev, MT_BCN_OFFSET(0), 0x18100800);
-       mt76_wr(dev, MT_BCN_OFFSET(1), 0x38302820);
-       mt76_wr(dev, MT_BCN_OFFSET(2), 0x58504840);
-       mt76_wr(dev, MT_BCN_OFFSET(3), 0x78706860);
-}
-
 int mt76x2u_init_hardware(struct mt76x02_dev *dev)
 {
        int i, k, err;
@@ -200,8 +192,6 @@ int mt76x2u_init_hardware(struct mt76x02_dev *dev)
        mt76x02_mac_setaddr(dev, dev->mt76.eeprom.data + MT_EE_MAC_ADDR);
        dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG);
 
-       mt76x2u_init_beacon_offsets(dev);
-
        if (!mt76x02_wait_for_txrx_idle(&dev->mt76))
                return -ETIMEDOUT;