cfg80211: use wdev in mgmt-tx/ROC APIs
The management frame and remain-on-channel APIs will be needed in the P2P device abstraction, so move them over to the new wdev-based APIs. Userspace can still use both the interface index and wdev identifier for them so it's backward compatible, but for the P2P Device wdev it will be able to use the wdev identifier only. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -519,14 +519,19 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
|
||||
u64 cookie = (unsigned long)skb;
|
||||
acked = info->flags & IEEE80211_TX_STAT_ACK;
|
||||
|
||||
/*
|
||||
* TODO: When we have non-netdev frame TX,
|
||||
* we cannot use skb->dev->ieee80211_ptr
|
||||
*/
|
||||
|
||||
if (ieee80211_is_nullfunc(hdr->frame_control) ||
|
||||
ieee80211_is_qos_nullfunc(hdr->frame_control))
|
||||
cfg80211_probe_status(skb->dev, hdr->addr1,
|
||||
cookie, acked, GFP_ATOMIC);
|
||||
else
|
||||
cfg80211_mgmt_tx_status(
|
||||
skb->dev, cookie, skb->data, skb->len,
|
||||
acked, GFP_ATOMIC);
|
||||
skb->dev->ieee80211_ptr, cookie, skb->data,
|
||||
skb->len, acked, GFP_ATOMIC);
|
||||
}
|
||||
|
||||
if (unlikely(info->ack_frame_id)) {
|
||||
|
Reference in New Issue
Block a user