提交 2baed5db 编写于 作者: S Stanislaw Gruszka 提交者: Felix Fietkau

mt76x02u: add sta_ps

Add sta_ps callback but dont set WCID drop sicne registers for USB
can not be accessed from tasklet context.
Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 31cdd442
...@@ -222,6 +222,7 @@ static int mt76x0u_probe(struct usb_interface *usb_intf, ...@@ -222,6 +222,7 @@ static int mt76x0u_probe(struct usb_interface *usb_intf,
.tx_complete_skb = mt76x02u_tx_complete_skb, .tx_complete_skb = mt76x02u_tx_complete_skb,
.tx_status_data = mt76x02_tx_status_data, .tx_status_data = mt76x02_tx_status_data,
.rx_skb = mt76x02_queue_rx_skb, .rx_skb = mt76x02_queue_rx_skb,
.sta_ps = mt76x02_sta_ps,
.sta_add = mt76x02_sta_add, .sta_add = mt76x02_sta_add,
.sta_remove = mt76x02_sta_remove, .sta_remove = mt76x02_sta_remove,
}; };
......
...@@ -615,7 +615,8 @@ void mt76x02_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta, ...@@ -615,7 +615,8 @@ void mt76x02_sta_ps(struct mt76_dev *mdev, struct ieee80211_sta *sta,
int idx = msta->wcid.idx; int idx = msta->wcid.idx;
mt76_stop_tx_queues(&dev->mt76, sta, true); mt76_stop_tx_queues(&dev->mt76, sta, true);
mt76x02_mac_wcid_set_drop(dev, idx, ps); if (mt76_is_mmio(dev))
mt76x02_mac_wcid_set_drop(dev, idx, ps);
} }
EXPORT_SYMBOL_GPL(mt76x02_sta_ps); EXPORT_SYMBOL_GPL(mt76x02_sta_ps);
......
...@@ -40,6 +40,7 @@ static int mt76x2u_probe(struct usb_interface *intf, ...@@ -40,6 +40,7 @@ static int mt76x2u_probe(struct usb_interface *intf,
.tx_complete_skb = mt76x02u_tx_complete_skb, .tx_complete_skb = mt76x02u_tx_complete_skb,
.tx_status_data = mt76x02_tx_status_data, .tx_status_data = mt76x02_tx_status_data,
.rx_skb = mt76x02_queue_rx_skb, .rx_skb = mt76x02_queue_rx_skb,
.sta_ps = mt76x02_sta_ps,
.sta_add = mt76x02_sta_add, .sta_add = mt76x02_sta_add,
.sta_remove = mt76x02_sta_remove, .sta_remove = mt76x02_sta_remove,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册