diff options
author | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
---|---|---|
committer | Jeremy Erickson <jerickso@cs.unc.edu> | 2014-04-18 17:06:00 -0400 |
commit | a215aa7b9ab3759c047201199fba64d3042d7f13 (patch) | |
tree | bca37493d9b2233450e6d3ffced1261d0e4f71fe /drivers/net/wireless/ath/ath9k/eeprom.h | |
parent | d31199a77ef606f1d06894385f1852181ba6136b (diff) |
Update 2.6.36 to 2.6.36.4wip-dissipation2-jerickso
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]; |