diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index 0b09db0f8e7d..17068f9c026e 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h | |||
@@ -233,6 +233,9 @@ | |||
233 | 233 | ||
234 | #define AR9287_CHECKSUM_LOCATION (AR9287_EEP_START_LOC + 1) | 234 | #define AR9287_CHECKSUM_LOCATION (AR9287_EEP_START_LOC + 1) |
235 | 235 | ||
236 | #define CTL_EDGE_TPOWER(_ctl) ((_ctl) & 0x3f) | ||
237 | #define CTL_EDGE_FLAGS(_ctl) (((_ctl) >> 6) & 0x03) | ||
238 | |||
236 | enum eeprom_param { | 239 | enum eeprom_param { |
237 | EEP_NFTHRESH_5, | 240 | EEP_NFTHRESH_5, |
238 | EEP_NFTHRESH_2, | 241 | EEP_NFTHRESH_2, |
@@ -533,18 +536,10 @@ struct cal_target_power_ht { | |||
533 | u8 tPow2x[8]; | 536 | u8 tPow2x[8]; |
534 | } __packed; | 537 | } __packed; |
535 | 538 | ||
536 | |||
537 | #ifdef __BIG_ENDIAN_BITFIELD | ||
538 | struct cal_ctl_edges { | ||
539 | u8 bChannel; | ||
540 | u8 flag:2, tPower:6; | ||
541 | } __packed; | ||
542 | #else | ||
543 | struct cal_ctl_edges { | 539 | struct cal_ctl_edges { |
544 | u8 bChannel; | 540 | u8 bChannel; |
545 | u8 tPower:6, flag:2; | 541 | u8 ctl; |
546 | } __packed; | 542 | } __packed; |
547 | #endif | ||
548 | 543 | ||
549 | struct cal_data_op_loop_ar9287 { | 544 | struct cal_data_op_loop_ar9287 { |
550 | u8 pwrPdg[2][5]; | 545 | u8 pwrPdg[2][5]; |