|
@@ -384,7 +384,7 @@ int mt76_get_survey(struct ieee80211_hw *hw, int idx,
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(mt76_get_survey);
|
|
|
|
|
|
-static void
|
|
|
+static struct ieee80211_sta *
|
|
|
mt76_rx_convert(struct sk_buff *skb)
|
|
|
{
|
|
|
struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(skb);
|
|
@@ -407,14 +407,17 @@ mt76_rx_convert(struct sk_buff *skb)
|
|
|
BUILD_BUG_ON(sizeof(mstat) > sizeof(skb->cb));
|
|
|
BUILD_BUG_ON(sizeof(status->chain_signal) != sizeof(mstat.chain_signal));
|
|
|
memcpy(status->chain_signal, mstat.chain_signal, sizeof(mstat.chain_signal));
|
|
|
+
|
|
|
+ return wcid_to_sta(mstat.wcid);
|
|
|
}
|
|
|
|
|
|
void mt76_rx_complete(struct mt76_dev *dev, enum mt76_rxq_id q)
|
|
|
{
|
|
|
+ struct ieee80211_sta *sta;
|
|
|
struct sk_buff *skb;
|
|
|
|
|
|
while ((skb = __skb_dequeue(&dev->rx_skb[q])) != NULL) {
|
|
|
- mt76_rx_convert(skb);
|
|
|
- ieee80211_rx_napi(dev->hw, NULL, skb, &dev->napi[q]);
|
|
|
+ sta = mt76_rx_convert(skb);
|
|
|
+ ieee80211_rx_napi(dev->hw, sta, skb, &dev->napi[q]);
|
|
|
}
|
|
|
}
|