summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mediatek/mt76/mt7615/pci.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-12-05 14:26:13 +0100
committerFelix Fietkau <nbd@nbd.name>2020-02-14 10:06:00 +0100
commit3e3848280f7d9c3f434c6a8bf9006b41882eb2d1 (patch)
tree78ddd93f8876222a57657fafb2475d06586db10d /drivers/net/wireless/mediatek/mt76/mt7615/pci.c
parentmt76: mt7615: defer mcu initialization via workqueue (diff)
downloadlinux-3e3848280f7d9c3f434c6a8bf9006b41882eb2d1.tar.xz
linux-3e3848280f7d9c3f434c6a8bf9006b41882eb2d1.zip
mt7615: replace sta_state callback with sta_add/sta_remove
The MT7615 firmware needs to know the association id at creation time, which is unavailable during the transition from notexist to none in .sta_state. This can cause a number of issues, probably also breaking powersave support. Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7615/pci.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7615/pci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/pci.c b/drivers/net/wireless/mediatek/mt76/mt7615/pci.c
index dd9ee80dbef7..7e3556c3b6eb 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7615/pci.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7615/pci.c
@@ -81,9 +81,8 @@ static int mt7615_pci_probe(struct pci_dev *pdev,
.rx_skb = mt7615_queue_rx_skb,
.rx_poll_complete = mt7615_rx_poll_complete,
.sta_ps = mt7615_sta_ps,
- .sta_add = mt7615_sta_add,
- .sta_assoc = mt7615_sta_assoc,
- .sta_remove = mt7615_sta_remove,
+ .sta_add = mt7615_mac_sta_add,
+ .sta_remove = mt7615_mac_sta_remove,
.update_survey = mt7615_update_channel,
};
struct mt7615_dev *dev;