diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-06-24 16:22:36 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-07-02 14:10:33 -0400 |
commit | 716c74b00717ad9caedb4a46059fb64a3da99808 (patch) | |
tree | 2343795f1314e36d51c3101502dde6aadb34d202 /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | 947279eefb77f79015a79b032eb825a065ab035f (diff) |
iwlwifi: add mac80211 flush callback support
Adding flush callback support in the driver. Two type of flush can be
issued by mac80211:
1. drop = true: frame drop is ok, issue REPLY_TXFIFO_FLUSH host command
to uCode to drop all the frames in tx fifo queues; then return the
control back to mac80211
2. drop = false: wait for either all the frames in tx fifo queues been
transmitted, or timeout; then return the control back to mac80211
If the flush request coming from mac80211, mac80211 will make sure there
are no additional frames push down to driver before flush operation is
completed.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index b28cb4ffedc7..084495562200 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -1216,6 +1216,10 @@ struct iwl_rem_sta_cmd { | |||
1216 | #define IWL_TX_FIFO_VO_MSK cpu_to_le32(BIT(3)) | 1216 | #define IWL_TX_FIFO_VO_MSK cpu_to_le32(BIT(3)) |
1217 | #define IWL_AGG_TX_QUEUE_MSK cpu_to_le32(0xffc00) | 1217 | #define IWL_AGG_TX_QUEUE_MSK cpu_to_le32(0xffc00) |
1218 | 1218 | ||
1219 | #define IWL_DROP_SINGLE 0 | ||
1220 | #define IWL_DROP_SELECTED 1 | ||
1221 | #define IWL_DROP_ALL 2 | ||
1222 | |||
1219 | /* | 1223 | /* |
1220 | * REPLY_TXFIFO_FLUSH = 0x1e(command and response) | 1224 | * REPLY_TXFIFO_FLUSH = 0x1e(command and response) |
1221 | * | 1225 | * |