aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-10-24 02:48:56 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:02:28 -0400
commita96a27f97f2bbfc1fca54bc3c0b0d41484152740 (patch)
treef9f6611156a01fbe97b38fb92aa078b2fc01d929 /drivers
parent127901ab69bbb263fb2b46e850cf20c57ac321d3 (diff)
iwlwifi: run through spell checker
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-commands.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-io.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965-hw.h12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000-hw.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h28
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debug.h7
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-eeprom.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-io.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-led.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-power.c18
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-prph.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rfkill.c8
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rx.c8
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-scan.c2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-sta.c6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c28
26 files changed, 91 insertions, 92 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
index 817ece773643..8772d9d7d6e7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-commands.h
@@ -121,7 +121,7 @@ enum {
121 REPLY_TX_PWR_TABLE_CMD = 0x97, 121 REPLY_TX_PWR_TABLE_CMD = 0x97,
122 MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */ 122 MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */
123 123
124 /* Bluetooth device coexistance config command */ 124 /* Bluetooth device coexistence config command */
125 REPLY_BT_CONFIG = 0x9b, 125 REPLY_BT_CONFIG = 0x9b,
126 126
127 /* Statistics */ 127 /* Statistics */
@@ -158,7 +158,7 @@ struct iwl3945_cmd_header {
158 u8 cmd; /* Command ID: REPLY_RXON, etc. */ 158 u8 cmd; /* Command ID: REPLY_RXON, etc. */
159 u8 flags; /* IWL_CMD_* */ 159 u8 flags; /* IWL_CMD_* */
160 /* 160 /*
161 * The driver sets up the sequence number to values of its chosing. 161 * The driver sets up the sequence number to values of its choosing.
162 * uCode does not use this value, but passes it back to the driver 162 * uCode does not use this value, but passes it back to the driver
163 * when sending the response to each driver-originated command, so 163 * when sending the response to each driver-originated command, so
164 * the driver can match the response to the command. Since the values 164 * the driver can match the response to the command. Since the values
@@ -991,7 +991,7 @@ struct iwl3945_rate_scaling_cmd {
991 * 991 *
992 * 3945 and 4965 support hardware handshake with Bluetooth device on 992 * 3945 and 4965 support hardware handshake with Bluetooth device on
993 * same platform. Bluetooth device alerts wireless device when it will Tx; 993 * same platform. Bluetooth device alerts wireless device when it will Tx;
994 * wireless device can delay or kill its own Tx to accomodate. 994 * wireless device can delay or kill its own Tx to accommodate.
995 */ 995 */
996struct iwl3945_bt_cmd { 996struct iwl3945_bt_cmd {
997 u8 flags; 997 u8 flags;
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-io.h b/drivers/net/wireless/iwlwifi/iwl-3945-io.h
index b3fe48de3ae7..1daa3f05a775 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-io.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-io.h
@@ -53,7 +53,7 @@
53 * _iwl3945_read32.) 53 * _iwl3945_read32.)
54 * 54 *
55 * These declarations are *extremely* useful in quickly isolating code deltas 55 * These declarations are *extremely* useful in quickly isolating code deltas
56 * which result in misconfiguring of the hardware I/O. In combination with 56 * which result in misconfiguration of the hardware I/O. In combination with
57 * git-bisect and the IO debug level you can quickly determine the specific 57 * git-bisect and the IO debug level you can quickly determine the specific
58 * commit which breaks the IO sequence to the hardware. 58 * commit which breaks the IO sequence to the hardware.
59 * 59 *
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 7afafb629706..af77ea70d737 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -200,7 +200,7 @@ static int iwl3945_hwrate_to_plcp_idx(u8 plcp)
200 * priv->eeprom is used to determine if antenna AUX/MAIN are reversed 200 * priv->eeprom is used to determine if antenna AUX/MAIN are reversed
201 * priv->antenna specifies the antenna diversity mode: 201 * priv->antenna specifies the antenna diversity mode:
202 * 202 *
203 * IWL_ANTENNA_DIVERISTY - NIC selects best antenna by itself 203 * IWL_ANTENNA_DIVERSITY - NIC selects best antenna by itself
204 * IWL_ANTENNA_MAIN - Force MAIN antenna 204 * IWL_ANTENNA_MAIN - Force MAIN antenna
205 * IWL_ANTENNA_AUX - Force AUX antenna 205 * IWL_ANTENNA_AUX - Force AUX antenna
206 */ 206 */
@@ -1882,7 +1882,7 @@ static int iwl3945_hw_reg_comp_txpower_temp(struct iwl3945_priv *priv)
1882 ref_temp = (s16)priv->eeprom.groups[ch_info->group_index]. 1882 ref_temp = (s16)priv->eeprom.groups[ch_info->group_index].
1883 temperature; 1883 temperature;
1884 1884
1885 /* get power index adjustment based on curr and factory 1885 /* get power index adjustment based on current and factory
1886 * temps */ 1886 * temps */
1887 delta_index = iwl3945_hw_reg_adjust_power_by_temp(temperature, 1887 delta_index = iwl3945_hw_reg_adjust_power_by_temp(temperature,
1888 ref_temp); 1888 ref_temp);
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
index f3f41a6a7c8c..9da7c7bea752 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965-hw.h
@@ -71,7 +71,7 @@
71 71
72#include "iwl-fh.h" 72#include "iwl-fh.h"
73 73
74/* EERPROM */ 74/* EEPROM */
75#define IWL4965_EEPROM_IMG_SIZE 1024 75#define IWL4965_EEPROM_IMG_SIZE 1024
76 76
77/* 77/*
@@ -286,13 +286,13 @@ static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr)
286 * that target txpower. 286 * that target txpower.
287 * 287 *
288 * 288 *
289 * 3) Determine (EEPROM) calibration subband for the target channel, by 289 * 3) Determine (EEPROM) calibration sub band for the target channel, by
290 * comparing against first and last channels in each subband 290 * comparing against first and last channels in each sub band
291 * (see struct iwl4965_eeprom_calib_subband_info). 291 * (see struct iwl4965_eeprom_calib_subband_info).
292 * 292 *
293 * 293 *
294 * 4) Linearly interpolate (EEPROM) factory calibration measurement sets, 294 * 4) Linearly interpolate (EEPROM) factory calibration measurement sets,
295 * referencing the 2 factory-measured (sample) channels within the subband. 295 * referencing the 2 factory-measured (sample) channels within the sub band.
296 * 296 *
297 * Interpolation is based on difference between target channel's frequency 297 * Interpolation is based on difference between target channel's frequency
298 * and the sample channels' frequencies. Since channel numbers are based 298 * and the sample channels' frequencies. Since channel numbers are based
@@ -300,7 +300,7 @@ static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr)
300 * to interpolating based on channel number differences. 300 * to interpolating based on channel number differences.
301 * 301 *
302 * Note that the sample channels may or may not be the channels at the 302 * Note that the sample channels may or may not be the channels at the
303 * edges of the subband. The target channel may be "outside" of the 303 * edges of the sub band. The target channel may be "outside" of the
304 * span of the sampled channels. 304 * span of the sampled channels.
305 * 305 *
306 * Driver may choose the pair (for 2 Tx chains) of measurements (see 306 * Driver may choose the pair (for 2 Tx chains) of measurements (see
@@ -344,7 +344,7 @@ static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr)
344 * "4965 temperature calculation". 344 * "4965 temperature calculation".
345 * 345 *
346 * If current temperature is higher than factory temperature, driver must 346 * If current temperature is higher than factory temperature, driver must
347 * increase gain (lower gain table index), and vice versa. 347 * increase gain (lower gain table index), and vice verse.
348 * 348 *
349 * Temperature affects gain differently for different channels: 349 * Temperature affects gain differently for different channels:
350 * 350 *
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 1f22140bec1a..0953a9c56807 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -246,7 +246,7 @@ static int iwl4965_set_ucode_ptrs(struct iwl_priv *priv)
246 iwl_write_prph(priv, BSM_DRAM_DATA_BYTECOUNT_REG, 246 iwl_write_prph(priv, BSM_DRAM_DATA_BYTECOUNT_REG,
247 priv->ucode_data.len); 247 priv->ucode_data.len);
248 248
249 /* Inst bytecount must be last to set up, bit 31 signals uCode 249 /* Inst byte count must be last to set up, bit 31 signals uCode
250 * that all new ptr/size info is in place */ 250 * that all new ptr/size info is in place */
251 iwl_write_prph(priv, BSM_DRAM_INST_BYTECOUNT_REG, 251 iwl_write_prph(priv, BSM_DRAM_INST_BYTECOUNT_REG,
252 priv->ucode_code.len | BSM_DRAM_INST_LOAD); 252 priv->ucode_code.len | BSM_DRAM_INST_LOAD);
@@ -324,7 +324,7 @@ static u16 iwl4965_eeprom_calib_version(struct iwl_priv *priv)
324} 324}
325 325
326/* 326/*
327 * Activate/Deactivat Tx DMA/FIFO channels according tx fifos mask 327 * Activate/Deactivate Tx DMA/FIFO channels according tx fifos mask
328 * must be called under priv->lock and mac access 328 * must be called under priv->lock and mac access
329 */ 329 */
330static void iwl4965_txq_set_sched(struct iwl_priv *priv, u32 mask) 330static void iwl4965_txq_set_sched(struct iwl_priv *priv, u32 mask)
@@ -396,7 +396,7 @@ static void iwl4965_nic_config(struct iwl_priv *priv)
396 396
397 /* L1 is enabled by BIOS */ 397 /* L1 is enabled by BIOS */
398 if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN) 398 if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN)
399 /* diable L0S disabled L1A enabled */ 399 /* disable L0S disabled L1A enabled */
400 iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); 400 iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED);
401 else 401 else
402 /* L0S enabled L1A disabled */ 402 /* L0S enabled L1A disabled */
@@ -625,7 +625,7 @@ static void iwl4965_bg_txpower_work(struct work_struct *work)
625 625
626 mutex_lock(&priv->mutex); 626 mutex_lock(&priv->mutex);
627 627
628 /* Regardless of if we are assocaited, we must reconfigure the 628 /* Regardless of if we are associated, we must reconfigure the
629 * TX power since frames can be sent on non-radar channels while 629 * TX power since frames can be sent on non-radar channels while
630 * not associated */ 630 * not associated */
631 iwl4965_send_tx_power(priv); 631 iwl4965_send_tx_power(priv);
@@ -2019,7 +2019,7 @@ static inline u32 iwl4965_get_scd_ssn(struct iwl4965_tx_resp *tx_resp)
2019} 2019}
2020 2020
2021/** 2021/**
2022 * iwl4965_tx_status_reply_tx - Handle Tx rspnse for frames in aggregation queue 2022 * iwl4965_tx_status_reply_tx - Handle Tx response for frames in aggregation queue
2023 */ 2023 */
2024static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv, 2024static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv,
2025 struct iwl_ht_agg *agg, 2025 struct iwl_ht_agg *agg,
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000-hw.h b/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
index 49ede54bfad9..12c74048a396 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
+++ b/drivers/net/wireless/iwlwifi/iwl-5000-hw.h
@@ -73,7 +73,7 @@
73#define IWL50_RTC_INST_SIZE (IWL50_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND) 73#define IWL50_RTC_INST_SIZE (IWL50_RTC_INST_UPPER_BOUND - RTC_INST_LOWER_BOUND)
74#define IWL50_RTC_DATA_SIZE (IWL50_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND) 74#define IWL50_RTC_DATA_SIZE (IWL50_RTC_DATA_UPPER_BOUND - RTC_DATA_LOWER_BOUND)
75 75
76/* EERPROM */ 76/* EEPROM */
77#define IWL_5000_EEPROM_IMG_SIZE 2048 77#define IWL_5000_EEPROM_IMG_SIZE 2048
78 78
79#define IWL50_CMD_FIFO_NUM 7 79#define IWL50_CMD_FIFO_NUM 7
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 0c9281e9f2ad..4348c7db3d1f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -94,7 +94,7 @@ static int iwl5000_apm_init(struct iwl_priv *priv)
94 iwl_set_bit(priv, CSR_GIO_CHICKEN_BITS, 94 iwl_set_bit(priv, CSR_GIO_CHICKEN_BITS,
95 CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX); 95 CSR_GIO_CHICKEN_BITS_REG_BIT_L1A_NO_L0S_RX);
96 96
97 /* Set FH wait treshold to maximum (HW error during stress W/A) */ 97 /* Set FH wait threshold to maximum (HW error during stress W/A) */
98 iwl_set_bit(priv, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL); 98 iwl_set_bit(priv, CSR_DBG_HPET_MEM_REG, CSR_DBG_HPET_MEM_REG_VAL);
99 99
100 /* enable HAP INTA to move device L1a -> L0s */ 100 /* enable HAP INTA to move device L1a -> L0s */
@@ -134,7 +134,7 @@ static int iwl5000_apm_init(struct iwl_priv *priv)
134 return ret; 134 return ret;
135} 135}
136 136
137/* FIXME: this is indentical to 4965 */ 137/* FIXME: this is identical to 4965 */
138static void iwl5000_apm_stop(struct iwl_priv *priv) 138static void iwl5000_apm_stop(struct iwl_priv *priv)
139{ 139{
140 unsigned long flags; 140 unsigned long flags;
@@ -219,7 +219,7 @@ static void iwl5000_nic_config(struct iwl_priv *priv)
219 219
220 /* L1 is enabled by BIOS */ 220 /* L1 is enabled by BIOS */
221 if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN) 221 if ((link & PCI_CFG_LINK_CTRL_VAL_L1_EN) == PCI_CFG_LINK_CTRL_VAL_L1_EN)
222 /* diable L0S disabled L1A enabled */ 222 /* disable L0S disabled L1A enabled */
223 iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED); 223 iwl_set_bit(priv, CSR_GIO_REG, CSR_GIO_REG_VAL_L0S_ENABLED);
224 else 224 else
225 /* L0S enabled L1A disabled */ 225 /* L0S enabled L1A disabled */
@@ -1093,7 +1093,7 @@ static u16 iwl5000_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)
1093 1093
1094 1094
1095/* 1095/*
1096 * Activate/Deactivat Tx DMA/FIFO channels according tx fifos mask 1096 * Activate/Deactivate Tx DMA/FIFO channels according tx fifos mask
1097 * must be called under priv->lock and mac access 1097 * must be called under priv->lock and mac access
1098 */ 1098 */
1099static void iwl5000_txq_set_sched(struct iwl_priv *priv, u32 mask) 1099static void iwl5000_txq_set_sched(struct iwl_priv *priv, u32 mask)
@@ -1311,7 +1311,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv,
1311 IWL_ERROR("TODO: Implement Tx ABORT REQUIRED!!!\n"); 1311 IWL_ERROR("TODO: Implement Tx ABORT REQUIRED!!!\n");
1312} 1312}
1313 1313
1314/* Currently 5000 is the supperset of everything */ 1314/* Currently 5000 is the superset of everything */
1315static u16 iwl5000_get_hcmd_size(u8 cmd_id, u16 len) 1315static u16 iwl5000_get_hcmd_size(u8 cmd_id, u16 len)
1316{ 1316{
1317 return len; 1317 return len;
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 6fdb2fb755b0..f5e94b65a7f6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -188,7 +188,7 @@ static void rs_dbgfs_set_mcs(struct iwl_lq_sta *lq_sta,
188 * 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54, 60 MBits 188 * 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54, 60 MBits
189 * "G" is the only table that supports CCK (the first 4 rates). 189 * "G" is the only table that supports CCK (the first 4 rates).
190 */ 190 */
191/*FIXME:RS:need to spearate tables for MIMO2/MIMO3*/ 191/*FIXME:RS:need to separate tables for MIMO2/MIMO3*/
192static s32 expected_tpt_A[IWL_RATE_COUNT] = { 192static s32 expected_tpt_A[IWL_RATE_COUNT] = {
193 0, 0, 0, 0, 40, 57, 72, 98, 121, 154, 177, 186, 186 193 0, 0, 0, 0, 40, 57, 72, 98, 121, 154, 177, 186, 186
194}; 194};
@@ -2253,7 +2253,7 @@ static void rs_rate_init(void *priv_r, struct ieee80211_supported_band *sband,
2253 lq_sta->active_mimo2_rate, 2253 lq_sta->active_mimo2_rate,
2254 lq_sta->active_mimo3_rate); 2254 lq_sta->active_mimo3_rate);
2255 2255
2256 /* These values will be overriden later */ 2256 /* These values will be overridden later */
2257 lq_sta->lq.general_params.single_stream_ant_msk = ANT_A; 2257 lq_sta->lq.general_params.single_stream_ant_msk = ANT_A;
2258 lq_sta->lq.general_params.dual_stream_ant_msk = ANT_AB; 2258 lq_sta->lq.general_params.dual_stream_ant_msk = ANT_AB;
2259 2259
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h
index bac91f1d2aa8..ccfafcfa4767 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.h
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.h
@@ -229,7 +229,7 @@ enum {
229#define IWL_MIMO2_SWITCH_SISO_C 4 229#define IWL_MIMO2_SWITCH_SISO_C 4
230#define IWL_MIMO2_SWITCH_GI 5 230#define IWL_MIMO2_SWITCH_GI 5
231 231
232/*FIXME:RS:add posible acctions for MIMO3*/ 232/*FIXME:RS:add possible actions for MIMO3*/
233 233
234#define IWL_ACTION_LIMIT 3 /* # possible actions */ 234#define IWL_ACTION_LIMIT 3 /* # possible actions */
235 235
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 7c3eb3d8f7e7..7a7caac55ff3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1484,7 +1484,7 @@ static void iwl4965_enable_interrupts(struct iwl_priv *priv)
1484/* call this function to flush any scheduled tasklet */ 1484/* call this function to flush any scheduled tasklet */
1485static inline void iwl_synchronize_irq(struct iwl_priv *priv) 1485static inline void iwl_synchronize_irq(struct iwl_priv *priv)
1486{ 1486{
1487 /* wait to make sure we flush pedding tasklet*/ 1487 /* wait to make sure we flush pending tasklet*/
1488 synchronize_irq(priv->pci_dev->irq); 1488 synchronize_irq(priv->pci_dev->irq);
1489 tasklet_kill(&priv->irq_tasklet); 1489 tasklet_kill(&priv->irq_tasklet);
1490} 1490}
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 56964eeb523e..5ab74fc0fd10 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -134,7 +134,7 @@ enum {
134 REPLY_TX_POWER_DBM_CMD = 0x98, 134 REPLY_TX_POWER_DBM_CMD = 0x98,
135 MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */ 135 MEASURE_ABORT_NOTIFICATION = 0x99, /* not used */
136 136
137 /* Bluetooth device coexistance config command */ 137 /* Bluetooth device coexistence config command */
138 REPLY_BT_CONFIG = 0x9b, 138 REPLY_BT_CONFIG = 0x9b,
139 139
140 /* Statistics */ 140 /* Statistics */
@@ -185,7 +185,7 @@ struct iwl_cmd_header {
185 u8 cmd; /* Command ID: REPLY_RXON, etc. */ 185 u8 cmd; /* Command ID: REPLY_RXON, etc. */
186 u8 flags; /* 0:5 reserved, 6 abort, 7 internal */ 186 u8 flags; /* 0:5 reserved, 6 abort, 7 internal */
187 /* 187 /*
188 * The driver sets up the sequence number to values of its chosing. 188 * The driver sets up the sequence number to values of its choosing.
189 * uCode does not use this value, but passes it back to the driver 189 * uCode does not use this value, but passes it back to the driver
190 * when sending the response to each driver-originated command, so 190 * when sending the response to each driver-originated command, so
191 * the driver can match the response to the command. Since the values 191 * the driver can match the response to the command. Since the values
@@ -347,7 +347,7 @@ struct iwl4965_tx_power_db {
347} __attribute__ ((packed)); 347} __attribute__ ((packed));
348 348
349/** 349/**
350 * Commad REPLY_TX_POWER_DBM_CMD = 0x98 350 * Command REPLY_TX_POWER_DBM_CMD = 0x98
351 * struct iwl5000_tx_power_dbm_cmd 351 * struct iwl5000_tx_power_dbm_cmd
352 */ 352 */
353#define IWL50_TX_POWER_AUTO 0x7f 353#define IWL50_TX_POWER_AUTO 0x7f
@@ -383,7 +383,7 @@ struct iwl5000_tx_power_dbm_cmd {
383 * calculating txpower settings: 383 * calculating txpower settings:
384 * 384 *
385 * 1) Power supply voltage indication. The voltage sensor outputs higher 385 * 1) Power supply voltage indication. The voltage sensor outputs higher
386 * values for lower voltage, and vice versa. 386 * values for lower voltage, and vice verse.
387 * 387 *
388 * 2) Temperature measurement parameters, for each of two channel widths 388 * 2) Temperature measurement parameters, for each of two channel widths
389 * (20 MHz and 40 MHz) supported by the radios. Temperature sensing 389 * (20 MHz and 40 MHz) supported by the radios. Temperature sensing
@@ -622,7 +622,7 @@ struct iwl4965_rxon_cmd {
622 u8 ofdm_ht_dual_stream_basic_rates; 622 u8 ofdm_ht_dual_stream_basic_rates;
623} __attribute__ ((packed)); 623} __attribute__ ((packed));
624 624
625/* 5000 HW just extend this cmmand */ 625/* 5000 HW just extend this command */
626struct iwl_rxon_cmd { 626struct iwl_rxon_cmd {
627 u8 node_addr[6]; 627 u8 node_addr[6];
628 __le16 reserved1; 628 __le16 reserved1;
@@ -1113,7 +1113,7 @@ struct iwl4965_rx_non_cfg_phy {
1113#define IWL50_OFDM_RSSI_C_BIT_POS 0 1113#define IWL50_OFDM_RSSI_C_BIT_POS 0
1114 1114
1115struct iwl5000_non_cfg_phy { 1115struct iwl5000_non_cfg_phy {
1116 __le32 non_cfg_phy[IWL50_RX_RES_PHY_CNT]; /* upto 8 phy entries */ 1116 __le32 non_cfg_phy[IWL50_RX_RES_PHY_CNT]; /* up to 8 phy entries */
1117} __attribute__ ((packed)); 1117} __attribute__ ((packed));
1118 1118
1119 1119
@@ -1169,7 +1169,7 @@ struct iwl4965_rx_mpdu_res_start {
1169 1169
1170/* REPLY_TX Tx flags field */ 1170/* REPLY_TX Tx flags field */
1171 1171
1172/* 1: Use RTS/CTS protocol or CTS-to-self if spec alows it 1172/* 1: Use RTS/CTS protocol or CTS-to-self if spec allows it
1173 * before this frame. if CTS-to-self required check 1173 * before this frame. if CTS-to-self required check
1174 * RXON_FLG_SELF_CTS_EN status. */ 1174 * RXON_FLG_SELF_CTS_EN status. */
1175#define TX_CMD_FLG_RTS_CTS_MSK __constant_cpu_to_le32(1 << 0) 1175#define TX_CMD_FLG_RTS_CTS_MSK __constant_cpu_to_le32(1 << 0)
@@ -1529,7 +1529,7 @@ struct iwl4965_tx_resp {
1529 1529
1530/* 1530/*
1531 * definitions for initial rate index field 1531 * definitions for initial rate index field
1532 * bits [3:0] inital rate index 1532 * bits [3:0] initial rate index
1533 * bits [6:4] rate table color, used for the initial rate 1533 * bits [6:4] rate table color, used for the initial rate
1534 * bit-7 invalid rate indication 1534 * bit-7 invalid rate indication
1535 * i.e. rate was not chosen from rate table 1535 * i.e. rate was not chosen from rate table
@@ -1768,7 +1768,7 @@ struct iwl_link_qual_agg_params {
1768 * match the modulation characteristics of the history set. 1768 * match the modulation characteristics of the history set.
1769 * 1769 *
1770 * When using block-ack (aggregation), all frames are transmitted at the same 1770 * When using block-ack (aggregation), all frames are transmitted at the same
1771 * rate, since there is no per-attempt acknowledgement from the destination 1771 * rate, since there is no per-attempt acknowledgment from the destination
1772 * station. The Tx response struct iwl_tx_resp indicates the Tx rate in 1772 * station. The Tx response struct iwl_tx_resp indicates the Tx rate in
1773 * rate_n_flags field. After receiving a block-ack, the driver can update 1773 * rate_n_flags field. After receiving a block-ack, the driver can update
1774 * history for the entire block all at once. 1774 * history for the entire block all at once.
@@ -1907,7 +1907,7 @@ struct iwl_link_quality_cmd {
1907 * 1907 *
1908 * 3945 and 4965 support hardware handshake with Bluetooth device on 1908 * 3945 and 4965 support hardware handshake with Bluetooth device on
1909 * same platform. Bluetooth device alerts wireless device when it will Tx; 1909 * same platform. Bluetooth device alerts wireless device when it will Tx;
1910 * wireless device can delay or kill its own Tx to accomodate. 1910 * wireless device can delay or kill its own Tx to accommodate.
1911 */ 1911 */
1912struct iwl4965_bt_cmd { 1912struct iwl4965_bt_cmd {
1913 u8 flags; 1913 u8 flags;
@@ -2069,7 +2069,7 @@ struct iwl4965_spectrum_notification {
2069 * '11' Illegal set 2069 * '11' Illegal set
2070 * 2070 *
2071 * NOTE: if sleep_interval[SLEEP_INTRVL_TABLE_SIZE-1] > DTIM period then 2071 * NOTE: if sleep_interval[SLEEP_INTRVL_TABLE_SIZE-1] > DTIM period then
2072 * ucode assume sleep over DTIM is allowed and we don't need to wakeup 2072 * ucode assume sleep over DTIM is allowed and we don't need to wake up
2073 * for every DTIM. 2073 * for every DTIM.
2074 */ 2074 */
2075#define IWL_POWER_VEC_SIZE 5 2075#define IWL_POWER_VEC_SIZE 5
@@ -3017,11 +3017,11 @@ struct iwl_wimax_coex_event_entry {
3017 3017
3018/* COEX flag masks */ 3018/* COEX flag masks */
3019 3019
3020/* Staion table is valid */ 3020/* Station table is valid */
3021#define COEX_FLAGS_STA_TABLE_VALID_MSK (0x1) 3021#define COEX_FLAGS_STA_TABLE_VALID_MSK (0x1)
3022/* UnMask wakeup src at unassociated sleep */ 3022/* UnMask wake up src at unassociated sleep */
3023#define COEX_FLAGS_UNASSOC_WA_UNMASK_MSK (0x4) 3023#define COEX_FLAGS_UNASSOC_WA_UNMASK_MSK (0x4)
3024/* UnMask wakeup src at associated sleep */ 3024/* UnMask wake up src at associated sleep */
3025#define COEX_FLAGS_ASSOC_WA_UNMASK_MSK (0x8) 3025#define COEX_FLAGS_ASSOC_WA_UNMASK_MSK (0x8)
3026/* Enable CoEx feature. */ 3026/* Enable CoEx feature. */
3027#define COEX_FLAGS_COEX_ENABLE_MSK (0x80) 3027#define COEX_FLAGS_COEX_ENABLE_MSK (0x80)
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index a7cb40b0e1f0..8eb02031e797 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -747,7 +747,7 @@ static int iwl_get_idle_rx_chain_count(struct iwl_priv *priv, int active_cnt)
747 break; 747 break;
748 case WLAN_HT_CAP_SM_PS_INVALID: 748 case WLAN_HT_CAP_SM_PS_INVALID:
749 default: 749 default:
750 IWL_ERROR("invalide mimo ps mode %d\n", 750 IWL_ERROR("invalid mimo ps mode %d\n",
751 priv->current_ht_config.sm_ps); 751 priv->current_ht_config.sm_ps);
752 WARN_ON(1); 752 WARN_ON(1);
753 idle_cnt = -1; 753 idle_cnt = -1;
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index fb95c6a9825b..10f07f6e1737 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -100,7 +100,7 @@ struct iwl_hcmd_utils_ops {
100}; 100};
101 101
102struct iwl_lib_ops { 102struct iwl_lib_ops {
103 /* set hw dependant perameters */ 103 /* set hw dependent parameters */
104 int (*set_hw_params)(struct iwl_priv *priv); 104 int (*set_hw_params)(struct iwl_priv *priv);
105 /* ucode shared memory */ 105 /* ucode shared memory */
106 int (*alloc_shared_mem)(struct iwl_priv *priv); 106 int (*alloc_shared_mem)(struct iwl_priv *priv);
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
index 2b48a4c01776..84b7772809e3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debug.h
+++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
@@ -101,13 +101,12 @@ static inline void iwl_dbgfs_unregister(struct iwl_priv *priv)
101 * 101 *
102 * To add your debug level to the list of levels seen when you perform 102 * To add your debug level to the list of levels seen when you perform
103 * 103 *
104 * % cat /proc/net/iwl/debug_level 104 * % cat /sys/class/net/wlanX/device/debug_level
105 * 105 *
106 * you simply need to add your entry to the iwl_debug_levels array. 106 * you simply need to add your entry to the iwl_debug_levels array.
107 * 107 *
108 * If you do not see debug_level in /proc/net/iwl then you do not have 108 * If you do not see debug_level in /sys/class/net/wlanX/device/debug_level
109 * CONFIG_IWLWIFI_DEBUG defined in your kernel configuration 109 * then you do not have CONFIG_IWLWIFI_DEBUG defined in your kernel config file
110 *
111 */ 110 */
112 111
113#define IWL_DL_INFO (1 << 0) 112#define IWL_DL_INFO (1 << 0)
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index f546b7edce17..b58fcdef5432 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -518,7 +518,7 @@ struct iwl_sensitivity_ranges {
518 * @sw_crypto: 0 for hw, 1 for sw 518 * @sw_crypto: 0 for hw, 1 for sw
519 * @max_xxx_size: for ucode uses 519 * @max_xxx_size: for ucode uses
520 * @ct_kill_threshold: temperature threshold 520 * @ct_kill_threshold: temperature threshold
521 * @calib_init_cfg: setup initial claibrations for the hw 521 * @calib_init_cfg: setup initial calibrations for the hw
522 * @struct iwl_sensitivity_ranges: range of sensitivity values 522 * @struct iwl_sensitivity_ranges: range of sensitivity values
523 */ 523 */
524struct iwl_hw_params { 524struct iwl_hw_params {
@@ -911,7 +911,7 @@ struct iwl_priv {
911 911
912 unsigned long status; 912 unsigned long status;
913 913
914 int last_rx_rssi; /* From Rx packet statisitics */ 914 int last_rx_rssi; /* From Rx packet statistics */
915 int last_rx_noise; /* From beacon statistics */ 915 int last_rx_noise; /* From beacon statistics */
916 916
917 /* counts mgmt, ctl, and data packets */ 917 /* counts mgmt, ctl, and data packets */
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
index 5160b4b0c0de..792a3c15f172 100644
--- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c
+++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c
@@ -291,7 +291,7 @@ int iwl_eeprom_check_version(struct iwl_priv *priv)
291 291
292 return 0; 292 return 0;
293err: 293err:
294 IWL_ERROR("Unsuported EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n", 294 IWL_ERROR("Unsupported EEPROM VER=0x%x < 0x%x CALIB=0x%x < 0x%x\n",
295 eeprom_ver, priv->cfg->eeprom_ver, 295 eeprom_ver, priv->cfg->eeprom_ver,
296 calib_ver, priv->cfg->eeprom_calib_ver); 296 calib_ver, priv->cfg->eeprom_calib_ver);
297 return -EINVAL; 297 return -EINVAL;
diff --git a/drivers/net/wireless/iwlwifi/iwl-io.h b/drivers/net/wireless/iwlwifi/iwl-io.h
index 9740fcc1805e..40e0050b7536 100644
--- a/drivers/net/wireless/iwlwifi/iwl-io.h
+++ b/drivers/net/wireless/iwlwifi/iwl-io.h
@@ -55,7 +55,7 @@
55 * _iwl_read32.) 55 * _iwl_read32.)
56 * 56 *
57 * These declarations are *extremely* useful in quickly isolating code deltas 57 * These declarations are *extremely* useful in quickly isolating code deltas
58 * which result in misconfiguring of the hardware I/O. In combination with 58 * which result in misconfiguration of the hardware I/O. In combination with
59 * git-bisect and the IO debug level you can quickly determine the specific 59 * git-bisect and the IO debug level you can quickly determine the specific
60 * commit which breaks the IO sequence to the hardware. 60 * commit which breaks the IO sequence to the hardware.
61 * 61 *
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c
index 4eee1b163cd2..ffb428a7dd6d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-led.c
+++ b/drivers/net/wireless/iwlwifi/iwl-led.c
@@ -278,7 +278,7 @@ static int iwl_get_blink_rate(struct iwl_priv *priv)
278 /* FIXME: + priv->rx_stats[2].bytes; */ 278 /* FIXME: + priv->rx_stats[2].bytes; */
279 s64 tpt = current_tpt - priv->led_tpt; 279 s64 tpt = current_tpt - priv->led_tpt;
280 280
281 if (tpt < 0) /* wrapparound */ 281 if (tpt < 0) /* wraparound */
282 tpt = -tpt; 282 tpt = -tpt;
283 283
284 IWL_DEBUG_LED("tpt %lld current_tpt %llu\n", 284 IWL_DEBUG_LED("tpt %lld current_tpt %llu\n",
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c
index 60a03d2d2d0e..07a5f60e9229 100644
--- a/drivers/net/wireless/iwlwifi/iwl-power.c
+++ b/drivers/net/wireless/iwlwifi/iwl-power.c
@@ -80,7 +80,7 @@
80#define IWL_REDUCED_POWER_TEMPERATURE 95 80#define IWL_REDUCED_POWER_TEMPERATURE 95
81 81
82/* default power management (not Tx power) table values */ 82/* default power management (not Tx power) table values */
83/* for tim 0-10 */ 83/* for TIM 0-10 */
84static struct iwl_power_vec_entry range_0[IWL_POWER_MAX] = { 84static struct iwl_power_vec_entry range_0[IWL_POWER_MAX] = {
85 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0}, 85 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0},
86 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 2, 2, 0xFF)}, 0}, 86 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 2, 2, 0xFF)}, 0},
@@ -91,7 +91,7 @@ static struct iwl_power_vec_entry range_0[IWL_POWER_MAX] = {
91}; 91};
92 92
93 93
94/* for tim = 3-10 */ 94/* for TIM = 3-10 */
95static struct iwl_power_vec_entry range_1[IWL_POWER_MAX] = { 95static struct iwl_power_vec_entry range_1[IWL_POWER_MAX] = {
96 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0}, 96 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0},
97 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 3, 4, 4)}, 0}, 97 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 3, 4, 4)}, 0},
@@ -101,7 +101,7 @@ static struct iwl_power_vec_entry range_1[IWL_POWER_MAX] = {
101 {{SLP, SLP_TOUT(25), SLP_TOUT(25), SLP_VEC(2, 4, 7, 10, 10)}, 2} 101 {{SLP, SLP_TOUT(25), SLP_TOUT(25), SLP_VEC(2, 4, 7, 10, 10)}, 2}
102}; 102};
103 103
104/* for tim > 11 */ 104/* for TIM > 11 */
105static struct iwl_power_vec_entry range_2[IWL_POWER_MAX] = { 105static struct iwl_power_vec_entry range_2[IWL_POWER_MAX] = {
106 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0}, 106 {{NOSLP, SLP_TOUT(0), SLP_TOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0},
107 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 3, 4, 0xFF)}, 0}, 107 {{SLP, SLP_TOUT(200), SLP_TOUT(500), SLP_VEC(1, 2, 3, 4, 0xFF)}, 0},
@@ -183,7 +183,7 @@ static int iwl_power_init_handle(struct iwl_priv *priv)
183 return 0; 183 return 0;
184} 184}
185 185
186/* adjust power command according to dtim period and power level*/ 186/* adjust power command according to DTIM period and power level*/
187static int iwl_update_power_command(struct iwl_priv *priv, 187static int iwl_update_power_command(struct iwl_priv *priv,
188 struct iwl_powertable_cmd *cmd, 188 struct iwl_powertable_cmd *cmd,
189 u16 mode) 189 u16 mode)
@@ -325,7 +325,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force)
325EXPORT_SYMBOL(iwl_power_update_mode); 325EXPORT_SYMBOL(iwl_power_update_mode);
326 326
327/* Allow other iwl code to disable/enable power management active 327/* Allow other iwl code to disable/enable power management active
328 * this will be usefull for rate scale to disable PM during heavy 328 * this will be useful for rate scale to disable PM during heavy
329 * Tx/Rx activities 329 * Tx/Rx activities
330 */ 330 */
331int iwl_power_disable_management(struct iwl_priv *priv, u32 ms) 331int iwl_power_disable_management(struct iwl_priv *priv, u32 ms)
@@ -352,8 +352,8 @@ int iwl_power_disable_management(struct iwl_priv *priv, u32 ms)
352EXPORT_SYMBOL(iwl_power_disable_management); 352EXPORT_SYMBOL(iwl_power_disable_management);
353 353
354/* Allow other iwl code to disable/enable power management active 354/* Allow other iwl code to disable/enable power management active
355 * this will be usefull for rate scale to disable PM during hight 355 * this will be useful for rate scale to disable PM during high
356 * valume activities 356 * volume activities
357 */ 357 */
358int iwl_power_enable_management(struct iwl_priv *priv) 358int iwl_power_enable_management(struct iwl_priv *priv)
359{ 359{
@@ -391,7 +391,7 @@ int iwl_power_set_system_mode(struct iwl_priv *priv, u16 mode)
391} 391}
392EXPORT_SYMBOL(iwl_power_set_system_mode); 392EXPORT_SYMBOL(iwl_power_set_system_mode);
393 393
394/* initilize to default */ 394/* initialize to default */
395void iwl_power_initialize(struct iwl_priv *priv) 395void iwl_power_initialize(struct iwl_priv *priv)
396{ 396{
397 397
@@ -443,7 +443,7 @@ static void iwl_bg_set_power_save(struct work_struct *work)
443 443
444 mutex_lock(&priv->mutex); 444 mutex_lock(&priv->mutex);
445 445
446 /* on starting association we disable power managment 446 /* on starting association we disable power management
447 * until association, if association failed then this 447 * until association, if association failed then this
448 * timer will expire and enable PM again. 448 * timer will expire and enable PM again.
449 */ 449 */
diff --git a/drivers/net/wireless/iwlwifi/iwl-prph.h b/drivers/net/wireless/iwlwifi/iwl-prph.h
index ee5afd48d3af..b0ffb8919d3b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-prph.h
+++ b/drivers/net/wireless/iwlwifi/iwl-prph.h
@@ -158,9 +158,9 @@
158 * 158 *
159 * 4) Point (via BSM_DRAM_*) to the "runtime" uCode data and instruction 159 * 4) Point (via BSM_DRAM_*) to the "runtime" uCode data and instruction
160 * images in host DRAM. The last register loaded must be the instruction 160 * images in host DRAM. The last register loaded must be the instruction
161 * bytecount register ("1" in MSbit tells initialization uCode to load 161 * byte count register ("1" in MSbit tells initialization uCode to load
162 * the runtime uCode): 162 * the runtime uCode):
163 * BSM_DRAM_INST_BYTECOUNT_REG = bytecount | BSM_DRAM_INST_LOAD 163 * BSM_DRAM_INST_BYTECOUNT_REG = byte count | BSM_DRAM_INST_LOAD
164 * 164 *
165 * 5) Wait for "alive" notification, then issue normal runtime commands. 165 * 5) Wait for "alive" notification, then issue normal runtime commands.
166 * 166 *
@@ -244,7 +244,7 @@
244/** 244/**
245 * Tx Scheduler 245 * Tx Scheduler
246 * 246 *
247 * The Tx Scheduler selects the next frame to be transmitted, chosing TFDs 247 * The Tx Scheduler selects the next frame to be transmitted, choosing TFDs
248 * (Transmit Frame Descriptors) from up to 16 circular Tx queues resident in 248 * (Transmit Frame Descriptors) from up to 16 circular Tx queues resident in
249 * host DRAM. It steers each frame's Tx command (which contains the frame 249 * host DRAM. It steers each frame's Tx command (which contains the frame
250 * data) into one of up to 7 prioritized Tx DMA FIFO channels within the 250 * data) into one of up to 7 prioritized Tx DMA FIFO channels within the
diff --git a/drivers/net/wireless/iwlwifi/iwl-rfkill.c b/drivers/net/wireless/iwlwifi/iwl-rfkill.c
index 5d642298f04c..618841a53b90 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rfkill.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rfkill.c
@@ -64,7 +64,7 @@ static int iwl_rfkill_soft_rf_kill(void *data, enum rfkill_state state)
64 iwl_radio_kill_sw_disable_radio(priv); 64 iwl_radio_kill_sw_disable_radio(priv);
65 break; 65 break;
66 default: 66 default:
67 IWL_WARNING("we recieved unexpected RFKILL state %d\n", state); 67 IWL_WARNING("we received unexpected RFKILL state %d\n", state);
68 break; 68 break;
69 } 69 }
70out_unlock: 70out_unlock:
@@ -83,7 +83,7 @@ int iwl_rfkill_init(struct iwl_priv *priv)
83 IWL_DEBUG_RF_KILL("Initializing RFKILL.\n"); 83 IWL_DEBUG_RF_KILL("Initializing RFKILL.\n");
84 priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN); 84 priv->rfkill = rfkill_allocate(device, RFKILL_TYPE_WLAN);
85 if (!priv->rfkill) { 85 if (!priv->rfkill) {
86 IWL_ERROR("Unable to allocate rfkill device.\n"); 86 IWL_ERROR("Unable to allocate RFKILL device.\n");
87 ret = -ENOMEM; 87 ret = -ENOMEM;
88 goto error; 88 goto error;
89 } 89 }
@@ -99,7 +99,7 @@ int iwl_rfkill_init(struct iwl_priv *priv)
99 99
100 ret = rfkill_register(priv->rfkill); 100 ret = rfkill_register(priv->rfkill);
101 if (ret) { 101 if (ret) {
102 IWL_ERROR("Unable to register rfkill: %d\n", ret); 102 IWL_ERROR("Unable to register RFKILL: %d\n", ret);
103 goto free_rfkill; 103 goto free_rfkill;
104 } 104 }
105 105
@@ -127,7 +127,7 @@ void iwl_rfkill_unregister(struct iwl_priv *priv)
127} 127}
128EXPORT_SYMBOL(iwl_rfkill_unregister); 128EXPORT_SYMBOL(iwl_rfkill_unregister);
129 129
130/* set rf-kill to the right state. */ 130/* set RFKILL to the right state. */
131void iwl_rfkill_set_hw_state(struct iwl_priv *priv) 131void iwl_rfkill_set_hw_state(struct iwl_priv *priv)
132{ 132{
133 if (!priv->rfkill) 133 if (!priv->rfkill)
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c
index 7cde9d76ff5d..b86f9586acde 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rx.c
@@ -407,7 +407,7 @@ int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq)
407 (priv->shared_phys + priv->rb_closed_offset) >> 4); 407 (priv->shared_phys + priv->rb_closed_offset) >> 4);
408 408
409 /* Enable Rx DMA 409 /* Enable Rx DMA
410 * FH_RCSR_CHNL0_RX_IGNORE_RXF_EMPTY is set becuase of HW bug in 410 * FH_RCSR_CHNL0_RX_IGNORE_RXF_EMPTY is set because of HW bug in
411 * the credit mechanism in 5000 HW RX FIFO 411 * the credit mechanism in 5000 HW RX FIFO
412 * Direct rx interrupts to hosts 412 * Direct rx interrupts to hosts
413 * Rx buffer size 4 or 8k 413 * Rx buffer size 4 or 8k
@@ -1149,7 +1149,7 @@ void iwl_rx_reply_rx(struct iwl_priv *priv,
1149 priv->last_rx_noise = IWL_NOISE_MEAS_NOT_AVAILABLE; 1149 priv->last_rx_noise = IWL_NOISE_MEAS_NOT_AVAILABLE;
1150 1150
1151 /* Set "1" to report good data frames in groups of 100 */ 1151 /* Set "1" to report good data frames in groups of 100 */
1152 /* FIXME: need to optimze the call: */ 1152 /* FIXME: need to optimize the call: */
1153 iwl_dbg_report_frame(priv, pkt, header, 1); 1153 iwl_dbg_report_frame(priv, pkt, header, 1);
1154 1154
1155 IWL_DEBUG_STATS_LIMIT("Rssi %d, noise %d, qual %d, TSF %llu\n", 1155 IWL_DEBUG_STATS_LIMIT("Rssi %d, noise %d, qual %d, TSF %llu\n",
@@ -1160,12 +1160,12 @@ void iwl_rx_reply_rx(struct iwl_priv *priv,
1160 * "antenna number" 1160 * "antenna number"
1161 * 1161 *
1162 * It seems that the antenna field in the phy flags value 1162 * It seems that the antenna field in the phy flags value
1163 * is actually a bitfield. This is undefined by radiotap, 1163 * is actually a bit field. This is undefined by radiotap,
1164 * it wants an actual antenna number but I always get "7" 1164 * it wants an actual antenna number but I always get "7"
1165 * for most legacy frames I receive indicating that the 1165 * for most legacy frames I receive indicating that the
1166 * same frame was received on all three RX chains. 1166 * same frame was received on all three RX chains.
1167 * 1167 *
1168 * I think this field should be removed in favour of a 1168 * I think this field should be removed in favor of a
1169 * new 802.11n radiotap field "RX chains" that is defined 1169 * new 802.11n radiotap field "RX chains" that is defined
1170 * as a bitmask. 1170 * as a bitmask.
1171 */ 1171 */
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index b0abf891516f..6c5654f70a06 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -654,7 +654,7 @@ static void iwl_bg_request_scan(struct work_struct *data)
654 goto done; 654 goto done;
655 } 655 }
656 656
657 /* Make sure the scan wasn't cancelled before this queued work 657 /* Make sure the scan wasn't canceled before this queued work
658 * was given the chance to run... */ 658 * was given the chance to run... */
659 if (!test_bit(STATUS_SCANNING, &priv->status)) 659 if (!test_bit(STATUS_SCANNING, &priv->status))
660 goto done; 660 goto done;
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index dde0850f6e27..bfc009ce8a94 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -693,7 +693,7 @@ static int iwl_set_tkip_dynamic_key_info(struct iwl_priv *priv,
693 /* else, we are overriding an existing key => no need to allocated room 693 /* else, we are overriding an existing key => no need to allocated room
694 * in uCode. */ 694 * in uCode. */
695 695
696 /* This copy is acutally not needed: we get the key with each TX */ 696 /* This copy is actually not needed: we get the key with each TX */
697 memcpy(priv->stations[sta_id].keyinfo.key, keyconf->key, 16); 697 memcpy(priv->stations[sta_id].keyinfo.key, keyconf->key, 16);
698 698
699 memcpy(priv->stations[sta_id].sta.key.key, keyconf->key, 16); 699 memcpy(priv->stations[sta_id].sta.key.key, keyconf->key, 16);
@@ -788,7 +788,7 @@ static void iwl_dump_lq_cmd(struct iwl_priv *priv,
788{ 788{
789 int i; 789 int i;
790 IWL_DEBUG_RATE("lq station id 0x%x\n", lq->sta_id); 790 IWL_DEBUG_RATE("lq station id 0x%x\n", lq->sta_id);
791 IWL_DEBUG_RATE("lq dta 0x%X 0x%X\n", 791 IWL_DEBUG_RATE("lq ant 0x%X 0x%X\n",
792 lq->general_params.single_stream_ant_msk, 792 lq->general_params.single_stream_ant_msk,
793 lq->general_params.dual_stream_ant_msk); 793 lq->general_params.dual_stream_ant_msk);
794 794
@@ -890,7 +890,7 @@ static void iwl_sta_init_lq(struct iwl_priv *priv, const u8 *addr, int is_ap)
890 * iwl_rxon_add_station - add station into station table. 890 * iwl_rxon_add_station - add station into station table.
891 * 891 *
892 * there is only one AP station with id= IWL_AP_ID 892 * there is only one AP station with id= IWL_AP_ID
893 * NOTE: mutex must be held before calling this fnction 893 * NOTE: mutex must be held before calling this function
894 */ 894 */
895int iwl_rxon_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap) 895int iwl_rxon_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap)
896{ 896{
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c
index cfa78260c594..6008c0cce214 100644
--- a/drivers/net/wireless/iwlwifi/iwl-tx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-tx.c
@@ -524,7 +524,7 @@ EXPORT_SYMBOL(iwl_hw_txq_ctx_free);
524 524
525/** 525/**
526 * iwl_txq_ctx_reset - Reset TX queue context 526 * iwl_txq_ctx_reset - Reset TX queue context
527 * Destroys all DMA structures and initialise them again 527 * Destroys all DMA structures and initialize them again
528 * 528 *
529 * @param priv 529 * @param priv
530 * @return error code 530 * @return error code
@@ -764,7 +764,7 @@ static void iwl_tx_cmd_build_hwcrypto(struct iwl_priv *priv,
764 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); 764 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen);
765 if (info->flags & IEEE80211_TX_CTL_AMPDU) 765 if (info->flags & IEEE80211_TX_CTL_AMPDU)
766 tx_cmd->tx_flags |= TX_CMD_FLG_AGG_CCMP_MSK; 766 tx_cmd->tx_flags |= TX_CMD_FLG_AGG_CCMP_MSK;
767 IWL_DEBUG_TX("tx_cmd with aes hwcrypto\n"); 767 IWL_DEBUG_TX("tx_cmd with AES hwcrypto\n");
768 break; 768 break;
769 769
770 case ALG_TKIP: 770 case ALG_TKIP:
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 8009094503e4..a4d92471363e 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -1805,7 +1805,7 @@ static void iwl3945_activate_qos(struct iwl3945_priv *priv, u8 force)
1805 spin_unlock_irqrestore(&priv->lock, flags); 1805 spin_unlock_irqrestore(&priv->lock, flags);
1806 1806
1807 if (force || iwl3945_is_associated(priv)) { 1807 if (force || iwl3945_is_associated(priv)) {
1808 IWL_DEBUG_QOS("send QoS cmd with Qos active %d \n", 1808 IWL_DEBUG_QOS("send QoS cmd with QoS active %d \n",
1809 priv->qos_data.qos_active); 1809 priv->qos_data.qos_active);
1810 1810
1811 iwl3945_send_qos_params_command(priv, 1811 iwl3945_send_qos_params_command(priv,
@@ -1829,7 +1829,7 @@ static void iwl3945_activate_qos(struct iwl3945_priv *priv, u8 force)
1829 1829
1830 1830
1831/* default power management (not Tx power) table values */ 1831/* default power management (not Tx power) table values */
1832/* for tim 0-10 */ 1832/* for TIM 0-10 */
1833static struct iwl3945_power_vec_entry range_0[IWL_POWER_AC] = { 1833static struct iwl3945_power_vec_entry range_0[IWL_POWER_AC] = {
1834 {{NOSLP, SLP_TIMEOUT(0), SLP_TIMEOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0}, 1834 {{NOSLP, SLP_TIMEOUT(0), SLP_TIMEOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0},
1835 {{SLP, SLP_TIMEOUT(200), SLP_TIMEOUT(500), SLP_VEC(1, 2, 3, 4, 4)}, 0}, 1835 {{SLP, SLP_TIMEOUT(200), SLP_TIMEOUT(500), SLP_VEC(1, 2, 3, 4, 4)}, 0},
@@ -1839,7 +1839,7 @@ static struct iwl3945_power_vec_entry range_0[IWL_POWER_AC] = {
1839 {{SLP, SLP_TIMEOUT(25), SLP_TIMEOUT(25), SLP_VEC(4, 7, 10, 10, 10)}, 1} 1839 {{SLP, SLP_TIMEOUT(25), SLP_TIMEOUT(25), SLP_VEC(4, 7, 10, 10, 10)}, 1}
1840}; 1840};
1841 1841
1842/* for tim > 10 */ 1842/* for TIM > 10 */
1843static struct iwl3945_power_vec_entry range_1[IWL_POWER_AC] = { 1843static struct iwl3945_power_vec_entry range_1[IWL_POWER_AC] = {
1844 {{NOSLP, SLP_TIMEOUT(0), SLP_TIMEOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0}, 1844 {{NOSLP, SLP_TIMEOUT(0), SLP_TIMEOUT(0), SLP_VEC(0, 0, 0, 0, 0)}, 0},
1845 {{SLP, SLP_TIMEOUT(200), SLP_TIMEOUT(500), 1845 {{SLP, SLP_TIMEOUT(200), SLP_TIMEOUT(500),
@@ -2282,7 +2282,7 @@ static int iwl3945_set_mode(struct iwl3945_priv *priv, int mode)
2282 2282
2283 iwl3945_clear_stations_table(priv); 2283 iwl3945_clear_stations_table(priv);
2284 2284
2285 /* dont commit rxon if rf-kill is on*/ 2285 /* don't commit rxon if rf-kill is on*/
2286 if (!iwl3945_is_ready_rf(priv)) 2286 if (!iwl3945_is_ready_rf(priv))
2287 return -EAGAIN; 2287 return -EAGAIN;
2288 2288
@@ -2311,7 +2311,7 @@ static void iwl3945_build_tx_cmd_hwcrypto(struct iwl3945_priv *priv,
2311 case ALG_CCMP: 2311 case ALG_CCMP:
2312 cmd->cmd.tx.sec_ctl = TX_CMD_SEC_CCM; 2312 cmd->cmd.tx.sec_ctl = TX_CMD_SEC_CCM;
2313 memcpy(cmd->cmd.tx.key, keyinfo->key, keyinfo->keylen); 2313 memcpy(cmd->cmd.tx.key, keyinfo->key, keyinfo->keylen);
2314 IWL_DEBUG_TX("tx_cmd with aes hwcrypto\n"); 2314 IWL_DEBUG_TX("tx_cmd with AES hwcrypto\n");
2315 break; 2315 break;
2316 2316
2317 case ALG_TKIP: 2317 case ALG_TKIP:
@@ -4002,7 +4002,7 @@ static void iwl3945_enable_interrupts(struct iwl3945_priv *priv)
4002/* call this function to flush any scheduled tasklet */ 4002/* call this function to flush any scheduled tasklet */
4003static inline void iwl_synchronize_irq(struct iwl3945_priv *priv) 4003static inline void iwl_synchronize_irq(struct iwl3945_priv *priv)
4004{ 4004{
4005 /* wait to make sure we flush pedding tasklet*/ 4005 /* wait to make sure we flush pending tasklet*/
4006 synchronize_irq(priv->pci_dev->irq); 4006 synchronize_irq(priv->pci_dev->irq);
4007 tasklet_kill(&priv->irq_tasklet); 4007 tasklet_kill(&priv->irq_tasklet);
4008} 4008}
@@ -5559,7 +5559,7 @@ static int iwl3945_set_ucode_ptrs(struct iwl3945_priv *priv)
5559 iwl3945_write_prph(priv, BSM_DRAM_DATA_BYTECOUNT_REG, 5559 iwl3945_write_prph(priv, BSM_DRAM_DATA_BYTECOUNT_REG,
5560 priv->ucode_data.len); 5560 priv->ucode_data.len);
5561 5561
5562 /* Inst bytecount must be last to set up, bit 31 signals uCode 5562 /* Inst byte count must be last to set up, bit 31 signals uCode
5563 * that all new ptr/size info is in place */ 5563 * that all new ptr/size info is in place */
5564 iwl3945_write_prph(priv, BSM_DRAM_INST_BYTECOUNT_REG, 5564 iwl3945_write_prph(priv, BSM_DRAM_INST_BYTECOUNT_REG,
5565 priv->ucode_code.len | BSM_DRAM_INST_LOAD); 5565 priv->ucode_code.len | BSM_DRAM_INST_LOAD);
@@ -5651,7 +5651,7 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv)
5651 5651
5652 rc = iwl3945_grab_nic_access(priv); 5652 rc = iwl3945_grab_nic_access(priv);
5653 if (rc) { 5653 if (rc) {
5654 IWL_WARNING("Can not read rfkill status from adapter\n"); 5654 IWL_WARNING("Can not read RFKILL status from adapter\n");
5655 return; 5655 return;
5656 } 5656 }
5657 5657
@@ -5661,7 +5661,7 @@ static void iwl3945_alive_start(struct iwl3945_priv *priv)
5661 5661
5662 if (rfkill & 0x1) { 5662 if (rfkill & 0x1) {
5663 clear_bit(STATUS_RF_KILL_HW, &priv->status); 5663 clear_bit(STATUS_RF_KILL_HW, &priv->status);
5664 /* if rfkill is not on, then wait for thermal 5664 /* if RFKILL is not on, then wait for thermal
5665 * sensor in adapter to kick in */ 5665 * sensor in adapter to kick in */
5666 while (iwl3945_hw_get_temperature(priv) == 0) { 5666 while (iwl3945_hw_get_temperature(priv) == 0) {
5667 thermal_spin++; 5667 thermal_spin++;
@@ -5855,7 +5855,7 @@ static int __iwl3945_up(struct iwl3945_priv *priv)
5855 } 5855 }
5856 5856
5857 if (!priv->ucode_data_backup.v_addr || !priv->ucode_data.v_addr) { 5857 if (!priv->ucode_data_backup.v_addr || !priv->ucode_data.v_addr) {
5858 IWL_ERROR("ucode not available for device bringup\n"); 5858 IWL_ERROR("ucode not available for device bring up\n");
5859 return -EIO; 5859 return -EIO;
5860 } 5860 }
5861 5861
@@ -6065,7 +6065,7 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
6065 goto done; 6065 goto done;
6066 } 6066 }
6067 6067
6068 /* Make sure the scan wasn't cancelled before this queued work 6068 /* Make sure the scan wasn't canceled before this queued work
6069 * was given the chance to run... */ 6069 * was given the chance to run... */
6070 if (!test_bit(STATUS_SCANNING, &priv->status)) 6070 if (!test_bit(STATUS_SCANNING, &priv->status))
6071 goto done; 6071 goto done;
@@ -7728,7 +7728,7 @@ static DEVICE_ATTR(dump_events, S_IWUSR, NULL, dump_event_log);
7728 7728
7729/***************************************************************************** 7729/*****************************************************************************
7730 * 7730 *
7731 * driver setup and teardown 7731 * driver setup and tear down
7732 * 7732 *
7733 *****************************************************************************/ 7733 *****************************************************************************/
7734 7734
@@ -8157,7 +8157,7 @@ static int iwl3945_rfkill_soft_rf_kill(void *data, enum rfkill_state state)
8157 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) 8157 if (test_bit(STATUS_EXIT_PENDING, &priv->status))
8158 return 0; 8158 return 0;
8159 8159
8160 IWL_DEBUG_RF_KILL("we recieved soft RFKILL set to state %d\n", state); 8160 IWL_DEBUG_RF_KILL("we received soft RFKILL set to state %d\n", state);
8161 mutex_lock(&priv->mutex); 8161 mutex_lock(&priv->mutex);
8162 8162
8163 switch (state) { 8163 switch (state) {
@@ -8172,7 +8172,7 @@ static int iwl3945_rfkill_soft_rf_kill(void *data, enum rfkill_state state)
8172 iwl3945_radio_kill_sw(priv, 1); 8172 iwl3945_radio_kill_sw(priv, 1);
8173 break; 8173 break;
8174 default: 8174 default:
8175 IWL_WARNING("we recieved unexpected RFKILL state %d\n", state); 8175 IWL_WARNING("we received unexpected RFKILL state %d\n", state);
8176 break; 8176 break;
8177 } 8177 }
8178out_unlock: 8178out_unlock: