diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 2468c64d6c12..8dce0077b023 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -83,7 +83,7 @@ MODULE_VERSION("0.6.0 (EXPERIMENTAL)"); | |||
83 | 83 | ||
84 | 84 | ||
85 | /* Known PCI ids */ | 85 | /* Known PCI ids */ |
86 | static const struct pci_device_id ath5k_pci_id_table[] = { | 86 | static DEFINE_PCI_DEVICE_TABLE(ath5k_pci_id_table) = { |
87 | { PCI_VDEVICE(ATHEROS, 0x0207) }, /* 5210 early */ | 87 | { PCI_VDEVICE(ATHEROS, 0x0207) }, /* 5210 early */ |
88 | { PCI_VDEVICE(ATHEROS, 0x0007) }, /* 5210 */ | 88 | { PCI_VDEVICE(ATHEROS, 0x0007) }, /* 5210 */ |
89 | { PCI_VDEVICE(ATHEROS, 0x0011) }, /* 5311 - this is on AHB bus !*/ | 89 | { PCI_VDEVICE(ATHEROS, 0x0011) }, /* 5311 - this is on AHB bus !*/ |
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h index 9c2fbf230ce7..7e1a88a5abdb 100644 --- a/drivers/net/wireless/ath/ath5k/base.h +++ b/drivers/net/wireless/ath/ath5k/base.h | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * Defintions for the Atheros Wireless LAN controller driver. | 39 | * Definitions for the Atheros Wireless LAN controller driver. |
40 | */ | 40 | */ |
41 | #ifndef _DEV_ATH_ATHVAR_H | 41 | #ifndef _DEV_ATH_ATHVAR_H |
42 | #define _DEV_ATH_ATHVAR_H | 42 | #define _DEV_ATH_ATHVAR_H |
@@ -189,7 +189,7 @@ struct ath5k_softc { | |||
189 | struct ath5k_txq *cabq; /* content after beacon */ | 189 | struct ath5k_txq *cabq; /* content after beacon */ |
190 | 190 | ||
191 | int power_level; /* Requested tx power in dbm */ | 191 | int power_level; /* Requested tx power in dbm */ |
192 | bool assoc; /* assocate state */ | 192 | bool assoc; /* associate state */ |
193 | bool enable_beacon; /* true if beacons are on */ | 193 | bool enable_beacon; /* true if beacons are on */ |
194 | }; | 194 | }; |
195 | 195 | ||
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index 9a96550006ad..6a3f4da7fb48 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c | |||
@@ -1517,7 +1517,7 @@ ath5k_eeprom_read_target_rate_pwr_info(struct ath5k_hw *ah, unsigned int mode) | |||
1517 | * This info is used to calibrate the baseband power table. Imagine | 1517 | * This info is used to calibrate the baseband power table. Imagine |
1518 | * that for each channel there is a power curve that's hw specific | 1518 | * that for each channel there is a power curve that's hw specific |
1519 | * (depends on amplifier etc) and we try to "correct" this curve using | 1519 | * (depends on amplifier etc) and we try to "correct" this curve using |
1520 | * offests we pass on to phy chip (baseband -> before amplifier) so that | 1520 | * offsets we pass on to phy chip (baseband -> before amplifier) so that |
1521 | * it can use accurate power values when setting tx power (takes amplifier's | 1521 | * it can use accurate power values when setting tx power (takes amplifier's |
1522 | * performance on each channel into account). | 1522 | * performance on each channel into account). |
1523 | * | 1523 | * |
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index bbfdcd5e7cb1..72474c0ccaff 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -117,7 +117,7 @@ static unsigned int ath5k_hw_rfb_op(struct ath5k_hw *ah, | |||
117 | 117 | ||
118 | /* | 118 | /* |
119 | * This code is used to optimize rf gain on different environments | 119 | * This code is used to optimize rf gain on different environments |
120 | * (temprature mostly) based on feedback from a power detector. | 120 | * (temperature mostly) based on feedback from a power detector. |
121 | * | 121 | * |
122 | * It's only used on RF5111 and RF5112, later RF chips seem to have | 122 | * It's only used on RF5111 and RF5112, later RF chips seem to have |
123 | * auto adjustment on hw -notice they have a much smaller BANK 7 and | 123 | * auto adjustment on hw -notice they have a much smaller BANK 7 and |
@@ -2746,7 +2746,7 @@ ath5k_setup_channel_powertable(struct ath5k_hw *ah, | |||
2746 | /* Fill curves in reverse order | 2746 | /* Fill curves in reverse order |
2747 | * from lower power (max gain) | 2747 | * from lower power (max gain) |
2748 | * to higher power. Use curve -> idx | 2748 | * to higher power. Use curve -> idx |
2749 | * backmaping we did on eeprom init */ | 2749 | * backmapping we did on eeprom init */ |
2750 | u8 idx = pdg_curve_to_idx[pdg]; | 2750 | u8 idx = pdg_curve_to_idx[pdg]; |
2751 | 2751 | ||
2752 | /* Grab the needed curves by index */ | 2752 | /* Grab the needed curves by index */ |
@@ -2848,7 +2848,7 @@ ath5k_setup_channel_powertable(struct ath5k_hw *ah, | |||
2848 | /* Now we have a set of curves for this | 2848 | /* Now we have a set of curves for this |
2849 | * channel on tmpL (x range is table_max - table_min | 2849 | * channel on tmpL (x range is table_max - table_min |
2850 | * and y values are tmpL[pdg][]) sorted in the same | 2850 | * and y values are tmpL[pdg][]) sorted in the same |
2851 | * order as EEPROM (because we've used the backmaping). | 2851 | * order as EEPROM (because we've used the backmapping). |
2852 | * So for RF5112 it's from higher power to lower power | 2852 | * So for RF5112 it's from higher power to lower power |
2853 | * and for RF2413 it's from lower power to higher power. | 2853 | * and for RF2413 it's from lower power to higher power. |
2854 | * For RF5111 we only have one curve. */ | 2854 | * For RF5111 we only have one curve. */ |