mac80211: allow out-of-band EOSP notification
iwlwifi has a separate EOSP notification from the device, and to make use of that properly it needs to be passed to mac80211. To be able to mix with tx_status_irqsafe and rx_irqsafe it also needs to be an "_irqsafe" version in the sense that it goes through the tasklet, the actual flag clearing would be IRQ-safe but doing it directly would cause reordering issues. This is needed in the case of a P2P GO going into an absence period without transmitting any frames that should be driver-released as in this case there's no other way to inform mac80211 that the service period ended. Note that for drivers that don't use the _irqsafe functions another version of this function will be required. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
40b9640883
commit
37fbd90800
@@ -664,6 +664,11 @@ enum sdata_queue_type {
|
||||
enum {
|
||||
IEEE80211_RX_MSG = 1,
|
||||
IEEE80211_TX_STATUS_MSG = 2,
|
||||
IEEE80211_EOSP_MSG = 3,
|
||||
};
|
||||
|
||||
struct skb_eosp_msg_data {
|
||||
u8 sta[ETH_ALEN], iface[ETH_ALEN];
|
||||
};
|
||||
|
||||
enum queue_stop_reason {
|
||||
|
Reference in New Issue
Block a user