summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-commands.h
diff options
context:
space:
mode:
authorTomas Winkler2008-05-29 10:35:08 +0200
committerJohn W. Linville2008-06-03 21:00:24 +0200
commita332f8d618a7bdb0096c7b21555120a1822cedec (patch)
tree4535d0e93f742c324d77314f961090b3cf71a24d /drivers/net/wireless/iwlwifi/iwl-commands.h
parentiwlwifi: add iwl5000_tx_response structure (diff)
downloadkernel-qcow2-linux-a332f8d618a7bdb0096c7b21555120a1822cedec.tar.gz
kernel-qcow2-linux-a332f8d618a7bdb0096c7b21555120a1822cedec.tar.xz
kernel-qcow2-linux-a332f8d618a7bdb0096c7b21555120a1822cedec.zip
iwlwifi: move tx response common handlers to iwlcore
This pach moves common tx response handlers to the header files and iwl-tx.c. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Ron Rindjunsky <ron.rindjunsky@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index bad0e94e4e5d..2652e3746ef5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -1365,6 +1365,15 @@ enum {
TX_ABORT_REQUIRED_MSK = 0x80000000, /* bits 31:31 */
};
+static inline int iwl_is_tx_success(u32 status)
+{
+ status &= TX_STATUS_MSK;
+ return (status == TX_STATUS_SUCCESS)
+ || (status == TX_STATUS_DIRECT_DONE);
+}
+
+
+
/* *******************************
* TX aggregation status
******************************* */