iwlwifi: add RATE_MCS_RATE_MSK
Throughout the code we use rate_n_flags & 0xff to extract the lower byte of the rate_n_flags u32 that contains the information about the rate. Add a #define and remove the use of the magic number. Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
This commit is contained in:
committed by
Wey-Yi Guy
parent
d0eb633431
commit
2520546aec
@ -324,6 +324,8 @@ struct iwl3945_power_per_rate {
|
||||
#define RATE_MCS_SPATIAL_MSK 0x18
|
||||
#define RATE_MCS_HT_DUP_POS 5
|
||||
#define RATE_MCS_HT_DUP_MSK 0x20
|
||||
/* Both legacy and HT use bits 7:0 as the CCK/OFDM rate or HT MCS */
|
||||
#define RATE_MCS_RATE_MSK 0xff
|
||||
|
||||
/* Bit 8: (1) HT format, (0) legacy format in bits 7:0 */
|
||||
#define RATE_MCS_FLAGS_POS 8
|
||||
|
Reference in New Issue
Block a user