diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-29 04:35:08 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:24 -0400 |
commit | a332f8d618a7bdb0096c7b21555120a1822cedec (patch) | |
tree | 4535d0e93f742c324d77314f961090b3cf71a24d /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | 001caff0da8784989ef208af0f39d55ea07dfef5 (diff) |
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.h | 9 |
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 { | |||
1365 | TX_ABORT_REQUIRED_MSK = 0x80000000, /* bits 31:31 */ | 1365 | TX_ABORT_REQUIRED_MSK = 0x80000000, /* bits 31:31 */ |
1366 | }; | 1366 | }; |
1367 | 1367 | ||
1368 | static inline int iwl_is_tx_success(u32 status) | ||
1369 | { | ||
1370 | status &= TX_STATUS_MSK; | ||
1371 | return (status == TX_STATUS_SUCCESS) | ||
1372 | || (status == TX_STATUS_DIRECT_DONE); | ||
1373 | } | ||
1374 | |||
1375 | |||
1376 | |||
1368 | /* ******************************* | 1377 | /* ******************************* |
1369 | * TX aggregation status | 1378 | * TX aggregation status |
1370 | ******************************* */ | 1379 | ******************************* */ |