aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPavel Roskin <proski@gnu.org>2011-07-09 00:17:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-11 15:02:16 -0400
commit6a2a0e738225fc9ec063f84b79f0adf5c0ed176c (patch)
tree7892d9205e350b35325e21304b855737d61fbd26 /drivers
parent86fbe17d7f0856f4111e1ceaf3f5c399315fb4e7 (diff)
ath5k: fix typos, bad comment formatting and GHz in place of MHz
Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath5k/ani.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h26
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c14
-rw-r--r--drivers/net/wireless/ath/ath5k/base.h4
-rw-r--r--drivers/net/wireless/ath/ath5k/caps.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/desc.h4
-rw-r--r--drivers/net/wireless/ath/ath5k/dma.c6
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.c8
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.h10
-rw-r--r--drivers/net/wireless/ath/ath5k/initvals.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/mac80211-ops.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/pci.c12
-rw-r--r--drivers/net/wireless/ath/ath5k/pcu.c12
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c18
-rw-r--r--drivers/net/wireless/ath/ath5k/reg.h42
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c10
-rw-r--r--drivers/net/wireless/ath/ath5k/rfgain.h6
18 files changed, 94 insertions, 94 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c
index b88d10c3b9e0..2f0b967a6d8e 100644
--- a/drivers/net/wireless/ath/ath5k/ani.c
+++ b/drivers/net/wireless/ath/ath5k/ani.c
@@ -74,7 +74,7 @@ ath5k_ani_set_noise_immunity_level(struct ath5k_hw *ah, int level)
74 static const s8 fr[] = { -78, -80 }; 74 static const s8 fr[] = { -78, -80 };
75#endif 75#endif
76 if (level < 0 || level >= ARRAY_SIZE(sz)) { 76 if (level < 0 || level >= ARRAY_SIZE(sz)) {
77 ATH5K_ERR(ah->ah_sc, "noise immuniy level %d out of range", 77 ATH5K_ERR(ah->ah_sc, "noise immunity level %d out of range",
78 level); 78 level);
79 return; 79 return;
80 } 80 }
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index b1de4a09c8c8..50d758036126 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -18,9 +18,9 @@
18#ifndef _ATH5K_H 18#ifndef _ATH5K_H
19#define _ATH5K_H 19#define _ATH5K_H
20 20
21/* TODO: Clean up channel debuging -doesn't work anyway- and start 21/* TODO: Clean up channel debugging (doesn't work anyway) and start
22 * working on reg. control code using all available eeprom information 22 * working on reg. control code using all available eeprom information
23 * -rev. engineering needed- */ 23 * (rev. engineering needed) */
24#define CHAN_DEBUG 0 24#define CHAN_DEBUG 0
25 25
26#include <linux/io.h> 26#include <linux/io.h>
@@ -156,7 +156,7 @@
156} while (0) 156} while (0)
157 157
158/* 158/*
159 * Some tuneable values (these should be changeable by the user) 159 * Some tunable values (these should be changeable by the user)
160 * TODO: Make use of them and add more options OR use debug/configfs 160 * TODO: Make use of them and add more options OR use debug/configfs
161 */ 161 */
162#define AR5K_TUNE_DMA_BEACON_RESP 2 162#define AR5K_TUNE_DMA_BEACON_RESP 2
@@ -171,8 +171,8 @@
171#define AR5K_TUNE_RSSI_THRES 129 171#define AR5K_TUNE_RSSI_THRES 129
172/* This must be set when setting the RSSI threshold otherwise it can 172/* This must be set when setting the RSSI threshold otherwise it can
173 * prevent a reset. If AR5K_RSSI_THR is read after writing to it 173 * prevent a reset. If AR5K_RSSI_THR is read after writing to it
174 * the BMISS_THRES will be seen as 0, seems harware doesn't keep 174 * the BMISS_THRES will be seen as 0, seems hardware doesn't keep
175 * track of it. Max value depends on harware. For AR5210 this is just 7. 175 * track of it. Max value depends on hardware. For AR5210 this is just 7.
176 * For AR5211+ this seems to be up to 255. */ 176 * For AR5211+ this seems to be up to 255. */
177#define AR5K_TUNE_BMISS_THRES 7 177#define AR5K_TUNE_BMISS_THRES 7
178#define AR5K_TUNE_REGISTER_DWELL_TIME 20000 178#define AR5K_TUNE_REGISTER_DWELL_TIME 20000
@@ -380,7 +380,7 @@ struct ath5k_srev_name {
380 * Modulation for Atheros' Turbo G and Turbo A, its supposed to provide a 380 * Modulation for Atheros' Turbo G and Turbo A, its supposed to provide a
381 * throughput transmission speed up to 40Mbit/s-60Mbit/s at a 108Mbit/s 381 * throughput transmission speed up to 40Mbit/s-60Mbit/s at a 108Mbit/s
382 * signaling rate achieved through the bonding of two 54Mbit/s 802.11g 382 * signaling rate achieved through the bonding of two 54Mbit/s 802.11g
383 * channels. To use this feature your Access Point must also suport it. 383 * channels. To use this feature your Access Point must also support it.
384 * There is also a distinction between "static" and "dynamic" turbo modes: 384 * There is also a distinction between "static" and "dynamic" turbo modes:
385 * 385 *
386 * - Static: is the dumb version: devices set to this mode stick to it until 386 * - Static: is the dumb version: devices set to this mode stick to it until
@@ -496,7 +496,7 @@ enum ath5k_tx_queue {
496 */ 496 */
497enum ath5k_tx_queue_subtype { 497enum ath5k_tx_queue_subtype {
498 AR5K_WME_AC_BK = 0, /*Background traffic*/ 498 AR5K_WME_AC_BK = 0, /*Background traffic*/
499 AR5K_WME_AC_BE, /*Best-effort (normal) traffic)*/ 499 AR5K_WME_AC_BE, /*Best-effort (normal) traffic*/
500 AR5K_WME_AC_VI, /*Video traffic*/ 500 AR5K_WME_AC_VI, /*Video traffic*/
501 AR5K_WME_AC_VO, /*Voice traffic*/ 501 AR5K_WME_AC_VO, /*Voice traffic*/
502}; 502};
@@ -690,7 +690,7 @@ struct ath5k_gain {
690#define CHANNEL_MODES CHANNEL_ALL 690#define CHANNEL_MODES CHANNEL_ALL
691 691
692/* 692/*
693 * Used internaly for reset_tx_queue). 693 * Used internally for ath5k_hw_reset_tx_queue().
694 * Also see struct struct ieee80211_channel. 694 * Also see struct struct ieee80211_channel.
695 */ 695 */
696#define IS_CHAN_XR(_c) ((_c->hw_value & CHANNEL_XR) != 0) 696#define IS_CHAN_XR(_c) ((_c->hw_value & CHANNEL_XR) != 0)
@@ -712,7 +712,7 @@ struct ath5k_athchan_2ghz {
712\******************/ 712\******************/
713 713
714/** 714/**
715 * Seems the ar5xxx harware supports up to 32 rates, indexed by 1-32. 715 * Seems the ar5xxx hardware supports up to 32 rates, indexed by 1-32.
716 * 716 *
717 * The rate code is used to get the RX rate or set the TX rate on the 717 * The rate code is used to get the RX rate or set the TX rate on the
718 * hardware descriptors. It is also used for internal modulation control 718 * hardware descriptors. It is also used for internal modulation control
@@ -802,7 +802,7 @@ extern int ath5k_modparam_nohwcrypt;
802 * http://www.freepatentsonline.com/20030225739.html 802 * http://www.freepatentsonline.com/20030225739.html
803 * @AR5K_INT_RXORN: Indicates we got RX overrun (eg. no more descriptors). 803 * @AR5K_INT_RXORN: Indicates we got RX overrun (eg. no more descriptors).
804 * Note that Rx overrun is not always fatal, on some chips we can continue 804 * Note that Rx overrun is not always fatal, on some chips we can continue
805 * operation without reseting the card, that's why int_fatal is not 805 * operation without resetting the card, that's why int_fatal is not
806 * common for all chips. 806 * common for all chips.
807 * @AR5K_INT_TX: mask to identify received frame interrupts, of type 807 * @AR5K_INT_TX: mask to identify received frame interrupts, of type
808 * AR5K_ISR_TXOK or AR5K_ISR_TXERR 808 * AR5K_ISR_TXOK or AR5K_ISR_TXERR
@@ -832,13 +832,13 @@ extern int ath5k_modparam_nohwcrypt;
832 * AR5K_SIMR2_MCABT, AR5K_SIMR2_SSERR and AR5K_SIMR2_DPERR. 832 * AR5K_SIMR2_MCABT, AR5K_SIMR2_SSERR and AR5K_SIMR2_DPERR.
833 * @AR5K_INT_GLOBAL: Used to clear and set the IER 833 * @AR5K_INT_GLOBAL: Used to clear and set the IER
834 * @AR5K_INT_NOCARD: signals the card has been removed 834 * @AR5K_INT_NOCARD: signals the card has been removed
835 * @AR5K_INT_COMMON: common interrupts shared amogst MACs with the same 835 * @AR5K_INT_COMMON: common interrupts shared among MACs with the same
836 * bit value 836 * bit value
837 * 837 *
838 * These are mapped to take advantage of some common bits 838 * These are mapped to take advantage of some common bits
839 * between the MACs, to be able to set intr properties 839 * between the MACs, to be able to set intr properties
840 * easier. Some of them are not used yet inside hw.c. Most map 840 * easier. Some of them are not used yet inside hw.c. Most map
841 * to the respective hw interrupt value as they are common amogst different 841 * to the respective hw interrupt value as they are common among different
842 * MACs. 842 * MACs.
843 */ 843 */
844enum ath5k_int { 844enum ath5k_int {
@@ -1358,7 +1358,7 @@ int ath5k_hw_phy_init(struct ath5k_hw *ah, struct ieee80211_channel *channel,
1358 u8 mode, bool fast); 1358 u8 mode, bool fast);
1359 1359
1360/* 1360/*
1361 * Functions used internaly 1361 * Functions used internally
1362 */ 1362 */
1363 1363
1364static inline struct ath_common *ath5k_hw_common(struct ath5k_hw *ah) 1364static inline struct ath_common *ath5k_hw_common(struct ath5k_hw *ah)
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index d6fbb57a5d98..14dc52e4b50a 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -244,7 +244,7 @@ int ath5k_hw_init(struct ath5k_softc *sc)
244 } 244 }
245 245
246 246
247 /* Return on unsuported chips (unsupported eeprom etc) */ 247 /* Return on unsupported chips (unsupported eeprom etc) */
248 if ((srev >= AR5K_SREV_AR5416) && (srev < AR5K_SREV_AR2425)) { 248 if ((srev >= AR5K_SREV_AR5416) && (srev < AR5K_SREV_AR2425)) {
249 ATH5K_ERR(sc, "Device not yet supported.\n"); 249 ATH5K_ERR(sc, "Device not yet supported.\n");
250 ret = -ENODEV; 250 ret = -ENODEV;
@@ -285,7 +285,7 @@ int ath5k_hw_init(struct ath5k_softc *sc)
285 ath5k_hw_reg_write(ah, 0x28000039, AR5K_PCIE_SERDES); 285 ath5k_hw_reg_write(ah, 0x28000039, AR5K_PCIE_SERDES);
286 ath5k_hw_reg_write(ah, 0x53160824, AR5K_PCIE_SERDES); 286 ath5k_hw_reg_write(ah, 0x53160824, AR5K_PCIE_SERDES);
287 287
288 /* If serdes programing is enabled, increase PCI-E 288 /* If serdes programming is enabled, increase PCI-E
289 * tx power for systems with long trace from host 289 * tx power for systems with long trace from host
290 * to minicard connector. */ 290 * to minicard connector. */
291 if (ee->ee_serdes) 291 if (ee->ee_serdes)
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 28113e023c62..3e5e9b73f1a3 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -531,7 +531,7 @@ ath5k_update_bssid_mask_and_opmode(struct ath5k_softc *sc,
531 if (iter_data.n_stas > 1) { 531 if (iter_data.n_stas > 1) {
532 /* If you have multiple STA interfaces connected to 532 /* If you have multiple STA interfaces connected to
533 * different APs, ARPs are not received (most of the time?) 533 * different APs, ARPs are not received (most of the time?)
534 * Enabling PROMISC appears to fix that probem. 534 * Enabling PROMISC appears to fix that problem.
535 */ 535 */
536 sc->filter_flags |= AR5K_RX_FILTER_PROM; 536 sc->filter_flags |= AR5K_RX_FILTER_PROM;
537 } 537 }
@@ -1349,7 +1349,7 @@ ath5k_receive_frame(struct ath5k_softc *sc, struct sk_buff *skb,
1349 * timestamp (beginning of phy frame, data frame, end of rx?). 1349 * timestamp (beginning of phy frame, data frame, end of rx?).
1350 * The only thing we know is that it is hardware specific... 1350 * The only thing we know is that it is hardware specific...
1351 * On AR5213 it seems the rx timestamp is at the end of the 1351 * On AR5213 it seems the rx timestamp is at the end of the
1352 * frame, but i'm not sure. 1352 * frame, but I'm not sure.
1353 * 1353 *
1354 * NOTE: mac80211 defines mactime at the beginning of the first 1354 * NOTE: mac80211 defines mactime at the beginning of the first
1355 * data symbol. Since we don't have any time references it's 1355 * data symbol. Since we don't have any time references it's
@@ -1764,7 +1764,7 @@ ath5k_beacon_setup(struct ath5k_softc *sc, struct ath5k_buf *bf)
1764 * 4 beacons to make sure everybody hears our AP. 1764 * 4 beacons to make sure everybody hears our AP.
1765 * When a client tries to associate, hw will keep 1765 * When a client tries to associate, hw will keep
1766 * track of the tx antenna to be used for this client 1766 * track of the tx antenna to be used for this client
1767 * automaticaly, based on ACKed packets. 1767 * automatically, based on ACKed packets.
1768 * 1768 *
1769 * Note: AP still listens and transmits RTS on the 1769 * Note: AP still listens and transmits RTS on the
1770 * default antenna which is supposed to be an omni. 1770 * default antenna which is supposed to be an omni.
@@ -2099,11 +2099,11 @@ static void ath5k_tasklet_beacon(unsigned long data)
2099 * 2099 *
2100 * In IBSS mode we use this interrupt just to 2100 * In IBSS mode we use this interrupt just to
2101 * keep track of the next TBTT (target beacon 2101 * keep track of the next TBTT (target beacon
2102 * transmission time) in order to detect wether 2102 * transmission time) in order to detect whether
2103 * automatic TSF updates happened. 2103 * automatic TSF updates happened.
2104 */ 2104 */
2105 if (sc->opmode == NL80211_IFTYPE_ADHOC) { 2105 if (sc->opmode == NL80211_IFTYPE_ADHOC) {
2106 /* XXX: only if VEOL suppported */ 2106 /* XXX: only if VEOL supported */
2107 u64 tsf = ath5k_hw_get_tsf64(sc->ah); 2107 u64 tsf = ath5k_hw_get_tsf64(sc->ah);
2108 sc->nexttbtt += sc->bintval; 2108 sc->nexttbtt += sc->bintval;
2109 ATH5K_DBG(sc, ATH5K_DEBUG_BEACON, 2109 ATH5K_DBG(sc, ATH5K_DEBUG_BEACON,
@@ -2466,7 +2466,7 @@ ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops)
2466 sc->ah->ah_radio_5ghz_revision), 2466 sc->ah->ah_radio_5ghz_revision),
2467 sc->ah->ah_radio_5ghz_revision); 2467 sc->ah->ah_radio_5ghz_revision);
2468 /* No 2GHz support (5110 and some 2468 /* No 2GHz support (5110 and some
2469 * 5Ghz only cards) -> report 5Ghz radio */ 2469 * 5GHz only cards) -> report 5GHz radio */
2470 } else if (!test_bit(AR5K_MODE_11B, 2470 } else if (!test_bit(AR5K_MODE_11B,
2471 sc->ah->ah_capabilities.cap_mode)) { 2471 sc->ah->ah_capabilities.cap_mode)) {
2472 ATH5K_INFO(sc, "RF%s 5GHz radio found (0x%x)\n", 2472 ATH5K_INFO(sc, "RF%s 5GHz radio found (0x%x)\n",
@@ -2796,7 +2796,7 @@ ath5k_init(struct ieee80211_hw *hw)
2796 2796
2797 /* 2797 /*
2798 * Collect the channel list. The 802.11 layer 2798 * Collect the channel list. The 802.11 layer
2799 * is resposible for filtering this list based 2799 * is responsible for filtering this list based
2800 * on settings like the phy mode and regulatory 2800 * on settings like the phy mode and regulatory
2801 * domain restrictions. 2801 * domain restrictions.
2802 */ 2802 */
diff --git a/drivers/net/wireless/ath/ath5k/base.h b/drivers/net/wireless/ath/ath5k/base.h
index e71494ee3290..0a98777b9373 100644
--- a/drivers/net/wireless/ath/ath5k/base.h
+++ b/drivers/net/wireless/ath/ath5k/base.h
@@ -121,7 +121,7 @@ struct ath5k_statistics {
121 /* frame errors */ 121 /* frame errors */
122 unsigned int rx_all_count; /* all RX frames, including errors */ 122 unsigned int rx_all_count; /* all RX frames, including errors */
123 unsigned int tx_all_count; /* all TX frames, including errors */ 123 unsigned int tx_all_count; /* all TX frames, including errors */
124 unsigned int rx_bytes_count; /* all RX bytes, including errored pks 124 unsigned int rx_bytes_count; /* all RX bytes, including errored pkts
125 * and the MAC headers for each packet 125 * and the MAC headers for each packet
126 */ 126 */
127 unsigned int tx_bytes_count; /* all TX bytes, including errored pkts 127 unsigned int tx_bytes_count; /* all TX bytes, including errored pkts
@@ -250,7 +250,7 @@ struct ath5k_softc {
250 unsigned int nexttbtt; /* next beacon time in TU */ 250 unsigned int nexttbtt; /* next beacon time in TU */
251 struct ath5k_txq *cabq; /* content after beacon */ 251 struct ath5k_txq *cabq; /* content after beacon */
252 252
253 int power_level; /* Requested tx power in dbm */ 253 int power_level; /* Requested tx power in dBm */
254 bool assoc; /* associate state */ 254 bool assoc; /* associate state */
255 bool enable_beacon; /* true if beacons are on */ 255 bool enable_beacon; /* true if beacons are on */
256 256
diff --git a/drivers/net/wireless/ath/ath5k/caps.c b/drivers/net/wireless/ath/ath5k/caps.c
index 7dd88e1c3ff8..c752982aec05 100644
--- a/drivers/net/wireless/ath/ath5k/caps.c
+++ b/drivers/net/wireless/ath/ath5k/caps.c
@@ -52,8 +52,8 @@ int ath5k_hw_set_capabilities(struct ath5k_hw *ah)
52 __set_bit(AR5K_MODE_11A, caps->cap_mode); 52 __set_bit(AR5K_MODE_11A, caps->cap_mode);
53 } else { 53 } else {
54 /* 54 /*
55 * XXX The tranceiver supports frequencies from 4920 to 6100GHz 55 * XXX The transceiver supports frequencies from 4920 to 6100MHz
56 * XXX and from 2312 to 2732GHz. There are problems with the 56 * XXX and from 2312 to 2732MHz. There are problems with the
57 * XXX current ieee80211 implementation because the IEEE 57 * XXX current ieee80211 implementation because the IEEE
58 * XXX channel mapping does not support negative channel 58 * XXX channel mapping does not support negative channel
59 * XXX numbers (2312MHz is channel -19). Of course, this 59 * XXX numbers (2312MHz is channel -19). Of course, this
diff --git a/drivers/net/wireless/ath/ath5k/desc.h b/drivers/net/wireless/ath/ath5k/desc.h
index 2509d0bf037d..cfd529b548f3 100644
--- a/drivers/net/wireless/ath/ath5k/desc.h
+++ b/drivers/net/wireless/ath/ath5k/desc.h
@@ -58,11 +58,11 @@ struct ath5k_hw_rx_status {
58#define AR5K_5210_RX_DESC_STATUS1_FRAME_RECEIVE_OK 0x00000002 /* reception success */ 58#define AR5K_5210_RX_DESC_STATUS1_FRAME_RECEIVE_OK 0x00000002 /* reception success */
59#define AR5K_5210_RX_DESC_STATUS1_CRC_ERROR 0x00000004 /* CRC error */ 59#define AR5K_5210_RX_DESC_STATUS1_CRC_ERROR 0x00000004 /* CRC error */
60#define AR5K_5210_RX_DESC_STATUS1_FIFO_OVERRUN_5210 0x00000008 /* [5210] FIFO overrun */ 60#define AR5K_5210_RX_DESC_STATUS1_FIFO_OVERRUN_5210 0x00000008 /* [5210] FIFO overrun */
61#define AR5K_5210_RX_DESC_STATUS1_DECRYPT_CRC_ERROR 0x00000010 /* decyption CRC failure */ 61#define AR5K_5210_RX_DESC_STATUS1_DECRYPT_CRC_ERROR 0x00000010 /* decryption CRC failure */
62#define AR5K_5210_RX_DESC_STATUS1_PHY_ERROR 0x000000e0 /* PHY error */ 62#define AR5K_5210_RX_DESC_STATUS1_PHY_ERROR 0x000000e0 /* PHY error */
63#define AR5K_5210_RX_DESC_STATUS1_PHY_ERROR_S 5 63#define AR5K_5210_RX_DESC_STATUS1_PHY_ERROR_S 5
64#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX_VALID 0x00000100 /* key index valid */ 64#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX_VALID 0x00000100 /* key index valid */
65#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX 0x00007e00 /* decyption key index */ 65#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX 0x00007e00 /* decryption key index */
66#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX_S 9 66#define AR5K_5210_RX_DESC_STATUS1_KEY_INDEX_S 9
67#define AR5K_5210_RX_DESC_STATUS1_RECEIVE_TIMESTAMP 0x0fff8000 /* 13 bit of TSF */ 67#define AR5K_5210_RX_DESC_STATUS1_RECEIVE_TIMESTAMP 0x0fff8000 /* 13 bit of TSF */
68#define AR5K_5210_RX_DESC_STATUS1_RECEIVE_TIMESTAMP_S 15 68#define AR5K_5210_RX_DESC_STATUS1_RECEIVE_TIMESTAMP_S 15
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c
index 02e2e3f71b08..b788ecfbdaf6 100644
--- a/drivers/net/wireless/ath/ath5k/dma.c
+++ b/drivers/net/wireless/ath/ath5k/dma.c
@@ -25,7 +25,7 @@
25 * 25 *
26 * Here we setup descriptor pointers (rxdp/txdp) start/stop dma engine and 26 * Here we setup descriptor pointers (rxdp/txdp) start/stop dma engine and
27 * handle queue setup for 5210 chipset (rest are handled on qcu.c). 27 * handle queue setup for 5210 chipset (rest are handled on qcu.c).
28 * Also we setup interrupt mask register (IMR) and read the various iterrupt 28 * Also we setup interrupt mask register (IMR) and read the various interrupt
29 * status registers (ISR). 29 * status registers (ISR).
30 * 30 *
31 * TODO: Handle SISR on 5211+ and introduce a function to return the queue 31 * TODO: Handle SISR on 5211+ and introduce a function to return the queue
@@ -726,7 +726,7 @@ enum ath5k_int ath5k_hw_set_imr(struct ath5k_hw *ah, enum ath5k_int new_mask)
726 int_mask |= AR5K_IMR_RXDOPPLER; 726 int_mask |= AR5K_IMR_RXDOPPLER;
727 727
728 /* Note: Per queue interrupt masks 728 /* Note: Per queue interrupt masks
729 * are set via reset_tx_queue (qcu.c) */ 729 * are set via ath5k_hw_reset_tx_queue() (qcu.c) */
730 ath5k_hw_reg_write(ah, int_mask, AR5K_PIMR); 730 ath5k_hw_reg_write(ah, int_mask, AR5K_PIMR);
731 ath5k_hw_reg_write(ah, simr2, AR5K_SIMR2); 731 ath5k_hw_reg_write(ah, simr2, AR5K_SIMR2);
732 732
@@ -783,7 +783,7 @@ void ath5k_hw_dma_init(struct ath5k_hw *ah)
783 * for all PCI-E cards to be safe). 783 * for all PCI-E cards to be safe).
784 * 784 *
785 * XXX: need to check 5210 for this 785 * XXX: need to check 5210 for this
786 * TODO: Check out tx triger level, it's always 64 on dumps but I 786 * TODO: Check out tx trigger level, it's always 64 on dumps but I
787 * guess we can tweak it and see how it goes ;-) 787 * guess we can tweak it and see how it goes ;-)
788 */ 788 */
789 if (ah->ah_version != AR5K_AR5210) { 789 if (ah->ah_version != AR5K_AR5210) {
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c
index f97a540e2199..d9e605e37007 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath/ath5k/eeprom.c
@@ -634,7 +634,7 @@ ath5k_eeprom_init_11bg_2413(struct ath5k_hw *ah, unsigned int mode, int offset)
634/* Used to match PCDAC steps with power values on RF5111 chips 634/* Used to match PCDAC steps with power values on RF5111 chips
635 * (eeprom versions < 4). For RF5111 we have 11 pre-defined PCDAC 635 * (eeprom versions < 4). For RF5111 we have 11 pre-defined PCDAC
636 * steps that match with the power values we read from eeprom. On 636 * steps that match with the power values we read from eeprom. On
637 * older eeprom versions (< 3.2) these steps are equaly spaced at 637 * older eeprom versions (< 3.2) these steps are equally spaced at
638 * 10% of the pcdac curve -until the curve reaches its maximum- 638 * 10% of the pcdac curve -until the curve reaches its maximum-
639 * (11 steps from 0 to 100%) but on newer eeprom versions (>= 3.2) 639 * (11 steps from 0 to 100%) but on newer eeprom versions (>= 3.2)
640 * these 11 steps are spaced in a different way. This function returns 640 * these 11 steps are spaced in a different way. This function returns
@@ -764,7 +764,7 @@ ath5k_eeprom_convert_pcal_info_5111(struct ath5k_hw *ah, int mode,
764 764
765 /* Fill raw dataset 765 /* Fill raw dataset
766 * (convert power to 0.25dB units 766 * (convert power to 0.25dB units
767 * for RF5112 combatibility) */ 767 * for RF5112 compatibility) */
768 for (point = 0; point < pd->pd_points; point++) { 768 for (point = 0; point < pd->pd_points; point++) {
769 769
770 /* Absolute values */ 770 /* Absolute values */
@@ -884,7 +884,7 @@ ath5k_eeprom_read_pcal_info_5111(struct ath5k_hw *ah, int mode)
884 * Read power calibration for RF5112 chips 884 * Read power calibration for RF5112 chips
885 * 885 *
886 * For RF5112 we have 4 XPD -eXternal Power Detector- curves 886 * For RF5112 we have 4 XPD -eXternal Power Detector- curves
887 * for each calibrated channel on 0, -6, -12 and -18dbm but we only 887 * for each calibrated channel on 0, -6, -12 and -18dBm but we only
888 * use the higher (3) and the lower (0) curves. Each curve has 0.5dB 888 * use the higher (3) and the lower (0) curves. Each curve has 0.5dB
889 * power steps on x axis and PCDAC steps on y axis and looks like a 889 * power steps on x axis and PCDAC steps on y axis and looks like a
890 * linear function. To recreate the curve and pass the power values 890 * linear function. To recreate the curve and pass the power values
@@ -1241,7 +1241,7 @@ ath5k_eeprom_convert_pcal_info_2413(struct ath5k_hw *ah, int mode,
1241 1241
1242 /* Fill raw dataset 1242 /* Fill raw dataset
1243 * convert all pwr levels to 1243 * convert all pwr levels to
1244 * quarter dB for RF5112 combatibility */ 1244 * quarter dB for RF5112 compatibility */
1245 pd->pd_step[0] = pcinfo->pddac_i[pdg]; 1245 pd->pd_step[0] = pcinfo->pddac_i[pdg];
1246 pd->pd_pwr[0] = 4 * pcinfo->pwr_i[pdg]; 1246 pd->pd_pwr[0] = 4 * pcinfo->pwr_i[pdg];
1247 1247
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.h b/drivers/net/wireless/ath/ath5k/eeprom.h
index 6d440e0ba149..dc2bcfeadeb4 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.h
+++ b/drivers/net/wireless/ath/ath5k/eeprom.h
@@ -50,7 +50,7 @@
50 50
51#define AR5K_EEPROM_VERSION AR5K_EEPROM_INFO(1) /* EEPROM Version */ 51#define AR5K_EEPROM_VERSION AR5K_EEPROM_INFO(1) /* EEPROM Version */
52#define AR5K_EEPROM_VERSION_3_0 0x3000 /* No idea what's going on before this version */ 52#define AR5K_EEPROM_VERSION_3_0 0x3000 /* No idea what's going on before this version */
53#define AR5K_EEPROM_VERSION_3_1 0x3001 /* ob/db values for 2Ghz (ar5211_rfregs) */ 53#define AR5K_EEPROM_VERSION_3_1 0x3001 /* ob/db values for 2GHz (ar5211_rfregs) */
54#define AR5K_EEPROM_VERSION_3_2 0x3002 /* different frequency representation (eeprom_bin2freq) */ 54#define AR5K_EEPROM_VERSION_3_2 0x3002 /* different frequency representation (eeprom_bin2freq) */
55#define AR5K_EEPROM_VERSION_3_3 0x3003 /* offsets changed, has 32 CTLs (see below) and ee_false_detect (eeprom_read_modes) */ 55#define AR5K_EEPROM_VERSION_3_3 0x3003 /* offsets changed, has 32 CTLs (see below) and ee_false_detect (eeprom_read_modes) */
56#define AR5K_EEPROM_VERSION_3_4 0x3004 /* has ee_i_gain, ee_cck_ofdm_power_delta (eeprom_read_modes) */ 56#define AR5K_EEPROM_VERSION_3_4 0x3004 /* has ee_i_gain, ee_cck_ofdm_power_delta (eeprom_read_modes) */
@@ -75,11 +75,11 @@
75#define AR5K_EEPROM_HDR_11A(_v) (((_v) >> AR5K_EEPROM_MODE_11A) & 0x1) 75#define AR5K_EEPROM_HDR_11A(_v) (((_v) >> AR5K_EEPROM_MODE_11A) & 0x1)
76#define AR5K_EEPROM_HDR_11B(_v) (((_v) >> AR5K_EEPROM_MODE_11B) & 0x1) 76#define AR5K_EEPROM_HDR_11B(_v) (((_v) >> AR5K_EEPROM_MODE_11B) & 0x1)
77#define AR5K_EEPROM_HDR_11G(_v) (((_v) >> AR5K_EEPROM_MODE_11G) & 0x1) 77#define AR5K_EEPROM_HDR_11G(_v) (((_v) >> AR5K_EEPROM_MODE_11G) & 0x1)
78#define AR5K_EEPROM_HDR_T_2GHZ_DIS(_v) (((_v) >> 3) & 0x1) /* Disable turbo for 2Ghz */ 78#define AR5K_EEPROM_HDR_T_2GHZ_DIS(_v) (((_v) >> 3) & 0x1) /* Disable turbo for 2GHz */
79#define AR5K_EEPROM_HDR_T_5GHZ_DBM(_v) (((_v) >> 4) & 0x7f) /* Max turbo power for < 2W power consumption */ 79#define AR5K_EEPROM_HDR_T_5GHZ_DBM(_v) (((_v) >> 4) & 0x7f) /* Max turbo power for < 2W power consumption */
80#define AR5K_EEPROM_HDR_DEVICE(_v) (((_v) >> 11) & 0x7) /* Device type (1 Cardbus, 2 PCI, 3 MiniPCI, 4 AP) */ 80#define AR5K_EEPROM_HDR_DEVICE(_v) (((_v) >> 11) & 0x7) /* Device type (1 Cardbus, 2 PCI, 3 MiniPCI, 4 AP) */
81#define AR5K_EEPROM_HDR_RFKILL(_v) (((_v) >> 14) & 0x1) /* Device has RFKill support */ 81#define AR5K_EEPROM_HDR_RFKILL(_v) (((_v) >> 14) & 0x1) /* Device has RFKill support */
82#define AR5K_EEPROM_HDR_T_5GHZ_DIS(_v) (((_v) >> 15) & 0x1) /* Disable turbo for 5Ghz */ 82#define AR5K_EEPROM_HDR_T_5GHZ_DIS(_v) (((_v) >> 15) & 0x1) /* Disable turbo for 5GHz */
83 83
84/* Newer EEPROMs are using a different offset */ 84/* Newer EEPROMs are using a different offset */
85#define AR5K_EEPROM_OFF(_v, _v3_0, _v3_3) \ 85#define AR5K_EEPROM_OFF(_v, _v3_0, _v3_3) \
@@ -120,7 +120,7 @@
120#define AR5K_EEPROM_FF_DIS(_v) (((_v) >> 2) & 0x1) /* disable fast frames */ 120#define AR5K_EEPROM_FF_DIS(_v) (((_v) >> 2) & 0x1) /* disable fast frames */
121#define AR5K_EEPROM_BURST_DIS(_v) (((_v) >> 3) & 0x1) /* disable bursting */ 121#define AR5K_EEPROM_BURST_DIS(_v) (((_v) >> 3) & 0x1) /* disable bursting */
122#define AR5K_EEPROM_MAX_QCU(_v) (((_v) >> 4) & 0xf) /* max number of QCUs. defaults to 10 */ 122#define AR5K_EEPROM_MAX_QCU(_v) (((_v) >> 4) & 0xf) /* max number of QCUs. defaults to 10 */
123#define AR5K_EEPROM_HEAVY_CLIP_EN(_v) (((_v) >> 8) & 0x1) /* enable heayy clipping */ 123#define AR5K_EEPROM_HEAVY_CLIP_EN(_v) (((_v) >> 8) & 0x1) /* enable heavy clipping */
124#define AR5K_EEPROM_KEY_CACHE_SIZE(_v) (((_v) >> 12) & 0xf) /* key cache size. defaults to 128 */ 124#define AR5K_EEPROM_KEY_CACHE_SIZE(_v) (((_v) >> 12) & 0xf) /* key cache size. defaults to 128 */
125 125
126#define AR5K_EEPROM_MISC6 AR5K_EEPROM_INFO(10) 126#define AR5K_EEPROM_MISC6 AR5K_EEPROM_INFO(10)
@@ -270,7 +270,7 @@ enum ath5k_ctl_mode {
270 270
271/* Per channel calibration data, used for power table setup */ 271/* Per channel calibration data, used for power table setup */
272struct ath5k_chan_pcal_info_rf5111 { 272struct ath5k_chan_pcal_info_rf5111 {
273 /* Power levels in half dbm units 273 /* Power levels in half dBm units
274 * for one power curve. */ 274 * for one power curve. */
275 u8 pwr[AR5K_EEPROM_N_PWR_POINTS_5111]; 275 u8 pwr[AR5K_EEPROM_N_PWR_POINTS_5111];
276 /* PCDAC table steps 276 /* PCDAC table steps
diff --git a/drivers/net/wireless/ath/ath5k/initvals.c b/drivers/net/wireless/ath/ath5k/initvals.c
index 4bfdc2e20dfa..855d1af3e710 100644
--- a/drivers/net/wireless/ath/ath5k/initvals.c
+++ b/drivers/net/wireless/ath/ath5k/initvals.c
@@ -1409,7 +1409,7 @@ int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu)
1409 * Write initial register settings 1409 * Write initial register settings
1410 */ 1410 */
1411 1411
1412 /* For AR5212 and combatible */ 1412 /* For AR5212 and compatible */
1413 if (ah->ah_version == AR5K_AR5212) { 1413 if (ah->ah_version == AR5K_AR5212) {
1414 1414
1415 /* First set of mode-specific settings */ 1415 /* First set of mode-specific settings */
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index 493908299bb4..0d5ab3428be5 100644
--- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
+++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
@@ -348,7 +348,7 @@ ath5k_prepare_multicast(struct ieee80211_hw *hw,
348 mfilt[pos / 32] |= (1 << (pos % 32)); 348 mfilt[pos / 32] |= (1 << (pos % 32));
349 /* XXX: we might be able to just do this instead, 349 /* XXX: we might be able to just do this instead,
350 * but not sure, needs testing, if we do use this we'd 350 * but not sure, needs testing, if we do use this we'd
351 * neet to inform below to not reset the mcast */ 351 * need to inform below not to reset the mcast */
352 /* ath5k_hw_set_mcast_filterindex(ah, 352 /* ath5k_hw_set_mcast_filterindex(ah,
353 * ha->addr[5]); */ 353 * ha->addr[5]); */
354 } 354 }
@@ -471,7 +471,7 @@ ath5k_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags,
471 if (iter_data.n_stas > 1) { 471 if (iter_data.n_stas > 1) {
472 /* If you have multiple STA interfaces connected to 472 /* If you have multiple STA interfaces connected to
473 * different APs, ARPs are not received (most of the time?) 473 * different APs, ARPs are not received (most of the time?)
474 * Enabling PROMISC appears to fix that probem. 474 * Enabling PROMISC appears to fix that problem.
475 */ 475 */
476 rfilt |= AR5K_RX_FILTER_PROM; 476 rfilt |= AR5K_RX_FILTER_PROM;
477 } 477 }
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c
index cd60f0a2f0ea..aac5b7831948 100644
--- a/drivers/net/wireless/ath/ath5k/pci.c
+++ b/drivers/net/wireless/ath/ath5k/pci.c
@@ -34,12 +34,12 @@ static DEFINE_PCI_DEVICE_TABLE(ath5k_pci_id_table) = {
34 { PCI_VDEVICE(3COM_2, 0x0013) }, /* 3com 5212 */ 34 { PCI_VDEVICE(3COM_2, 0x0013) }, /* 3com 5212 */
35 { PCI_VDEVICE(3COM, 0x0013) }, /* 3com 3CRDAG675 5212 */ 35 { PCI_VDEVICE(3COM, 0x0013) }, /* 3com 3CRDAG675 5212 */
36 { PCI_VDEVICE(ATHEROS, 0x1014) }, /* IBM minipci 5212 */ 36 { PCI_VDEVICE(ATHEROS, 0x1014) }, /* IBM minipci 5212 */
37 { PCI_VDEVICE(ATHEROS, 0x0014) }, /* 5212 combatible */ 37 { PCI_VDEVICE(ATHEROS, 0x0014) }, /* 5212 compatible */
38 { PCI_VDEVICE(ATHEROS, 0x0015) }, /* 5212 combatible */ 38 { PCI_VDEVICE(ATHEROS, 0x0015) }, /* 5212 compatible */
39 { PCI_VDEVICE(ATHEROS, 0x0016) }, /* 5212 combatible */ 39 { PCI_VDEVICE(ATHEROS, 0x0016) }, /* 5212 compatible */
40 { PCI_VDEVICE(ATHEROS, 0x0017) }, /* 5212 combatible */ 40 { PCI_VDEVICE(ATHEROS, 0x0017) }, /* 5212 compatible */
41 { PCI_VDEVICE(ATHEROS, 0x0018) }, /* 5212 combatible */ 41 { PCI_VDEVICE(ATHEROS, 0x0018) }, /* 5212 compatible */
42 { PCI_VDEVICE(ATHEROS, 0x0019) }, /* 5212 combatible */ 42 { PCI_VDEVICE(ATHEROS, 0x0019) }, /* 5212 compatible */
43 { PCI_VDEVICE(ATHEROS, 0x001a) }, /* 2413 Griffin-lite */ 43 { PCI_VDEVICE(ATHEROS, 0x001a) }, /* 2413 Griffin-lite */
44 { PCI_VDEVICE(ATHEROS, 0x001b) }, /* 5413 Eagle */ 44 { PCI_VDEVICE(ATHEROS, 0x001b) }, /* 5413 Eagle */
45 { PCI_VDEVICE(ATHEROS, 0x001c) }, /* PCI-E cards */ 45 { PCI_VDEVICE(ATHEROS, 0x001c) }, /* PCI-E cards */
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c
index aecd72417490..618ee54d5fe5 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -32,7 +32,7 @@
32#include "base.h" 32#include "base.h"
33 33
34/* 34/*
35 * AR5212+ can use higher rates for ack transmition 35 * AR5212+ can use higher rates for ack transmission
36 * based on current tx rate instead of the base rate. 36 * based on current tx rate instead of the base rate.
37 * It does this to better utilize channel usage. 37 * It does this to better utilize channel usage.
38 * This is a mapping between G rates (that cover both 38 * This is a mapping between G rates (that cover both
@@ -643,14 +643,14 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval)
643 /* Flush any pending BMISS interrupts on ISR by 643 /* Flush any pending BMISS interrupts on ISR by
644 * performing a clear-on-write operation on PISR 644 * performing a clear-on-write operation on PISR
645 * register for the BMISS bit (writing a bit on 645 * register for the BMISS bit (writing a bit on
646 * ISR togles a reset for that bit and leaves 646 * ISR toggles a reset for that bit and leaves
647 * the rest bits intact) */ 647 * the remaining bits intact) */
648 if (ah->ah_version == AR5K_AR5210) 648 if (ah->ah_version == AR5K_AR5210)
649 ath5k_hw_reg_write(ah, AR5K_ISR_BMISS, AR5K_ISR); 649 ath5k_hw_reg_write(ah, AR5K_ISR_BMISS, AR5K_ISR);
650 else 650 else
651 ath5k_hw_reg_write(ah, AR5K_ISR_BMISS, AR5K_PISR); 651 ath5k_hw_reg_write(ah, AR5K_ISR_BMISS, AR5K_PISR);
652 652
653 /* TODO: Set enchanced sleep registers on AR5212 653 /* TODO: Set enhanced sleep registers on AR5212
654 * based on vif->bss_conf params, until then 654 * based on vif->bss_conf params, until then
655 * disable power save reporting.*/ 655 * disable power save reporting.*/
656 AR5K_REG_DISABLE_BITS(ah, AR5K_STA_ID1, AR5K_STA_ID1_PWR_SV); 656 AR5K_REG_DISABLE_BITS(ah, AR5K_STA_ID1, AR5K_STA_ID1_PWR_SV);
@@ -738,7 +738,7 @@ ath5k_hw_check_beacon_timers(struct ath5k_hw *ah, int intval)
738 dma = ath5k_hw_reg_read(ah, AR5K_TIMER1) >> 3; 738 dma = ath5k_hw_reg_read(ah, AR5K_TIMER1) >> 3;
739 739
740 /* NOTE: SWBA is different. Having a wrong window there does not 740 /* NOTE: SWBA is different. Having a wrong window there does not
741 * stop us from sending data and this condition is catched thru 741 * stop us from sending data and this condition is caught by
742 * other means (SWBA interrupt) */ 742 * other means (SWBA interrupt) */
743 743
744 if (ath5k_check_timer_win(nbtt, atim, 1, intval) && 744 if (ath5k_check_timer_win(nbtt, atim, 1, intval) &&
@@ -896,7 +896,7 @@ void ath5k_hw_pcu_init(struct ath5k_hw *ah, enum nl80211_iftype op_mode,
896 /* Set RSSI/BRSSI thresholds 896 /* Set RSSI/BRSSI thresholds
897 * 897 *
898 * Note: If we decide to set this value 898 * Note: If we decide to set this value
899 * dynamicaly, have in mind that when AR5K_RSSI_THR 899 * dynamically, have in mind that when AR5K_RSSI_THR
900 * register is read it might return 0x40 if we haven't 900 * register is read it might return 0x40 if we haven't
901 * wrote anything to it plus BMISS RSSI threshold is zeroed. 901 * wrote anything to it plus BMISS RSSI threshold is zeroed.
902 * So doing a save/restore procedure here isn't the right 902 * So doing a save/restore procedure here isn't the right
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 7e2867689e11..e00ab5a66940 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -363,7 +363,7 @@ int ath5k_hw_rfgain_opt_init(struct ath5k_hw *ah)
363 return 0; 363 return 0;
364} 364}
365 365
366/* Schedule a gain probe check on the next transmited packet. 366/* Schedule a gain probe check on the next transmitted packet.
367 * That means our next packet is going to be sent with lower 367 * That means our next packet is going to be sent with lower
368 * tx power and a Peak to Average Power Detector (PAPD) will try 368 * tx power and a Peak to Average Power Detector (PAPD) will try
369 * to measure the gain. 369 * to measure the gain.
@@ -620,7 +620,7 @@ enum ath5k_rfgain ath5k_hw_gainf_calibrate(struct ath5k_hw *ah)
620 620
621 /* Check if measurement is ok and if we need 621 /* Check if measurement is ok and if we need
622 * to adjust gain, schedule a gain adjustment, 622 * to adjust gain, schedule a gain adjustment,
623 * else switch back to the acive state */ 623 * else switch back to the active state */
624 if (ath5k_hw_rf_check_gainf_readback(ah) && 624 if (ath5k_hw_rf_check_gainf_readback(ah) &&
625 AR5K_GAIN_CHECK_ADJUST(&ah->ah_gain) && 625 AR5K_GAIN_CHECK_ADJUST(&ah->ah_gain) &&
626 ath5k_hw_rf_gainf_adjust(ah)) { 626 ath5k_hw_rf_gainf_adjust(ah)) {
@@ -807,7 +807,7 @@ static int ath5k_hw_rfregs_init(struct ath5k_hw *ah,
807 * use b_OB and b_DB parameters stored 807 * use b_OB and b_DB parameters stored
808 * in eeprom on ee->ee_ob[ee_mode][0] 808 * in eeprom on ee->ee_ob[ee_mode][0]
809 * 809 *
810 * For all other chips we use OB/DB for 2Ghz 810 * For all other chips we use OB/DB for 2GHz
811 * stored in the b/g modal section just like 811 * stored in the b/g modal section just like
812 * 802.11a on ee->ee_ob[ee_mode][1] */ 812 * 802.11a on ee->ee_ob[ee_mode][1] */
813 if ((ah->ah_radio == AR5K_RF5111) || 813 if ((ah->ah_radio == AR5K_RF5111) ||
@@ -1259,7 +1259,7 @@ static int ath5k_hw_channel(struct ath5k_hw *ah,
1259{ 1259{
1260 int ret; 1260 int ret;
1261 /* 1261 /*
1262 * Check bounds supported by the PHY (we don't care about regultory 1262 * Check bounds supported by the PHY (we don't care about regulatory
1263 * restrictions at this point). Note: hw_value already has the band 1263 * restrictions at this point). Note: hw_value already has the band
1264 * (CHANNEL_2GHZ, or CHANNEL_5GHZ) so we inform ath5k_channel_ok() 1264 * (CHANNEL_2GHZ, or CHANNEL_5GHZ) so we inform ath5k_channel_ok()
1265 * of the band by that */ 1265 * of the band by that */
@@ -1815,7 +1815,7 @@ ath5k_hw_set_spur_mitigation_filter(struct ath5k_hw *ah,
1815 1815
1816 } else if (ath5k_hw_reg_read(ah, AR5K_PHY_IQ) & 1816 } else if (ath5k_hw_reg_read(ah, AR5K_PHY_IQ) &
1817 AR5K_PHY_IQ_SPUR_FILT_EN) { 1817 AR5K_PHY_IQ_SPUR_FILT_EN) {
1818 /* Clean up spur mitigation settings and disable fliter */ 1818 /* Clean up spur mitigation settings and disable filter */
1819 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_BIN_MASK_CTL, 1819 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_BIN_MASK_CTL,
1820 AR5K_PHY_BIN_MASK_CTL_RATE, 0); 1820 AR5K_PHY_BIN_MASK_CTL_RATE, 0);
1821 AR5K_REG_DISABLE_BITS(ah, AR5K_PHY_IQ, 1821 AR5K_REG_DISABLE_BITS(ah, AR5K_PHY_IQ,
@@ -2510,8 +2510,8 @@ ath5k_combine_linear_pcdac_curves(struct ath5k_hw *ah, s16* table_min,
2510 s16 max_pwr_idx; 2510 s16 max_pwr_idx;
2511 s16 min_pwr_idx; 2511 s16 min_pwr_idx;
2512 s16 mid_pwr_idx = 0; 2512 s16 mid_pwr_idx = 0;
2513 /* Edge flag turs on the 7nth bit on the PCDAC 2513 /* Edge flag turns on the 7nth bit on the PCDAC
2514 * to delcare the higher power curve (force values 2514 * to declare the higher power curve (force values
2515 * to be greater than 64). If we only have one curve 2515 * to be greater than 64). If we only have one curve
2516 * we don't need to set this, if we have 2 curves and 2516 * we don't need to set this, if we have 2 curves and
2517 * fill the table backwards this can also be used to 2517 * fill the table backwards this can also be used to
@@ -2568,7 +2568,7 @@ ath5k_combine_linear_pcdac_curves(struct ath5k_hw *ah, s16* table_min,
2568 } 2568 }
2569 2569
2570 /* Don't go below 1, extrapolate below if we have 2570 /* Don't go below 1, extrapolate below if we have
2571 * already swithced to the lower power curve -or 2571 * already switched to the lower power curve -or
2572 * we only have one curve and edge_flag is zero 2572 * we only have one curve and edge_flag is zero
2573 * anyway */ 2573 * anyway */
2574 if (pcdac_tmp[pwr] < 1 && (edge_flag == 0x00)) { 2574 if (pcdac_tmp[pwr] < 1 && (edge_flag == 0x00)) {
@@ -2805,7 +2805,7 @@ ath5k_write_pwr_to_pdadc_table(struct ath5k_hw *ah, u8 ee_mode)
2805/* 2805/*
2806 * This is the main function that uses all of the above 2806 * This is the main function that uses all of the above
2807 * to set PCDAC/PDADC table on hw for the current channel. 2807 * to set PCDAC/PDADC table on hw for the current channel.
2808 * This table is used for tx power calibration on the basband, 2808 * This table is used for tx power calibration on the baseband,
2809 * without it we get weird tx power levels and in some cases 2809 * without it we get weird tx power levels and in some cases
2810 * distorted spectral mask 2810 * distorted spectral mask
2811 */ 2811 */
diff --git a/drivers/net/wireless/ath/ath5k/reg.h b/drivers/net/wireless/ath/ath5k/reg.h
index 994d29ace34d..f5c1000045d3 100644
--- a/drivers/net/wireless/ath/ath5k/reg.h
+++ b/drivers/net/wireless/ath/ath5k/reg.h
@@ -170,7 +170,7 @@
170#define AR5K_TXCFG_SDMAMR_S 0 170#define AR5K_TXCFG_SDMAMR_S 0
171#define AR5K_TXCFG_B_MODE 0x00000008 /* Set b mode for 5111 (enable 2111) */ 171#define AR5K_TXCFG_B_MODE 0x00000008 /* Set b mode for 5111 (enable 2111) */
172#define AR5K_TXCFG_TXFSTP 0x00000008 /* TX DMA full Stop [5210] */ 172#define AR5K_TXCFG_TXFSTP 0x00000008 /* TX DMA full Stop [5210] */
173#define AR5K_TXCFG_TXFULL 0x000003f0 /* TX Triger level mask */ 173#define AR5K_TXCFG_TXFULL 0x000003f0 /* TX Trigger level mask */
174#define AR5K_TXCFG_TXFULL_S 4 174#define AR5K_TXCFG_TXFULL_S 4
175#define AR5K_TXCFG_TXFULL_0B 0x00000000 175#define AR5K_TXCFG_TXFULL_0B 0x00000000
176#define AR5K_TXCFG_TXFULL_64B 0x00000010 176#define AR5K_TXCFG_TXFULL_64B 0x00000010
@@ -283,16 +283,16 @@
283 */ 283 */
284#define AR5K_ISR 0x001c /* Register Address [5210] */ 284#define AR5K_ISR 0x001c /* Register Address [5210] */
285#define AR5K_PISR 0x0080 /* Register Address [5211+] */ 285#define AR5K_PISR 0x0080 /* Register Address [5211+] */
286#define AR5K_ISR_RXOK 0x00000001 /* Frame successfuly received */ 286#define AR5K_ISR_RXOK 0x00000001 /* Frame successfully received */
287#define AR5K_ISR_RXDESC 0x00000002 /* RX descriptor request */ 287#define AR5K_ISR_RXDESC 0x00000002 /* RX descriptor request */
288#define AR5K_ISR_RXERR 0x00000004 /* Receive error */ 288#define AR5K_ISR_RXERR 0x00000004 /* Receive error */
289#define AR5K_ISR_RXNOFRM 0x00000008 /* No frame received (receive timeout) */ 289#define AR5K_ISR_RXNOFRM 0x00000008 /* No frame received (receive timeout) */
290#define AR5K_ISR_RXEOL 0x00000010 /* Empty RX descriptor */ 290#define AR5K_ISR_RXEOL 0x00000010 /* Empty RX descriptor */
291#define AR5K_ISR_RXORN 0x00000020 /* Receive FIFO overrun */ 291#define AR5K_ISR_RXORN 0x00000020 /* Receive FIFO overrun */
292#define AR5K_ISR_TXOK 0x00000040 /* Frame successfuly transmited */ 292#define AR5K_ISR_TXOK 0x00000040 /* Frame successfully transmitted */
293#define AR5K_ISR_TXDESC 0x00000080 /* TX descriptor request */ 293#define AR5K_ISR_TXDESC 0x00000080 /* TX descriptor request */
294#define AR5K_ISR_TXERR 0x00000100 /* Transmit error */ 294#define AR5K_ISR_TXERR 0x00000100 /* Transmit error */
295#define AR5K_ISR_TXNOFRM 0x00000200 /* No frame transmited (transmit timeout) */ 295#define AR5K_ISR_TXNOFRM 0x00000200 /* No frame transmitted (transmit timeout) */
296#define AR5K_ISR_TXEOL 0x00000400 /* Empty TX descriptor */ 296#define AR5K_ISR_TXEOL 0x00000400 /* Empty TX descriptor */
297#define AR5K_ISR_TXURN 0x00000800 /* Transmit FIFO underrun */ 297#define AR5K_ISR_TXURN 0x00000800 /* Transmit FIFO underrun */
298#define AR5K_ISR_MIB 0x00001000 /* Update MIB counters */ 298#define AR5K_ISR_MIB 0x00001000 /* Update MIB counters */
@@ -377,16 +377,16 @@
377 */ 377 */
378#define AR5K_IMR 0x0020 /* Register Address [5210] */ 378#define AR5K_IMR 0x0020 /* Register Address [5210] */
379#define AR5K_PIMR 0x00a0 /* Register Address [5211+] */ 379#define AR5K_PIMR 0x00a0 /* Register Address [5211+] */
380#define AR5K_IMR_RXOK 0x00000001 /* Frame successfuly received*/ 380#define AR5K_IMR_RXOK 0x00000001 /* Frame successfully received*/
381#define AR5K_IMR_RXDESC 0x00000002 /* RX descriptor request*/ 381#define AR5K_IMR_RXDESC 0x00000002 /* RX descriptor request*/
382#define AR5K_IMR_RXERR 0x00000004 /* Receive error*/ 382#define AR5K_IMR_RXERR 0x00000004 /* Receive error*/
383#define AR5K_IMR_RXNOFRM 0x00000008 /* No frame received (receive timeout)*/ 383#define AR5K_IMR_RXNOFRM 0x00000008 /* No frame received (receive timeout)*/
384#define AR5K_IMR_RXEOL 0x00000010 /* Empty RX descriptor*/ 384#define AR5K_IMR_RXEOL 0x00000010 /* Empty RX descriptor*/
385#define AR5K_IMR_RXORN 0x00000020 /* Receive FIFO overrun*/ 385#define AR5K_IMR_RXORN 0x00000020 /* Receive FIFO overrun*/
386#define AR5K_IMR_TXOK 0x00000040 /* Frame successfuly transmited*/ 386#define AR5K_IMR_TXOK 0x00000040 /* Frame successfully transmitted*/
387#define AR5K_IMR_TXDESC 0x00000080 /* TX descriptor request*/ 387#define AR5K_IMR_TXDESC 0x00000080 /* TX descriptor request*/
388#define AR5K_IMR_TXERR 0x00000100 /* Transmit error*/ 388#define AR5K_IMR_TXERR 0x00000100 /* Transmit error*/
389#define AR5K_IMR_TXNOFRM 0x00000200 /* No frame transmited (transmit timeout)*/ 389#define AR5K_IMR_TXNOFRM 0x00000200 /* No frame transmitted (transmit timeout)*/
390#define AR5K_IMR_TXEOL 0x00000400 /* Empty TX descriptor*/ 390#define AR5K_IMR_TXEOL 0x00000400 /* Empty TX descriptor*/
391#define AR5K_IMR_TXURN 0x00000800 /* Transmit FIFO underrun*/ 391#define AR5K_IMR_TXURN 0x00000800 /* Transmit FIFO underrun*/
392#define AR5K_IMR_MIB 0x00001000 /* Update MIB counters*/ 392#define AR5K_IMR_MIB 0x00001000 /* Update MIB counters*/
@@ -601,7 +601,7 @@
601 * QCU misc registers 601 * QCU misc registers
602 */ 602 */
603#define AR5K_QCU_MISC_BASE 0x09c0 /* Register Address -Queue0 MISC */ 603#define AR5K_QCU_MISC_BASE 0x09c0 /* Register Address -Queue0 MISC */
604#define AR5K_QCU_MISC_FRSHED_M 0x0000000f /* Frame sheduling mask */ 604#define AR5K_QCU_MISC_FRSHED_M 0x0000000f /* Frame scheduling mask */
605#define AR5K_QCU_MISC_FRSHED_ASAP 0 /* ASAP */ 605#define AR5K_QCU_MISC_FRSHED_ASAP 0 /* ASAP */
606#define AR5K_QCU_MISC_FRSHED_CBR 1 /* Constant Bit Rate */ 606#define AR5K_QCU_MISC_FRSHED_CBR 1 /* Constant Bit Rate */
607#define AR5K_QCU_MISC_FRSHED_DBA_GT 2 /* DMA Beacon alert gated */ 607#define AR5K_QCU_MISC_FRSHED_DBA_GT 2 /* DMA Beacon alert gated */
@@ -653,13 +653,13 @@
653 * registers [5211+] 653 * registers [5211+]
654 * 654 *
655 * These registers control the various characteristics of each queue 655 * These registers control the various characteristics of each queue
656 * for 802.11e (WME) combatibility so they go together with 656 * for 802.11e (WME) compatibility so they go together with
657 * QCU registers in pairs. For each queue we have a QCU mask register, 657 * QCU registers in pairs. For each queue we have a QCU mask register,
658 * (0x1000 - 0x102c), a local-IFS settings register (0x1040 - 0x106c), 658 * (0x1000 - 0x102c), a local-IFS settings register (0x1040 - 0x106c),
659 * a retry limit register (0x1080 - 0x10ac), a channel time register 659 * a retry limit register (0x1080 - 0x10ac), a channel time register
660 * (0x10c0 - 0x10ec), a misc-settings register (0x1100 - 0x112c) and 660 * (0x10c0 - 0x10ec), a misc-settings register (0x1100 - 0x112c) and
661 * a sequence number register (0x1140 - 0x116c). It seems that "global" 661 * a sequence number register (0x1140 - 0x116c). It seems that "global"
662 * registers here afect all queues (see use of DCU_GBL_IFS_SLOT in ar5k). 662 * registers here affect all queues (see use of DCU_GBL_IFS_SLOT in ar5k).
663 * We use the same macros here for easier register access. 663 * We use the same macros here for easier register access.
664 * 664 *
665 */ 665 */
@@ -779,7 +779,7 @@
779 * and it's used for generating pseudo-random 779 * and it's used for generating pseudo-random
780 * number sequences. 780 * number sequences.
781 * 781 *
782 * (If i understand corectly, random numbers are 782 * (If i understand correctly, random numbers are
783 * used for idle sensing -multiplied with cwmin/max etc-) 783 * used for idle sensing -multiplied with cwmin/max etc-)
784 */ 784 */
785#define AR5K_DCU_GBL_IFS_MISC 0x10f0 /* Register Address */ 785#define AR5K_DCU_GBL_IFS_MISC 0x10f0 /* Register Address */
@@ -1007,7 +1007,7 @@
1007#define AR5K_PCIE_WAEN 0x407c 1007#define AR5K_PCIE_WAEN 0x407c
1008 1008
1009/* 1009/*
1010 * PCI-E Serializer/Desirializer 1010 * PCI-E Serializer/Deserializer
1011 * registers 1011 * registers
1012 */ 1012 */
1013#define AR5K_PCIE_SERDES 0x4080 1013#define AR5K_PCIE_SERDES 0x4080
@@ -1227,7 +1227,7 @@
1227 AR5K_USEC_5210 : AR5K_USEC_5211) 1227 AR5K_USEC_5210 : AR5K_USEC_5211)
1228#define AR5K_USEC_1 0x0000007f /* clock cycles for 1us */ 1228#define AR5K_USEC_1 0x0000007f /* clock cycles for 1us */
1229#define AR5K_USEC_1_S 0 1229#define AR5K_USEC_1_S 0
1230#define AR5K_USEC_32 0x00003f80 /* clock cycles for 1us while on 32Mhz clock */ 1230#define AR5K_USEC_32 0x00003f80 /* clock cycles for 1us while on 32MHz clock */
1231#define AR5K_USEC_32_S 7 1231#define AR5K_USEC_32_S 7
1232#define AR5K_USEC_TX_LATENCY_5211 0x007fc000 1232#define AR5K_USEC_TX_LATENCY_5211 0x007fc000
1233#define AR5K_USEC_TX_LATENCY_5211_S 14 1233#define AR5K_USEC_TX_LATENCY_5211_S 14
@@ -1632,7 +1632,7 @@
1632#define AR5K_SLEEP0_NEXT_DTIM 0x0007ffff /* Mask for next DTIM (?) */ 1632#define AR5K_SLEEP0_NEXT_DTIM 0x0007ffff /* Mask for next DTIM (?) */
1633#define AR5K_SLEEP0_NEXT_DTIM_S 0 1633#define AR5K_SLEEP0_NEXT_DTIM_S 0
1634#define AR5K_SLEEP0_ASSUME_DTIM 0x00080000 /* Assume DTIM */ 1634#define AR5K_SLEEP0_ASSUME_DTIM 0x00080000 /* Assume DTIM */
1635#define AR5K_SLEEP0_ENH_SLEEP_EN 0x00100000 /* Enable enchanced sleep control */ 1635#define AR5K_SLEEP0_ENH_SLEEP_EN 0x00100000 /* Enable enhanced sleep control */
1636#define AR5K_SLEEP0_CABTO 0xff000000 /* Mask for CAB Time Out */ 1636#define AR5K_SLEEP0_CABTO 0xff000000 /* Mask for CAB Time Out */
1637#define AR5K_SLEEP0_CABTO_S 24 1637#define AR5K_SLEEP0_CABTO_S 24
1638 1638
@@ -1657,7 +1657,7 @@
1657/* 1657/*
1658 * TX power control (TPC) register 1658 * TX power control (TPC) register
1659 * 1659 *
1660 * XXX: PCDAC steps (0.5dbm) or DBM ? 1660 * XXX: PCDAC steps (0.5dBm) or dBm ?
1661 * 1661 *
1662 */ 1662 */
1663#define AR5K_TXPC 0x80e8 /* Register Address */ 1663#define AR5K_TXPC 0x80e8 /* Register Address */
@@ -1673,7 +1673,7 @@
1673/* 1673/*
1674 * Profile count registers 1674 * Profile count registers
1675 * 1675 *
1676 * These registers can be cleared and freezed with ATH5K_MIBC, but they do not 1676 * These registers can be cleared and frozen with ATH5K_MIBC, but they do not
1677 * generate a MIB interrupt. 1677 * generate a MIB interrupt.
1678 * Instead of overflowing, they shift by one bit to the right. All registers 1678 * Instead of overflowing, they shift by one bit to the right. All registers
1679 * shift together, i.e. when one reaches the max, all shift at the same time by 1679 * shift together, i.e. when one reaches the max, all shift at the same time by
@@ -1838,7 +1838,7 @@
1838#define AR5K_PHY_TST2_TRIG_SEL 0x00000007 /* Trigger select (?)*/ 1838#define AR5K_PHY_TST2_TRIG_SEL 0x00000007 /* Trigger select (?)*/
1839#define AR5K_PHY_TST2_TRIG 0x00000010 /* Trigger (?) */ 1839#define AR5K_PHY_TST2_TRIG 0x00000010 /* Trigger (?) */
1840#define AR5K_PHY_TST2_CBUS_MODE 0x00000060 /* Cardbus mode (?) */ 1840#define AR5K_PHY_TST2_CBUS_MODE 0x00000060 /* Cardbus mode (?) */
1841#define AR5K_PHY_TST2_CLK32 0x00000400 /* CLK_OUT is CLK32 (32Khz external) */ 1841#define AR5K_PHY_TST2_CLK32 0x00000400 /* CLK_OUT is CLK32 (32kHz external) */
1842#define AR5K_PHY_TST2_CHANCOR_DUMP_EN 0x00000800 /* Enable Chancor dump (?) */ 1842#define AR5K_PHY_TST2_CHANCOR_DUMP_EN 0x00000800 /* Enable Chancor dump (?) */
1843#define AR5K_PHY_TST2_EVEN_CHANCOR_DUMP 0x00001000 /* Even Chancor dump (?) */ 1843#define AR5K_PHY_TST2_EVEN_CHANCOR_DUMP 0x00001000 /* Even Chancor dump (?) */
1844#define AR5K_PHY_TST2_RFSILENT_EN 0x00002000 /* Enable RFSILENT */ 1844#define AR5K_PHY_TST2_RFSILENT_EN 0x00002000 /* Enable RFSILENT */
@@ -2002,7 +2002,7 @@
2002#define AR5K_PHY_AGCCTL_OFDM_DIV_DIS 0x00000008 /* Disable antenna diversity on OFDM modes */ 2002#define AR5K_PHY_AGCCTL_OFDM_DIV_DIS 0x00000008 /* Disable antenna diversity on OFDM modes */
2003#define AR5K_PHY_AGCCTL_NF_EN 0x00008000 /* Enable nf calibration to happen (?) */ 2003#define AR5K_PHY_AGCCTL_NF_EN 0x00008000 /* Enable nf calibration to happen (?) */
2004#define AR5K_PHY_AGCTL_FLTR_CAL 0x00010000 /* Allow filter calibration (?) */ 2004#define AR5K_PHY_AGCTL_FLTR_CAL 0x00010000 /* Allow filter calibration (?) */
2005#define AR5K_PHY_AGCCTL_NF_NOUPDATE 0x00020000 /* Don't update nf automaticaly */ 2005#define AR5K_PHY_AGCCTL_NF_NOUPDATE 0x00020000 /* Don't update nf automatically */
2006 2006
2007/* 2007/*
2008 * PHY noise floor status register (CCA = Clear Channel Assessment) 2008 * PHY noise floor status register (CCA = Clear Channel Assessment)
@@ -2089,7 +2089,7 @@
2089 * 2089 *
2090 * It's obvious from the code that 0x989c is the buffer register but 2090 * It's obvious from the code that 0x989c is the buffer register but
2091 * for the other special registers that we write to after sending each 2091 * for the other special registers that we write to after sending each
2092 * packet, i have no idea. So i'll name them BUFFER_CONTROL_X registers 2092 * packet, i have no idea. So I'll name them BUFFER_CONTROL_X registers
2093 * for now. It's interesting that they are also used for some other operations. 2093 * for now. It's interesting that they are also used for some other operations.
2094 */ 2094 */
2095 2095
@@ -2340,7 +2340,7 @@
2340#define AR5K_PHY_RESTART_DIV_GC_S 18 2340#define AR5K_PHY_RESTART_DIV_GC_S 18
2341 2341
2342/* 2342/*
2343 * RF Bus access request register (for synth-oly channel switching) 2343 * RF Bus access request register (for synth-only channel switching)
2344 */ 2344 */
2345#define AR5K_PHY_RFBUS_REQ 0x997C 2345#define AR5K_PHY_RFBUS_REQ 0x997C
2346#define AR5K_PHY_RFBUS_REQ_REQUEST 0x00000001 2346#define AR5K_PHY_RFBUS_REQ_REQUEST 0x00000001
@@ -2382,7 +2382,7 @@
2382 */ 2382 */
2383#define AR5K_BB_GAIN_BASE 0x9b00 /* BaseBand Amplifier Gain table base address */ 2383#define AR5K_BB_GAIN_BASE 0x9b00 /* BaseBand Amplifier Gain table base address */
2384#define AR5K_BB_GAIN(_n) (AR5K_BB_GAIN_BASE + ((_n) << 2)) 2384#define AR5K_BB_GAIN(_n) (AR5K_BB_GAIN_BASE + ((_n) << 2))
2385#define AR5K_RF_GAIN_BASE 0x9a00 /* RF Amplrifier Gain table base address */ 2385#define AR5K_RF_GAIN_BASE 0x9a00 /* RF Amplifier Gain table base address */
2386#define AR5K_RF_GAIN(_n) (AR5K_RF_GAIN_BASE + ((_n) << 2)) 2386#define AR5K_RF_GAIN(_n) (AR5K_RF_GAIN_BASE + ((_n) << 2))
2387 2387
2388/* 2388/*
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 19aefdb75416..57f2e56bc064 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -213,7 +213,7 @@ static void ath5k_hw_init_core_clock(struct ath5k_hw *ah)
213 usec_reg = (usec | sclock | txlat | rxlat); 213 usec_reg = (usec | sclock | txlat | rxlat);
214 ath5k_hw_reg_write(ah, usec_reg, AR5K_USEC); 214 ath5k_hw_reg_write(ah, usec_reg, AR5K_USEC);
215 215
216 /* On 5112 set tx frane to tx data start delay */ 216 /* On 5112 set tx frame to tx data start delay */
217 if (ah->ah_radio == AR5K_RF5112) { 217 if (ah->ah_radio == AR5K_RF5112) {
218 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_RF_CTL2, 218 AR5K_REG_WRITE_BITS(ah, AR5K_PHY_RF_CTL2,
219 AR5K_PHY_RF_CTL2_TXF2TXD_START, 219 AR5K_PHY_RF_CTL2_TXF2TXD_START,
@@ -539,7 +539,7 @@ int ath5k_hw_on_hold(struct ath5k_hw *ah)
539 * 539 *
540 * Note: putting PCI core on warm reset on PCI-E cards 540 * Note: putting PCI core on warm reset on PCI-E cards
541 * results card to hang and always return 0xffff... so 541 * results card to hang and always return 0xffff... so
542 * we ingore that flag for PCI-E cards. On PCI cards 542 * we ignore that flag for PCI-E cards. On PCI cards
543 * this flag gets cleared after 64 PCI clocks. 543 * this flag gets cleared after 64 PCI clocks.
544 */ 544 */
545 bus_flags = (pdev && pci_is_pcie(pdev)) ? 0 : AR5K_RESET_CTL_PCI; 545 bus_flags = (pdev && pci_is_pcie(pdev)) ? 0 : AR5K_RESET_CTL_PCI;
@@ -596,7 +596,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
596 * 596 *
597 * Note: putting PCI core on warm reset on PCI-E cards 597 * Note: putting PCI core on warm reset on PCI-E cards
598 * results card to hang and always return 0xffff... so 598 * results card to hang and always return 0xffff... so
599 * we ingore that flag for PCI-E cards. On PCI cards 599 * we ignore that flag for PCI-E cards. On PCI cards
600 * this flag gets cleared after 64 PCI clocks. 600 * this flag gets cleared after 64 PCI clocks.
601 */ 601 */
602 bus_flags = (pdev && pci_is_pcie(pdev)) ? 0 : AR5K_RESET_CTL_PCI; 602 bus_flags = (pdev && pci_is_pcie(pdev)) ? 0 : AR5K_RESET_CTL_PCI;
@@ -627,7 +627,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
627 return ret; 627 return ret;
628 } 628 }
629 629
630 /* ...reset configuration regiter on Wisoc ... 630 /* ...reset configuration register on Wisoc ...
631 * ...clear reset control register and pull device out of 631 * ...clear reset control register and pull device out of
632 * warm reset on others */ 632 * warm reset on others */
633 if (ath5k_get_bus_type(ah) == ATH_AHB) 633 if (ath5k_get_bus_type(ah) == ATH_AHB)
@@ -704,7 +704,7 @@ int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
704 704
705 /*XXX: Can bwmode be used with dynamic mode ? 705 /*XXX: Can bwmode be used with dynamic mode ?
706 * (I don't think it supports 44MHz) */ 706 * (I don't think it supports 44MHz) */
707 /* On 2425 initvals TURBO_SHORT is not pressent */ 707 /* On 2425 initvals TURBO_SHORT is not present */
708 if (ah->ah_bwmode == AR5K_BWMODE_40MHZ) { 708 if (ah->ah_bwmode == AR5K_BWMODE_40MHZ) {
709 turbo = AR5K_PHY_TURBO_MODE | 709 turbo = AR5K_PHY_TURBO_MODE |
710 (ah->ah_radio == AR5K_RF2425) ? 0 : 710 (ah->ah_radio == AR5K_RF2425) ? 0 :
diff --git a/drivers/net/wireless/ath/ath5k/rfgain.h b/drivers/net/wireless/ath/ath5k/rfgain.h
index 70c9a45609f0..ebfae052d89e 100644
--- a/drivers/net/wireless/ath/ath5k/rfgain.h
+++ b/drivers/net/wireless/ath/ath5k/rfgain.h
@@ -30,7 +30,7 @@ struct ath5k_ini_rfgain {
30 30
31/* Initial RF Gain settings for RF5111 */ 31/* Initial RF Gain settings for RF5111 */
32static const struct ath5k_ini_rfgain rfgain_5111[] = { 32static const struct ath5k_ini_rfgain rfgain_5111[] = {
33 /* 5Ghz 2Ghz */ 33 /* 5GHz 2GHz */
34 { AR5K_RF_GAIN(0), { 0x000001a9, 0x00000000 } }, 34 { AR5K_RF_GAIN(0), { 0x000001a9, 0x00000000 } },
35 { AR5K_RF_GAIN(1), { 0x000001e9, 0x00000040 } }, 35 { AR5K_RF_GAIN(1), { 0x000001e9, 0x00000040 } },
36 { AR5K_RF_GAIN(2), { 0x00000029, 0x00000080 } }, 36 { AR5K_RF_GAIN(2), { 0x00000029, 0x00000080 } },
@@ -99,7 +99,7 @@ static const struct ath5k_ini_rfgain rfgain_5111[] = {
99 99
100/* Initial RF Gain settings for RF5112 */ 100/* Initial RF Gain settings for RF5112 */
101static const struct ath5k_ini_rfgain rfgain_5112[] = { 101static const struct ath5k_ini_rfgain rfgain_5112[] = {
102 /* 5Ghz 2Ghz */ 102 /* 5GHz 2GHz */
103 { AR5K_RF_GAIN(0), { 0x00000007, 0x00000007 } }, 103 { AR5K_RF_GAIN(0), { 0x00000007, 0x00000007 } },
104 { AR5K_RF_GAIN(1), { 0x00000047, 0x00000047 } }, 104 { AR5K_RF_GAIN(1), { 0x00000047, 0x00000047 } },
105 { AR5K_RF_GAIN(2), { 0x00000087, 0x00000087 } }, 105 { AR5K_RF_GAIN(2), { 0x00000087, 0x00000087 } },
@@ -305,7 +305,7 @@ static const struct ath5k_ini_rfgain rfgain_2316[] = {
305 305
306/* Initial RF Gain settings for RF5413 */ 306/* Initial RF Gain settings for RF5413 */
307static const struct ath5k_ini_rfgain rfgain_5413[] = { 307static const struct ath5k_ini_rfgain rfgain_5413[] = {
308 /* 5Ghz 2Ghz */ 308 /* 5GHz 2GHz */
309 { AR5K_RF_GAIN(0), { 0x00000000, 0x00000000 } }, 309 { AR5K_RF_GAIN(0), { 0x00000000, 0x00000000 } },
310 { AR5K_RF_GAIN(1), { 0x00000040, 0x00000040 } }, 310 { AR5K_RF_GAIN(1), { 0x00000040, 0x00000040 } },
311 { AR5K_RF_GAIN(2), { 0x00000080, 0x00000080 } }, 311 { AR5K_RF_GAIN(2), { 0x00000080, 0x00000080 } },