aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlegacy/3945-debug.c6
-rw-r--r--drivers/net/wireless/iwlegacy/3945-mac.c6
-rw-r--r--drivers/net/wireless/iwlegacy/3945.c2
-rw-r--r--drivers/net/wireless/iwlegacy/4965-calib.c2
-rw-r--r--drivers/net/wireless/iwlegacy/4965-debug.c6
-rw-r--r--drivers/net/wireless/iwlegacy/4965-mac.c18
-rw-r--r--drivers/net/wireless/iwlegacy/4965.c4
-rw-r--r--drivers/net/wireless/iwlegacy/4965.h4
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-commands.h38
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-core.c4
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-core.h2
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-debugfs.c4
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-hcmd.c4
13 files changed, 50 insertions, 50 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-debug.c b/drivers/net/wireless/iwlegacy/3945-debug.c
index 9c837c3c4f04..fc2d651b43a3 100644
--- a/drivers/net/wireless/iwlegacy/3945-debug.c
+++ b/drivers/net/wireless/iwlegacy/3945-debug.c
@@ -37,16 +37,16 @@ static int il3945_stats_flag(struct il_priv *il, char *buf, int bufsz)
37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", 37 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n",
38 le32_to_cpu(il->_3945.stats.flag)); 38 le32_to_cpu(il->_3945.stats.flag));
39 if (le32_to_cpu(il->_3945.stats.flag) & 39 if (le32_to_cpu(il->_3945.stats.flag) &
40 UCODE_STATISTICS_CLEAR_MSK) 40 UCODE_STATS_CLEAR_MSK)
41 p += scnprintf(buf + p, bufsz - p, 41 p += scnprintf(buf + p, bufsz - p,
42 "\tStatistics have been cleared\n"); 42 "\tStatistics have been cleared\n");
43 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", 43 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
44 (le32_to_cpu(il->_3945.stats.flag) & 44 (le32_to_cpu(il->_3945.stats.flag) &
45 UCODE_STATISTICS_FREQUENCY_MSK) 45 UCODE_STATS_FREQUENCY_MSK)
46 ? "2.4 GHz" : "5.2 GHz"); 46 ? "2.4 GHz" : "5.2 GHz");
47 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", 47 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
48 (le32_to_cpu(il->_3945.stats.flag) & 48 (le32_to_cpu(il->_3945.stats.flag) &
49 UCODE_STATISTICS_NARROW_BAND_MSK) 49 UCODE_STATS_NARROW_BAND_MSK)
50 ? "enabled" : "disabled"); 50 ? "enabled" : "disabled");
51 return p; 51 return p;
52} 52}
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c
index f69211ee5fe7..2ff807515212 100644
--- a/drivers/net/wireless/iwlegacy/3945-mac.c
+++ b/drivers/net/wireless/iwlegacy/3945-mac.c
@@ -869,8 +869,8 @@ static void il3945_setup_rx_handlers(struct il_priv *il)
869 * stats request from the host as well as for the periodic 869 * stats request from the host as well as for the periodic
870 * stats notifications (after received beacons) from the uCode. 870 * stats notifications (after received beacons) from the uCode.
871 */ 871 */
872 il->rx_handlers[REPLY_STATISTICS_CMD] = il3945_reply_stats; 872 il->rx_handlers[REPLY_STATS_CMD] = il3945_reply_stats;
873 il->rx_handlers[STATISTICS_NOTIFICATION] = il3945_hw_rx_stats; 873 il->rx_handlers[STATS_NOTIFICATION] = il3945_hw_rx_stats;
874 874
875 il_setup_rx_scan_handlers(il); 875 il_setup_rx_scan_handlers(il);
876 il->rx_handlers[CARD_STATE_NOTIFICATION] = il3945_rx_card_state_notif; 876 il->rx_handlers[CARD_STATE_NOTIFICATION] = il3945_rx_card_state_notif;
@@ -1253,7 +1253,7 @@ static void il3945_rx_handle(struct il_priv *il)
1253 * Ucode should set SEQ_RX_FRAME bit if ucode-originated, 1253 * Ucode should set SEQ_RX_FRAME bit if ucode-originated,
1254 * but apparently a few don't get set; catch them here. */ 1254 * but apparently a few don't get set; catch them here. */
1255 reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME) && 1255 reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME) &&
1256 pkt->hdr.cmd != STATISTICS_NOTIFICATION && 1256 pkt->hdr.cmd != STATS_NOTIFICATION &&
1257 pkt->hdr.cmd != REPLY_TX; 1257 pkt->hdr.cmd != REPLY_TX;
1258 1258
1259 /* Based on type of command response or notification, 1259 /* Based on type of command response or notification,
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c
index 8ebd576dfe62..82534a20ee8e 100644
--- a/drivers/net/wireless/iwlegacy/3945.c
+++ b/drivers/net/wireless/iwlegacy/3945.c
@@ -432,7 +432,7 @@ void il3945_reply_stats(struct il_priv *il,
432 struct il_rx_pkt *pkt = rxb_addr(rxb); 432 struct il_rx_pkt *pkt = rxb_addr(rxb);
433 __le32 *flag = (__le32 *)&pkt->u.raw; 433 __le32 *flag = (__le32 *)&pkt->u.raw;
434 434
435 if (le32_to_cpu(*flag) & UCODE_STATISTICS_CLEAR_MSK) { 435 if (le32_to_cpu(*flag) & UCODE_STATS_CLEAR_MSK) {
436#ifdef CONFIG_IWLEGACY_DEBUGFS 436#ifdef CONFIG_IWLEGACY_DEBUGFS
437 memset(&il->_3945.accum_stats, 0, 437 memset(&il->_3945.accum_stats, 0,
438 sizeof(struct il3945_notif_stats)); 438 sizeof(struct il3945_notif_stats));
diff --git a/drivers/net/wireless/iwlegacy/4965-calib.c b/drivers/net/wireless/iwlegacy/4965-calib.c
index 1d0502ecb41d..cd61050160ac 100644
--- a/drivers/net/wireless/iwlegacy/4965-calib.c
+++ b/drivers/net/wireless/iwlegacy/4965-calib.c
@@ -853,7 +853,7 @@ void il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp)
853 853
854 stat_band24 = !!(((struct il_notif_stats *) 854 stat_band24 = !!(((struct il_notif_stats *)
855 stat_resp)->flag & 855 stat_resp)->flag &
856 STATISTICS_REPLY_FLG_BAND_24G_MSK); 856 STATS_REPLY_FLG_BAND_24G_MSK);
857 stat_chnum = le32_to_cpu(((struct il_notif_stats *) 857 stat_chnum = le32_to_cpu(((struct il_notif_stats *)
858 stat_resp)->flag) >> 16; 858 stat_resp)->flag) >> 16;
859 859
diff --git a/drivers/net/wireless/iwlegacy/4965-debug.c b/drivers/net/wireless/iwlegacy/4965-debug.c
index 825d0aa707e0..ad9c6d0a560e 100644
--- a/drivers/net/wireless/iwlegacy/4965-debug.c
+++ b/drivers/net/wireless/iwlegacy/4965-debug.c
@@ -42,14 +42,14 @@ static int il4965_stats_flag(struct il_priv *il, char *buf, int bufsz)
42 flag = le32_to_cpu(il->_4965.stats.flag); 42 flag = le32_to_cpu(il->_4965.stats.flag);
43 43
44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag); 44 p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag);
45 if (flag & UCODE_STATISTICS_CLEAR_MSK) 45 if (flag & UCODE_STATS_CLEAR_MSK)
46 p += scnprintf(buf + p, bufsz - p, 46 p += scnprintf(buf + p, bufsz - p,
47 "\tStatistics have been cleared\n"); 47 "\tStatistics have been cleared\n");
48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", 48 p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
49 (flag & UCODE_STATISTICS_FREQUENCY_MSK) 49 (flag & UCODE_STATS_FREQUENCY_MSK)
50 ? "2.4 GHz" : "5.2 GHz"); 50 ? "2.4 GHz" : "5.2 GHz");
51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", 51 p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
52 (flag & UCODE_STATISTICS_NARROW_BAND_MSK) 52 (flag & UCODE_STATS_NARROW_BAND_MSK)
53 ? "enabled" : "disabled"); 53 ? "enabled" : "disabled");
54 54
55 return p; 55 return p;
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c
index c4198bd42889..c3f8137642c3 100644
--- a/drivers/net/wireless/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/iwlegacy/4965-mac.c
@@ -1367,9 +1367,9 @@ void il4965_rx_stats(struct il_priv *il,
1367 change = ((il->_4965.stats.general.common.temperature != 1367 change = ((il->_4965.stats.general.common.temperature !=
1368 pkt->u.stats.general.common.temperature) || 1368 pkt->u.stats.general.common.temperature) ||
1369 ((il->_4965.stats.flag & 1369 ((il->_4965.stats.flag &
1370 STATISTICS_REPLY_FLG_HT40_MODE_MSK) != 1370 STATS_REPLY_FLG_HT40_MODE_MSK) !=
1371 (pkt->u.stats.flag & 1371 (pkt->u.stats.flag &
1372 STATISTICS_REPLY_FLG_HT40_MODE_MSK))); 1372 STATS_REPLY_FLG_HT40_MODE_MSK)));
1373#ifdef CONFIG_IWLEGACY_DEBUGFS 1373#ifdef CONFIG_IWLEGACY_DEBUGFS
1374 il4965_accumulative_stats(il, (__le32 *)&pkt->u.stats); 1374 il4965_accumulative_stats(il, (__le32 *)&pkt->u.stats);
1375#endif 1375#endif
@@ -1378,7 +1378,7 @@ void il4965_rx_stats(struct il_priv *il,
1378 memcpy(&il->_4965.stats, &pkt->u.stats, 1378 memcpy(&il->_4965.stats, &pkt->u.stats,
1379 sizeof(il->_4965.stats)); 1379 sizeof(il->_4965.stats));
1380 1380
1381 set_bit(S_STATISTICS, &il->status); 1381 set_bit(S_STATS, &il->status);
1382 1382
1383 /* Reschedule the stats timer to occur in 1383 /* Reschedule the stats timer to occur in
1384 * REG_RECALIB_PERIOD seconds to ensure we get a 1384 * REG_RECALIB_PERIOD seconds to ensure we get a
@@ -1388,7 +1388,7 @@ void il4965_rx_stats(struct il_priv *il,
1388 msecs_to_jiffies(REG_RECALIB_PERIOD * 1000)); 1388 msecs_to_jiffies(REG_RECALIB_PERIOD * 1000));
1389 1389
1390 if (unlikely(!test_bit(S_SCANNING, &il->status)) && 1390 if (unlikely(!test_bit(S_SCANNING, &il->status)) &&
1391 (pkt->hdr.cmd == STATISTICS_NOTIFICATION)) { 1391 (pkt->hdr.cmd == STATS_NOTIFICATION)) {
1392 il4965_rx_calc_noise(il); 1392 il4965_rx_calc_noise(il);
1393 queue_work(il->workqueue, &il->run_time_calib_work); 1393 queue_work(il->workqueue, &il->run_time_calib_work);
1394 } 1394 }
@@ -1401,7 +1401,7 @@ void il4965_reply_stats(struct il_priv *il,
1401{ 1401{
1402 struct il_rx_pkt *pkt = rxb_addr(rxb); 1402 struct il_rx_pkt *pkt = rxb_addr(rxb);
1403 1403
1404 if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) { 1404 if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATS_CLEAR_MSK) {
1405#ifdef CONFIG_IWLEGACY_DEBUGFS 1405#ifdef CONFIG_IWLEGACY_DEBUGFS
1406 memset(&il->_4965.accum_stats, 0, 1406 memset(&il->_4965.accum_stats, 0,
1407 sizeof(struct il_notif_stats)); 1407 sizeof(struct il_notif_stats));
@@ -3801,7 +3801,7 @@ static void il4965_rx_reply_alive(struct il_priv *il,
3801 * This callback is provided in order to send a stats request. 3801 * This callback is provided in order to send a stats request.
3802 * 3802 *
3803 * This timer function is continually reset to execute within 3803 * This timer function is continually reset to execute within
3804 * REG_RECALIB_PERIOD seconds since the last STATISTICS_NOTIFICATION 3804 * REG_RECALIB_PERIOD seconds since the last STATS_NOTIFICATION
3805 * was received. We need to ensure we receive the stats in order 3805 * was received. We need to ensure we receive the stats in order
3806 * to update the temperature used for calibrating the TXPOWER. 3806 * to update the temperature used for calibrating the TXPOWER.
3807 */ 3807 */
@@ -3936,8 +3936,8 @@ static void il4965_setup_rx_handlers(struct il_priv *il)
3936 * stats request from the host as well as for the periodic 3936 * stats request from the host as well as for the periodic
3937 * stats notifications (after received beacons) from the uCode. 3937 * stats notifications (after received beacons) from the uCode.
3938 */ 3938 */
3939 il->rx_handlers[REPLY_STATISTICS_CMD] = il4965_reply_stats; 3939 il->rx_handlers[REPLY_STATS_CMD] = il4965_reply_stats;
3940 il->rx_handlers[STATISTICS_NOTIFICATION] = il4965_rx_stats; 3940 il->rx_handlers[STATS_NOTIFICATION] = il4965_rx_stats;
3941 3941
3942 il_setup_rx_scan_handlers(il); 3942 il_setup_rx_scan_handlers(il);
3943 3943
@@ -4023,7 +4023,7 @@ void il4965_rx_handle(struct il_priv *il)
4023 (pkt->hdr.cmd != REPLY_RX) && 4023 (pkt->hdr.cmd != REPLY_RX) &&
4024 (pkt->hdr.cmd != REPLY_RX_MPDU_CMD) && 4024 (pkt->hdr.cmd != REPLY_RX_MPDU_CMD) &&
4025 (pkt->hdr.cmd != REPLY_COMPRESSED_BA) && 4025 (pkt->hdr.cmd != REPLY_COMPRESSED_BA) &&
4026 (pkt->hdr.cmd != STATISTICS_NOTIFICATION) && 4026 (pkt->hdr.cmd != STATS_NOTIFICATION) &&
4027 (pkt->hdr.cmd != REPLY_TX); 4027 (pkt->hdr.cmd != REPLY_TX);
4028 4028
4029 /* Based on type of command response or notification, 4029 /* Based on type of command response or notification,
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c
index 1efe824963a8..361a1ca39896 100644
--- a/drivers/net/wireless/iwlegacy/4965.c
+++ b/drivers/net/wireless/iwlegacy/4965.c
@@ -1675,7 +1675,7 @@ static int il4965_hw_get_temperature(struct il_priv *il)
1675 1675
1676 if (test_bit(S_TEMPERATURE, &il->status) && 1676 if (test_bit(S_TEMPERATURE, &il->status) &&
1677 (il->_4965.stats.flag & 1677 (il->_4965.stats.flag &
1678 STATISTICS_REPLY_FLG_HT40_MODE_MSK)) { 1678 STATS_REPLY_FLG_HT40_MODE_MSK)) {
1679 D_TEMP("Running HT40 temperature calibration\n"); 1679 D_TEMP("Running HT40 temperature calibration\n");
1680 R1 = (s32)le32_to_cpu(il->card_alive_init.therm_r1[1]); 1680 R1 = (s32)le32_to_cpu(il->card_alive_init.therm_r1[1]);
1681 R2 = (s32)le32_to_cpu(il->card_alive_init.therm_r2[1]); 1681 R2 = (s32)le32_to_cpu(il->card_alive_init.therm_r2[1]);
@@ -1737,7 +1737,7 @@ static int il4965_is_temp_calib_needed(struct il_priv *il)
1737{ 1737{
1738 int temp_diff; 1738 int temp_diff;
1739 1739
1740 if (!test_bit(S_STATISTICS, &il->status)) { 1740 if (!test_bit(S_STATS, &il->status)) {
1741 D_TEMP("Temperature not updated -- no stats.\n"); 1741 D_TEMP("Temperature not updated -- no stats.\n");
1742 return 0; 1742 return 0;
1743 } 1743 }
diff --git a/drivers/net/wireless/iwlegacy/4965.h b/drivers/net/wireless/iwlegacy/4965.h
index b1a01c9bbbc8..85c3a49d7e14 100644
--- a/drivers/net/wireless/iwlegacy/4965.h
+++ b/drivers/net/wireless/iwlegacy/4965.h
@@ -278,8 +278,8 @@ static inline int il4965_hw_valid_rtc_data_addr(u32 addr)
278 * uCode provides all 4 values to the driver via the "initialize alive" 278 * uCode provides all 4 values to the driver via the "initialize alive"
279 * notification (see struct il4965_init_alive_resp). After the runtime uCode 279 * notification (see struct il4965_init_alive_resp). After the runtime uCode
280 * image loads, uCode updates the R4 value via stats notifications 280 * image loads, uCode updates the R4 value via stats notifications
281 * (see STATISTICS_NOTIFICATION), which occur after each received beacon 281 * (see STATS_NOTIFICATION), which occur after each received beacon
282 * when associated, or can be requested via REPLY_STATISTICS_CMD. 282 * when associated, or can be requested via REPLY_STATS_CMD.
283 * 283 *
284 * NOTE: uCode provides the R4 value as a 23-bit signed value. Driver 284 * NOTE: uCode provides the R4 value as a 23-bit signed value. Driver
285 * must sign-extend to 32 bits before applying formula below. 285 * must sign-extend to 32 bits before applying formula below.
diff --git a/drivers/net/wireless/iwlegacy/iwl-commands.h b/drivers/net/wireless/iwlegacy/iwl-commands.h
index 55822da4b162..1a6ca36b4c78 100644
--- a/drivers/net/wireless/iwlegacy/iwl-commands.h
+++ b/drivers/net/wireless/iwlegacy/iwl-commands.h
@@ -136,8 +136,8 @@ enum {
136 REPLY_BT_CONFIG = 0x9b, 136 REPLY_BT_CONFIG = 0x9b,
137 137
138 /* Statistics */ 138 /* Statistics */
139 REPLY_STATISTICS_CMD = 0x9c, 139 REPLY_STATS_CMD = 0x9c,
140 STATISTICS_NOTIFICATION = 0x9d, 140 STATS_NOTIFICATION = 0x9d,
141 141
142 /* RF-KILL commands and notifications */ 142 /* RF-KILL commands and notifications */
143 CARD_STATE_NOTIFICATION = 0xa1, 143 CARD_STATE_NOTIFICATION = 0xa1,
@@ -2626,7 +2626,7 @@ struct il_scanstart_notification {
2626#define IL_PROBE_STATUS_FAIL_TTL BIT(1) 2626#define IL_PROBE_STATUS_FAIL_TTL BIT(1)
2627#define IL_PROBE_STATUS_FAIL_BT BIT(2) 2627#define IL_PROBE_STATUS_FAIL_BT BIT(2)
2628 2628
2629#define NUMBER_OF_STATISTICS 1 /* first __le32 is good CRC */ 2629#define NUMBER_OF_STATS 1 /* first __le32 is good CRC */
2630/* 2630/*
2631 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command) 2631 * SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command)
2632 */ 2632 */
@@ -2637,7 +2637,7 @@ struct il_scanresults_notification {
2637 u8 num_probe_not_sent; /* not enough time to send */ 2637 u8 num_probe_not_sent; /* not enough time to send */
2638 __le32 tsf_low; 2638 __le32 tsf_low;
2639 __le32 tsf_high; 2639 __le32 tsf_high;
2640 __le32 stats[NUMBER_OF_STATISTICS]; 2640 __le32 stats[NUMBER_OF_STATS];
2641} __packed; 2641} __packed;
2642 2642
2643/* 2643/*
@@ -2958,24 +2958,24 @@ struct stats_general {
2958 __le32 reserved3; 2958 __le32 reserved3;
2959} __packed; 2959} __packed;
2960 2960
2961#define UCODE_STATISTICS_CLEAR_MSK (0x1 << 0) 2961#define UCODE_STATS_CLEAR_MSK (0x1 << 0)
2962#define UCODE_STATISTICS_FREQUENCY_MSK (0x1 << 1) 2962#define UCODE_STATS_FREQUENCY_MSK (0x1 << 1)
2963#define UCODE_STATISTICS_NARROW_BAND_MSK (0x1 << 2) 2963#define UCODE_STATS_NARROW_BAND_MSK (0x1 << 2)
2964 2964
2965/* 2965/*
2966 * REPLY_STATISTICS_CMD = 0x9c, 2966 * REPLY_STATS_CMD = 0x9c,
2967 * all devices identical. 2967 * all devices identical.
2968 * 2968 *
2969 * This command triggers an immediate response containing uCode stats. 2969 * This command triggers an immediate response containing uCode stats.
2970 * The response is in the same format as STATISTICS_NOTIFICATION 0x9d, below. 2970 * The response is in the same format as STATS_NOTIFICATION 0x9d, below.
2971 * 2971 *
2972 * If the CLEAR_STATS configuration flag is set, uCode will clear its 2972 * If the CLEAR_STATS configuration flag is set, uCode will clear its
2973 * internal copy of the stats (counters) after issuing the response. 2973 * internal copy of the stats (counters) after issuing the response.
2974 * This flag does not affect STATISTICS_NOTIFICATIONs after beacons (see below). 2974 * This flag does not affect STATS_NOTIFICATIONs after beacons (see below).
2975 * 2975 *
2976 * If the DISABLE_NOTIF configuration flag is set, uCode will not issue 2976 * If the DISABLE_NOTIF configuration flag is set, uCode will not issue
2977 * STATISTICS_NOTIFICATIONs after received beacons (see below). This flag 2977 * STATS_NOTIFICATIONs after received beacons (see below). This flag
2978 * does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself. 2978 * does not affect the response to the REPLY_STATS_CMD 0x9c itself.
2979 */ 2979 */
2980#define IL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */ 2980#define IL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */
2981#define IL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */ 2981#define IL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */
@@ -2984,22 +2984,22 @@ struct il_stats_cmd {
2984} __packed; 2984} __packed;
2985 2985
2986/* 2986/*
2987 * STATISTICS_NOTIFICATION = 0x9d (notification only, not a command) 2987 * STATS_NOTIFICATION = 0x9d (notification only, not a command)
2988 * 2988 *
2989 * By default, uCode issues this notification after receiving a beacon 2989 * By default, uCode issues this notification after receiving a beacon
2990 * while associated. To disable this behavior, set DISABLE_NOTIF flag in the 2990 * while associated. To disable this behavior, set DISABLE_NOTIF flag in the
2991 * REPLY_STATISTICS_CMD 0x9c, above. 2991 * REPLY_STATS_CMD 0x9c, above.
2992 * 2992 *
2993 * Statistics counters continue to increment beacon after beacon, but are 2993 * Statistics counters continue to increment beacon after beacon, but are
2994 * cleared when changing channels or when driver issues REPLY_STATISTICS_CMD 2994 * cleared when changing channels or when driver issues REPLY_STATS_CMD
2995 * 0x9c with CLEAR_STATS bit set (see above). 2995 * 0x9c with CLEAR_STATS bit set (see above).
2996 * 2996 *
2997 * uCode also issues this notification during scans. uCode clears stats 2997 * uCode also issues this notification during scans. uCode clears stats
2998 * appropriately so that each notification contains stats for only the 2998 * appropriately so that each notification contains stats for only the
2999 * one channel that has just been scanned. 2999 * one channel that has just been scanned.
3000 */ 3000 */
3001#define STATISTICS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2) 3001#define STATS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2)
3002#define STATISTICS_REPLY_FLG_HT40_MODE_MSK cpu_to_le32(0x8) 3002#define STATS_REPLY_FLG_HT40_MODE_MSK cpu_to_le32(0x8)
3003 3003
3004struct il3945_notif_stats { 3004struct il3945_notif_stats {
3005 __le32 flag; 3005 __le32 flag;
@@ -3076,7 +3076,7 @@ struct il_missed_beacon_notif {
3076 * time listening, not transmitting). Driver must adjust sensitivity so that 3076 * time listening, not transmitting). Driver must adjust sensitivity so that
3077 * the ratio of actual false alarms to actual Rx time falls within this range. 3077 * the ratio of actual false alarms to actual Rx time falls within this range.
3078 * 3078 *
3079 * While associated, uCode delivers STATISTICS_NOTIFICATIONs after each 3079 * While associated, uCode delivers STATS_NOTIFICATIONs after each
3080 * received beacon. These provide information to the driver to analyze the 3080 * received beacon. These provide information to the driver to analyze the
3081 * sensitivity. Don't analyze stats that come in from scanning, or any 3081 * sensitivity. Don't analyze stats that come in from scanning, or any
3082 * other non-associated-network source. Pertinent stats include: 3082 * other non-associated-network source. Pertinent stats include:
@@ -3255,7 +3255,7 @@ struct il_sensitivity_cmd {
3255 * This command sets the relative gains of 4965 device's 3 radio receiver chains. 3255 * This command sets the relative gains of 4965 device's 3 radio receiver chains.
3256 * 3256 *
3257 * After the first association, driver should accumulate signal and noise 3257 * After the first association, driver should accumulate signal and noise
3258 * stats from the STATISTICS_NOTIFICATIONs that follow the first 20 3258 * stats from the STATS_NOTIFICATIONs that follow the first 20
3259 * beacons from the associated network (don't collect stats that come 3259 * beacons from the associated network (don't collect stats that come
3260 * in from scanning, or any other non-network source). 3260 * in from scanning, or any other non-network source).
3261 * 3261 *
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.c b/drivers/net/wireless/iwlegacy/iwl-core.c
index ba7ee4b4528f..e6c7d5f77e78 100644
--- a/drivers/net/wireless/iwlegacy/iwl-core.c
+++ b/drivers/net/wireless/iwlegacy/iwl-core.c
@@ -1179,11 +1179,11 @@ int il_send_stats_request(struct il_priv *il, u8 flags, bool clear)
1179 }; 1179 };
1180 1180
1181 if (flags & CMD_ASYNC) 1181 if (flags & CMD_ASYNC)
1182 return il_send_cmd_pdu_async(il, REPLY_STATISTICS_CMD, 1182 return il_send_cmd_pdu_async(il, REPLY_STATS_CMD,
1183 sizeof(struct il_stats_cmd), 1183 sizeof(struct il_stats_cmd),
1184 &stats_cmd, NULL); 1184 &stats_cmd, NULL);
1185 else 1185 else
1186 return il_send_cmd_pdu(il, REPLY_STATISTICS_CMD, 1186 return il_send_cmd_pdu(il, REPLY_STATS_CMD,
1187 sizeof(struct il_stats_cmd), 1187 sizeof(struct il_stats_cmd),
1188 &stats_cmd); 1188 &stats_cmd);
1189} 1189}
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.h b/drivers/net/wireless/iwlegacy/iwl-core.h
index 5b2883f645ab..e275ffc9f7e0 100644
--- a/drivers/net/wireless/iwlegacy/iwl-core.h
+++ b/drivers/net/wireless/iwlegacy/iwl-core.h
@@ -544,7 +544,7 @@ void il_free_geos(struct il_priv *il);
544#define S_TEMPERATURE 8 544#define S_TEMPERATURE 8
545#define S_GEO_CONFIGURED 9 545#define S_GEO_CONFIGURED 9
546#define S_EXIT_PENDING 10 546#define S_EXIT_PENDING 10
547#define S_STATISTICS 12 547#define S_STATS 12
548#define S_SCANNING 13 548#define S_SCANNING 13
549#define S_SCAN_ABORTING 14 549#define S_SCAN_ABORTING 14
550#define S_SCAN_HW 15 550#define S_SCAN_HW 15
diff --git a/drivers/net/wireless/iwlegacy/iwl-debugfs.c b/drivers/net/wireless/iwlegacy/iwl-debugfs.c
index 114922bc83d2..b9888ac0f518 100644
--- a/drivers/net/wireless/iwlegacy/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlegacy/iwl-debugfs.c
@@ -491,8 +491,8 @@ static ssize_t il_dbgfs_status_read(struct file *file,
491 test_bit(S_GEO_CONFIGURED, &il->status)); 491 test_bit(S_GEO_CONFIGURED, &il->status));
492 pos += scnprintf(buf + pos, bufsz - pos, "S_EXIT_PENDING:\t %d\n", 492 pos += scnprintf(buf + pos, bufsz - pos, "S_EXIT_PENDING:\t %d\n",
493 test_bit(S_EXIT_PENDING, &il->status)); 493 test_bit(S_EXIT_PENDING, &il->status));
494 pos += scnprintf(buf + pos, bufsz - pos, "S_STATISTICS:\t %d\n", 494 pos += scnprintf(buf + pos, bufsz - pos, "S_STATS:\t %d\n",
495 test_bit(S_STATISTICS, &il->status)); 495 test_bit(S_STATS, &il->status));
496 pos += scnprintf(buf + pos, bufsz - pos, "S_SCANNING:\t %d\n", 496 pos += scnprintf(buf + pos, bufsz - pos, "S_SCANNING:\t %d\n",
497 test_bit(S_SCANNING, &il->status)); 497 test_bit(S_SCANNING, &il->status));
498 pos += scnprintf(buf + pos, bufsz - pos, "S_SCAN_ABORTING:\t %d\n", 498 pos += scnprintf(buf + pos, bufsz - pos, "S_SCAN_ABORTING:\t %d\n",
diff --git a/drivers/net/wireless/iwlegacy/iwl-hcmd.c b/drivers/net/wireless/iwlegacy/iwl-hcmd.c
index 4762a0e8c88f..19a59558e247 100644
--- a/drivers/net/wireless/iwlegacy/iwl-hcmd.c
+++ b/drivers/net/wireless/iwlegacy/iwl-hcmd.c
@@ -70,8 +70,8 @@ const char *il_get_cmd_string(u8 cmd)
70 IL_CMD(REPLY_TX_BEACON); 70 IL_CMD(REPLY_TX_BEACON);
71 IL_CMD(REPLY_TX_PWR_TBL_CMD); 71 IL_CMD(REPLY_TX_PWR_TBL_CMD);
72 IL_CMD(REPLY_BT_CONFIG); 72 IL_CMD(REPLY_BT_CONFIG);
73 IL_CMD(REPLY_STATISTICS_CMD); 73 IL_CMD(REPLY_STATS_CMD);
74 IL_CMD(STATISTICS_NOTIFICATION); 74 IL_CMD(STATS_NOTIFICATION);
75 IL_CMD(CARD_STATE_NOTIFICATION); 75 IL_CMD(CARD_STATE_NOTIFICATION);
76 IL_CMD(MISSED_BEACONS_NOTIFICATION); 76 IL_CMD(MISSED_BEACONS_NOTIFICATION);
77 IL_CMD(REPLY_CT_KILL_CONFIG_CMD); 77 IL_CMD(REPLY_CT_KILL_CONFIG_CMD);