|
@@ -93,9 +93,11 @@ struct device;
|
|
|
* enum ieee80211_max_queues - maximum number of queues
|
|
|
*
|
|
|
* @IEEE80211_MAX_QUEUES: Maximum number of regular device queues.
|
|
|
+ * @IEEE80211_MAX_QUEUE_MAP: bitmap with maximum queues set
|
|
|
*/
|
|
|
enum ieee80211_max_queues {
|
|
|
IEEE80211_MAX_QUEUES = 16,
|
|
|
+ IEEE80211_MAX_QUEUE_MAP = BIT(IEEE80211_MAX_QUEUES) - 1,
|
|
|
};
|
|
|
|
|
|
#define IEEE80211_INVAL_HW_QUEUE 0xff
|
|
@@ -1067,6 +1069,9 @@ enum ieee80211_vif_flags {
|
|
|
* path needing to access it; even though the netdev carrier will always
|
|
|
* be off when it is %NULL there can still be races and packets could be
|
|
|
* processed after it switches back to %NULL.
|
|
|
+ * @debugfs_dir: debugfs dentry, can be used by drivers to create own per
|
|
|
+ * interface debug files. Note that it will be NULL for the virtual
|
|
|
+ * monitor interface (if that is requested.)
|
|
|
* @drv_priv: data area for driver use, will always be aligned to
|
|
|
* sizeof(void *).
|
|
|
*/
|
|
@@ -1083,6 +1088,10 @@ struct ieee80211_vif {
|
|
|
|
|
|
u32 driver_flags;
|
|
|
|
|
|
+#ifdef CONFIG_MAC80211_DEBUGFS
|
|
|
+ struct dentry *debugfs_dir;
|
|
|
+#endif
|
|
|
+
|
|
|
/* must be last */
|
|
|
u8 drv_priv[0] __aligned(sizeof(void *));
|
|
|
};
|
|
@@ -1946,14 +1955,14 @@ void ieee80211_free_txskb(struct ieee80211_hw *hw, struct sk_buff *skb);
|
|
|
* filter those response frames except in the case of frames that
|
|
|
* are buffered in the driver -- those must remain buffered to avoid
|
|
|
* reordering. Because it is possible that no frames are released
|
|
|
- * in this case, the driver must call ieee80211_sta_eosp_irqsafe()
|
|
|
+ * in this case, the driver must call ieee80211_sta_eosp()
|
|
|
* to indicate to mac80211 that the service period ended anyway.
|
|
|
*
|
|
|
* Finally, if frames from multiple TIDs are released from mac80211
|
|
|
* but the driver might reorder them, it must clear & set the flags
|
|
|
* appropriately (only the last frame may have %IEEE80211_TX_STATUS_EOSP)
|
|
|
* and also take care of the EOSP and MORE_DATA bits in the frame.
|
|
|
- * The driver may also use ieee80211_sta_eosp_irqsafe() in this case.
|
|
|
+ * The driver may also use ieee80211_sta_eosp() in this case.
|
|
|
*/
|
|
|
|
|
|
/**
|
|
@@ -2226,18 +2235,6 @@ enum ieee80211_roc_type {
|
|
|
* MAC address of the device going away.
|
|
|
* Hence, this callback must be implemented. It can sleep.
|
|
|
*
|
|
|
- * @add_interface_debugfs: Drivers can use this callback to add debugfs files
|
|
|
- * when a vif is added to mac80211. This callback and
|
|
|
- * @remove_interface_debugfs should be within a CONFIG_MAC80211_DEBUGFS
|
|
|
- * conditional. @remove_interface_debugfs must be provided for cleanup.
|
|
|
- * This callback can sleep.
|
|
|
- *
|
|
|
- * @remove_interface_debugfs: Remove the debugfs files which were added using
|
|
|
- * @add_interface_debugfs. This callback must remove all debugfs entries
|
|
|
- * that were added because mac80211 only removes interface debugfs when the
|
|
|
- * interface is destroyed, not when it is removed from the driver.
|
|
|
- * This callback can sleep.
|
|
|
- *
|
|
|
* @config: Handler for configuration requests. IEEE 802.11 code calls this
|
|
|
* function to change hardware configuration, e.g., channel.
|
|
|
* This function should never fail but returns a negative error code
|
|
@@ -2259,6 +2256,9 @@ enum ieee80211_roc_type {
|
|
|
* See the section "Frame filtering" for more information.
|
|
|
* This callback must be implemented and can sleep.
|
|
|
*
|
|
|
+ * @set_multicast_list: Configure the device's interface specific RX multicast
|
|
|
+ * filter. This callback is optional. This callback must be atomic.
|
|
|
+ *
|
|
|
* @set_tim: Set TIM bit. mac80211 calls this function when a TIM bit
|
|
|
* must be set or cleared for a given STA. Must be atomic.
|
|
|
*
|
|
@@ -2440,8 +2440,11 @@ enum ieee80211_roc_type {
|
|
|
* @testmode_dump: Implement a cfg80211 test mode dump. The callback can sleep.
|
|
|
*
|
|
|
* @flush: Flush all pending frames from the hardware queue, making sure
|
|
|
- * that the hardware queues are empty. If the parameter @drop is set
|
|
|
- * to %true, pending frames may be dropped. The callback can sleep.
|
|
|
+ * that the hardware queues are empty. The @queues parameter is a bitmap
|
|
|
+ * of queues to flush, which is useful if different virtual interfaces
|
|
|
+ * use different hardware queues; it may also indicate all queues.
|
|
|
+ * If the parameter @drop is set to %true, pending frames may be dropped.
|
|
|
+ * The callback can sleep.
|
|
|
*
|
|
|
* @channel_switch: Drivers that need (or want) to offload the channel
|
|
|
* switch operation for CSAs received from the AP may implement this
|
|
@@ -2506,7 +2509,7 @@ enum ieee80211_roc_type {
|
|
|
* setting the EOSP flag in the QoS header of the frames. Also, when the
|
|
|
* service period ends, the driver must set %IEEE80211_TX_STATUS_EOSP
|
|
|
* on the last frame in the SP. Alternatively, it may call the function
|
|
|
- * ieee80211_sta_eosp_irqsafe() to inform mac80211 of the end of the SP.
|
|
|
+ * ieee80211_sta_eosp() to inform mac80211 of the end of the SP.
|
|
|
* This callback must be atomic.
|
|
|
* @allow_buffered_frames: Prepare device to allow the given number of frames
|
|
|
* to go out to the given station. The frames will be sent by mac80211
|
|
@@ -2517,7 +2520,7 @@ enum ieee80211_roc_type {
|
|
|
* them between the TIDs, it must set the %IEEE80211_TX_STATUS_EOSP flag
|
|
|
* on the last frame and clear it on all others and also handle the EOSP
|
|
|
* bit in the QoS header correctly. Alternatively, it can also call the
|
|
|
- * ieee80211_sta_eosp_irqsafe() function.
|
|
|
+ * ieee80211_sta_eosp() function.
|
|
|
* The @tids parameter is a bitmap and tells the driver which TIDs the
|
|
|
* frames will be on; it will at most have two bits set.
|
|
|
* This callback must be atomic.
|
|
@@ -2605,6 +2608,10 @@ struct ieee80211_ops {
|
|
|
unsigned int changed_flags,
|
|
|
unsigned int *total_flags,
|
|
|
u64 multicast);
|
|
|
+ void (*set_multicast_list)(struct ieee80211_hw *hw,
|
|
|
+ struct ieee80211_vif *vif, bool allmulti,
|
|
|
+ struct netdev_hw_addr_list *mc_list);
|
|
|
+
|
|
|
int (*set_tim)(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
|
|
|
bool set);
|
|
|
int (*set_key)(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
@@ -2651,12 +2658,6 @@ struct ieee80211_ops {
|
|
|
struct ieee80211_vif *vif,
|
|
|
struct ieee80211_sta *sta,
|
|
|
struct dentry *dir);
|
|
|
- void (*add_interface_debugfs)(struct ieee80211_hw *hw,
|
|
|
- struct ieee80211_vif *vif,
|
|
|
- struct dentry *dir);
|
|
|
- void (*remove_interface_debugfs)(struct ieee80211_hw *hw,
|
|
|
- struct ieee80211_vif *vif,
|
|
|
- struct dentry *dir);
|
|
|
#endif
|
|
|
void (*sta_notify)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
|
|
enum sta_notify_cmd, struct ieee80211_sta *sta);
|
|
@@ -2691,7 +2692,7 @@ struct ieee80211_ops {
|
|
|
struct netlink_callback *cb,
|
|
|
void *data, int len);
|
|
|
#endif
|
|
|
- void (*flush)(struct ieee80211_hw *hw, bool drop);
|
|
|
+ void (*flush)(struct ieee80211_hw *hw, u32 queues, bool drop);
|
|
|
void (*channel_switch)(struct ieee80211_hw *hw,
|
|
|
struct ieee80211_channel_switch *ch_switch);
|
|
|
int (*napi_poll)(struct ieee80211_hw *hw, int budget);
|
|
@@ -3857,14 +3858,17 @@ void ieee80211_sta_block_awake(struct ieee80211_hw *hw,
|
|
|
* %IEEE80211_TX_STATUS_EOSP bit and call this function instead.
|
|
|
* This applies for PS-Poll as well as uAPSD.
|
|
|
*
|
|
|
- * Note that there is no non-_irqsafe version right now as
|
|
|
- * it wasn't needed, but just like _tx_status() and _rx()
|
|
|
- * must not be mixed in irqsafe/non-irqsafe versions, this
|
|
|
- * function must not be mixed with those either. Use the
|
|
|
- * all irqsafe, or all non-irqsafe, don't mix! If you need
|
|
|
- * the non-irqsafe version of this, you need to add it.
|
|
|
+ * Note that just like with _tx_status() and _rx() drivers must
|
|
|
+ * not mix calls to irqsafe/non-irqsafe versions, this function
|
|
|
+ * must not be mixed with those either. Use the all irqsafe, or
|
|
|
+ * all non-irqsafe, don't mix!
|
|
|
+ *
|
|
|
+ * NB: the _irqsafe version of this function doesn't exist, no
|
|
|
+ * driver needs it right now. Don't call this function if
|
|
|
+ * you'd need the _irqsafe version, look at the git history
|
|
|
+ * and restore the _irqsafe version!
|
|
|
*/
|
|
|
-void ieee80211_sta_eosp_irqsafe(struct ieee80211_sta *pubsta);
|
|
|
+void ieee80211_sta_eosp(struct ieee80211_sta *pubsta);
|
|
|
|
|
|
/**
|
|
|
* ieee80211_iter_keys - iterate keys programmed into the device
|