projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e226fb5
)
iwlwifi: mvm: use RS macro instead of duplicating the code
author
Sara Sharon
<sara.sharon@intel.com>
Sun, 15 Oct 2017 10:52:54 +0000
(13:52 +0300)
committer
Luca Coelho
<luciano.coelho@intel.com>
Fri, 3 Nov 2017 09:56:07 +0000
(11:56 +0200)
There is a macro for converting TX response rate to a
rate scale value, use it.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c
index 00a0efab20e358be32012f86171605480889239f..d88c3685a6ddc61e13cfa14c58d66919abed4f55 100644
(file)
--- a/
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
+++ b/
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
@@
-1594,8
+1594,7
@@
static void iwl_mvm_rx_tx_cmd_agg(struct iwl_mvm *mvm,
mvmsta->tid_data[tid].tx_time =
le16_to_cpu(tx_resp->wireless_media_time);
mvmsta->tid_data[tid].lq_color =
- (tx_resp->tlc_info & TX_RES_RATE_TABLE_COLOR_MSK) >>
- TX_RES_RATE_TABLE_COLOR_POS;
+ TX_RES_RATE_TABLE_COL_GET(tx_resp->tlc_info);
}
rcu_read_unlock();