Commit 2daf6c15 authored by John W. Linville's avatar John W. Linville

Revert "iwlwifi: move _agn statistics related structure"

This reverts commit a2064b7a.

when CONFIG_IWLAGN=n:

drivers/net/wireless/iwlwifi/iwl-rx.c:254: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:303: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:304: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:305: error: 'struct iwl_priv' has no member named '_agn'
drivers/net/wireless/iwlwifi/iwl-rx.c:306: error: 'struct iwl_priv' has no member named '_agn'

and many more.

Conflicts:

	drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c
	drivers/net/wireless/iwlwifi/iwl-debugfs.c
	drivers/net/wireless/iwlwifi/iwl-dev.h
	drivers/net/wireless/iwlwifi/iwl-rx.c
Reported-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6e387aa4
...@@ -1542,7 +1542,7 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv) ...@@ -1542,7 +1542,7 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv)
u32 R4; u32 R4;
if (test_bit(STATUS_TEMPERATURE, &priv->status) && if (test_bit(STATUS_TEMPERATURE, &priv->status) &&
(priv->_agn.statistics.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK)) { (priv->statistics.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK)) {
IWL_DEBUG_TEMP(priv, "Running HT40 temperature calibration\n"); IWL_DEBUG_TEMP(priv, "Running HT40 temperature calibration\n");
R1 = (s32)le32_to_cpu(priv->card_alive_init.therm_r1[1]); R1 = (s32)le32_to_cpu(priv->card_alive_init.therm_r1[1]);
R2 = (s32)le32_to_cpu(priv->card_alive_init.therm_r2[1]); R2 = (s32)le32_to_cpu(priv->card_alive_init.therm_r2[1]);
...@@ -1567,7 +1567,7 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv) ...@@ -1567,7 +1567,7 @@ static int iwl4965_hw_get_temperature(struct iwl_priv *priv)
vt = sign_extend(R4, 23); vt = sign_extend(R4, 23);
else else
vt = sign_extend( vt = sign_extend(
le32_to_cpu(priv->_agn.statistics.general.temperature), 23); le32_to_cpu(priv->statistics.general.temperature), 23);
IWL_DEBUG_TEMP(priv, "Calib values R[1-3]: %d %d %d R4: %d\n", R1, R2, R3, vt); IWL_DEBUG_TEMP(priv, "Calib values R[1-3]: %d %d %d R4: %d\n", R1, R2, R3, vt);
......
...@@ -260,7 +260,7 @@ static void iwl5150_temperature(struct iwl_priv *priv) ...@@ -260,7 +260,7 @@ static void iwl5150_temperature(struct iwl_priv *priv)
u32 vt = 0; u32 vt = 0;
s32 offset = iwl_temp_calib_to_offset(priv); s32 offset = iwl_temp_calib_to_offset(priv);
vt = le32_to_cpu(priv->_agn.statistics.general.temperature); vt = le32_to_cpu(priv->statistics.general.temperature);
vt = vt / IWL_5150_VOLTAGE_TO_TEMPERATURE_COEFF + offset; vt = vt / IWL_5150_VOLTAGE_TO_TEMPERATURE_COEFF + offset;
/* now vt hold the temperature in Kelvin */ /* now vt hold the temperature in Kelvin */
priv->temperature = KELVIN_TO_CELSIUS(vt); priv->temperature = KELVIN_TO_CELSIUS(vt);
......
...@@ -33,17 +33,17 @@ static int iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz) ...@@ -33,17 +33,17 @@ static int iwl_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz)
int p = 0; int p = 0;
p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n",
le32_to_cpu(priv->_agn.statistics.flag)); le32_to_cpu(priv->statistics.flag));
if (le32_to_cpu(priv->_agn.statistics.flag) & if (le32_to_cpu(priv->statistics.flag) &
UCODE_STATISTICS_CLEAR_MSK) UCODE_STATISTICS_CLEAR_MSK)
p += scnprintf(buf + p, bufsz - p, p += scnprintf(buf + p, bufsz - p,
"\tStatistics have been cleared\n"); "\tStatistics have been cleared\n");
p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n", p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
(le32_to_cpu(priv->_agn.statistics.flag) & (le32_to_cpu(priv->statistics.flag) &
UCODE_STATISTICS_FREQUENCY_MSK) UCODE_STATISTICS_FREQUENCY_MSK)
? "2.4 GHz" : "5.2 GHz"); ? "2.4 GHz" : "5.2 GHz");
p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n", p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
(le32_to_cpu(priv->_agn.statistics.flag) & (le32_to_cpu(priv->statistics.flag) &
UCODE_STATISTICS_NARROW_BAND_MSK) UCODE_STATISTICS_NARROW_BAND_MSK)
? "enabled" : "disabled"); ? "enabled" : "disabled");
return p; return p;
...@@ -79,22 +79,22 @@ ssize_t iwl_ucode_rx_stats_read(struct file *file, char __user *user_buf, ...@@ -79,22 +79,22 @@ ssize_t iwl_ucode_rx_stats_read(struct file *file, char __user *user_buf,
* the last statistics notification from uCode * the last statistics notification from uCode
* might not reflect the current uCode activity * might not reflect the current uCode activity
*/ */
ofdm = &priv->_agn.statistics.rx.ofdm; ofdm = &priv->statistics.rx.ofdm;
cck = &priv->_agn.statistics.rx.cck; cck = &priv->statistics.rx.cck;
general = &priv->_agn.statistics.rx.general; general = &priv->statistics.rx.general;
ht = &priv->_agn.statistics.rx.ofdm_ht; ht = &priv->statistics.rx.ofdm_ht;
accum_ofdm = &priv->_agn.accum_statistics.rx.ofdm; accum_ofdm = &priv->accum_statistics.rx.ofdm;
accum_cck = &priv->_agn.accum_statistics.rx.cck; accum_cck = &priv->accum_statistics.rx.cck;
accum_general = &priv->_agn.accum_statistics.rx.general; accum_general = &priv->accum_statistics.rx.general;
accum_ht = &priv->_agn.accum_statistics.rx.ofdm_ht; accum_ht = &priv->accum_statistics.rx.ofdm_ht;
delta_ofdm = &priv->_agn.delta_statistics.rx.ofdm; delta_ofdm = &priv->delta_statistics.rx.ofdm;
delta_cck = &priv->_agn.delta_statistics.rx.cck; delta_cck = &priv->delta_statistics.rx.cck;
delta_general = &priv->_agn.delta_statistics.rx.general; delta_general = &priv->delta_statistics.rx.general;
delta_ht = &priv->_agn.delta_statistics.rx.ofdm_ht; delta_ht = &priv->delta_statistics.rx.ofdm_ht;
max_ofdm = &priv->_agn.max_delta.rx.ofdm; max_ofdm = &priv->max_delta.rx.ofdm;
max_cck = &priv->_agn.max_delta.rx.cck; max_cck = &priv->max_delta.rx.cck;
max_general = &priv->_agn.max_delta.rx.general; max_general = &priv->max_delta.rx.general;
max_ht = &priv->_agn.max_delta.rx.ofdm_ht; max_ht = &priv->max_delta.rx.ofdm_ht;
pos += iwl_statistics_flag(priv, buf, bufsz); pos += iwl_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
...@@ -560,10 +560,10 @@ ssize_t iwl_ucode_tx_stats_read(struct file *file, ...@@ -560,10 +560,10 @@ ssize_t iwl_ucode_tx_stats_read(struct file *file,
* the last statistics notification from uCode * the last statistics notification from uCode
* might not reflect the current uCode activity * might not reflect the current uCode activity
*/ */
tx = &priv->_agn.statistics.tx; tx = &priv->statistics.tx;
accum_tx = &priv->_agn.accum_statistics.tx; accum_tx = &priv->accum_statistics.tx;
delta_tx = &priv->_agn.delta_statistics.tx; delta_tx = &priv->delta_statistics.tx;
max_tx = &priv->_agn.max_delta.tx; max_tx = &priv->max_delta.tx;
pos += iwl_statistics_flag(priv, buf, bufsz); pos += iwl_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
"acumulative delta max\n", "acumulative delta max\n",
...@@ -777,18 +777,18 @@ ssize_t iwl_ucode_general_stats_read(struct file *file, char __user *user_buf, ...@@ -777,18 +777,18 @@ ssize_t iwl_ucode_general_stats_read(struct file *file, char __user *user_buf,
* the last statistics notification from uCode * the last statistics notification from uCode
* might not reflect the current uCode activity * might not reflect the current uCode activity
*/ */
general = &priv->_agn.statistics.general; general = &priv->statistics.general;
dbg = &priv->_agn.statistics.general.dbg; dbg = &priv->statistics.general.dbg;
div = &priv->_agn.statistics.general.div; div = &priv->statistics.general.div;
accum_general = &priv->_agn.accum_statistics.general; accum_general = &priv->accum_statistics.general;
delta_general = &priv->_agn.delta_statistics.general; delta_general = &priv->delta_statistics.general;
max_general = &priv->_agn.max_delta.general; max_general = &priv->max_delta.general;
accum_dbg = &priv->_agn.accum_statistics.general.dbg; accum_dbg = &priv->accum_statistics.general.dbg;
delta_dbg = &priv->_agn.delta_statistics.general.dbg; delta_dbg = &priv->delta_statistics.general.dbg;
max_dbg = &priv->_agn.max_delta.general.dbg; max_dbg = &priv->max_delta.general.dbg;
accum_div = &priv->_agn.accum_statistics.general.div; accum_div = &priv->accum_statistics.general.div;
delta_div = &priv->_agn.delta_statistics.general.div; delta_div = &priv->delta_statistics.general.div;
max_div = &priv->_agn.max_delta.general.div; max_div = &priv->max_delta.general.div;
pos += iwl_statistics_flag(priv, buf, bufsz); pos += iwl_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current" pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
"acumulative delta max\n", "acumulative delta max\n",
......
...@@ -322,8 +322,7 @@ int iwlagn_send_tx_power(struct iwl_priv *priv) ...@@ -322,8 +322,7 @@ int iwlagn_send_tx_power(struct iwl_priv *priv)
void iwlagn_temperature(struct iwl_priv *priv) void iwlagn_temperature(struct iwl_priv *priv)
{ {
/* store temperature from statistics (in Celsius) */ /* store temperature from statistics (in Celsius) */
priv->temperature = priv->temperature = le32_to_cpu(priv->statistics.general.temperature);
le32_to_cpu(priv->_agn.statistics.general.temperature);
iwl_tt_handler(priv); iwl_tt_handler(priv);
} }
......
...@@ -1450,13 +1450,13 @@ bool iwl_good_ack_health(struct iwl_priv *priv, ...@@ -1450,13 +1450,13 @@ bool iwl_good_ack_health(struct iwl_priv *priv,
actual_ack_cnt_delta = actual_ack_cnt_delta =
le32_to_cpu(pkt->u.stats.tx.actual_ack_cnt) - le32_to_cpu(pkt->u.stats.tx.actual_ack_cnt) -
le32_to_cpu(priv->_agn.statistics.tx.actual_ack_cnt); le32_to_cpu(priv->statistics.tx.actual_ack_cnt);
expected_ack_cnt_delta = expected_ack_cnt_delta =
le32_to_cpu(pkt->u.stats.tx.expected_ack_cnt) - le32_to_cpu(pkt->u.stats.tx.expected_ack_cnt) -
le32_to_cpu(priv->_agn.statistics.tx.expected_ack_cnt); le32_to_cpu(priv->statistics.tx.expected_ack_cnt);
ba_timeout_delta = ba_timeout_delta =
le32_to_cpu(pkt->u.stats.tx.agg.ba_timeout) - le32_to_cpu(pkt->u.stats.tx.agg.ba_timeout) -
le32_to_cpu(priv->_agn.statistics.tx.agg.ba_timeout); le32_to_cpu(priv->statistics.tx.agg.ba_timeout);
if ((priv->_agn.agg_tids_count > 0) && if ((priv->_agn.agg_tids_count > 0) &&
(expected_ack_cnt_delta > 0) && (expected_ack_cnt_delta > 0) &&
(((actual_ack_cnt_delta * 100) / expected_ack_cnt_delta) (((actual_ack_cnt_delta * 100) / expected_ack_cnt_delta)
...@@ -1473,10 +1473,10 @@ bool iwl_good_ack_health(struct iwl_priv *priv, ...@@ -1473,10 +1473,10 @@ bool iwl_good_ack_health(struct iwl_priv *priv,
* DEBUG is not, these will just compile out. * DEBUG is not, these will just compile out.
*/ */
IWL_DEBUG_RADIO(priv, "rx_detected_cnt delta = %d\n", IWL_DEBUG_RADIO(priv, "rx_detected_cnt delta = %d\n",
priv->_agn.delta_statistics.tx.rx_detected_cnt); priv->delta_statistics.tx.rx_detected_cnt);
IWL_DEBUG_RADIO(priv, IWL_DEBUG_RADIO(priv,
"ack_or_ba_timeout_collision delta = %d\n", "ack_or_ba_timeout_collision delta = %d\n",
priv->_agn.delta_statistics.tx. priv->delta_statistics.tx.
ack_or_ba_timeout_collision); ack_or_ba_timeout_collision);
#endif #endif
IWL_DEBUG_RADIO(priv, "agg ba_timeout delta = %d\n", IWL_DEBUG_RADIO(priv, "agg ba_timeout delta = %d\n",
...@@ -2769,9 +2769,9 @@ static void iwl_bg_run_time_calib_work(struct work_struct *work) ...@@ -2769,9 +2769,9 @@ static void iwl_bg_run_time_calib_work(struct work_struct *work)
} }
if (priv->start_calib) { if (priv->start_calib) {
iwl_chain_noise_calibration(priv, &priv->_agn.statistics); iwl_chain_noise_calibration(priv, &priv->statistics);
iwl_sensitivity_calibration(priv, &priv->_agn.statistics); iwl_sensitivity_calibration(priv, &priv->statistics);
} }
mutex_unlock(&priv->mutex); mutex_unlock(&priv->mutex);
......
...@@ -1207,6 +1207,13 @@ struct iwl_priv { ...@@ -1207,6 +1207,13 @@ struct iwl_priv {
struct iwl_power_mgr power_data; struct iwl_power_mgr power_data;
struct iwl_tt_mgmt thermal_throttle; struct iwl_tt_mgmt thermal_throttle;
struct iwl_notif_statistics statistics;
#ifdef CONFIG_IWLWIFI_DEBUG
struct iwl_notif_statistics accum_statistics;
struct iwl_notif_statistics delta_statistics;
struct iwl_notif_statistics max_delta;
#endif
/* context information */ /* context information */
u8 bssid[ETH_ALEN]; /* used only on 3945 but filled by core */ u8 bssid[ETH_ALEN]; /* used only on 3945 but filled by core */
u8 mac_addr[ETH_ALEN]; u8 mac_addr[ETH_ALEN];
...@@ -1298,13 +1305,6 @@ struct iwl_priv { ...@@ -1298,13 +1305,6 @@ struct iwl_priv {
struct completion firmware_loading_complete; struct completion firmware_loading_complete;
struct iwl_notif_statistics statistics;
#ifdef CONFIG_IWLWIFI_DEBUGFS
struct iwl_notif_statistics accum_statistics;
struct iwl_notif_statistics delta_statistics;
struct iwl_notif_statistics max_delta;
#endif
u32 init_evtlog_ptr, init_evtlog_size, init_errlog_ptr; u32 init_evtlog_ptr, init_evtlog_size, init_errlog_ptr;
u32 inst_evtlog_ptr, inst_evtlog_size, inst_errlog_ptr; u32 inst_evtlog_ptr, inst_evtlog_size, inst_errlog_ptr;
} _agn; } _agn;
......
...@@ -251,7 +251,7 @@ EXPORT_SYMBOL(iwl_rx_spectrum_measure_notif); ...@@ -251,7 +251,7 @@ EXPORT_SYMBOL(iwl_rx_spectrum_measure_notif);
static void iwl_rx_calc_noise(struct iwl_priv *priv) static void iwl_rx_calc_noise(struct iwl_priv *priv)
{ {
struct statistics_rx_non_phy *rx_info struct statistics_rx_non_phy *rx_info
= &(priv->_agn.statistics.rx.general); = &(priv->statistics.rx.general);
int num_active_rx = 0; int num_active_rx = 0;
int total_silence = 0; int total_silence = 0;
int bcn_silence_a = int bcn_silence_a =
...@@ -300,10 +300,10 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv, ...@@ -300,10 +300,10 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv,
u32 *accum_stats; u32 *accum_stats;
u32 *delta, *max_delta; u32 *delta, *max_delta;
prev_stats = (__le32 *)&priv->_agn.statistics; prev_stats = (__le32 *)&priv->statistics;
accum_stats = (u32 *)&priv->_agn.accum_statistics; accum_stats = (u32 *)&priv->accum_statistics;
delta = (u32 *)&priv->_agn.delta_statistics; delta = (u32 *)&priv->delta_statistics;
max_delta = (u32 *)&priv->_agn.max_delta; max_delta = (u32 *)&priv->max_delta;
for (i = sizeof(__le32); i < sizeof(struct iwl_notif_statistics); for (i = sizeof(__le32); i < sizeof(struct iwl_notif_statistics);
i += sizeof(__le32), stats++, prev_stats++, delta++, i += sizeof(__le32), stats++, prev_stats++, delta++,
...@@ -318,18 +318,18 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv, ...@@ -318,18 +318,18 @@ static void iwl_accumulative_statistics(struct iwl_priv *priv,
} }
/* reset accumulative statistics for "no-counter" type statistics */ /* reset accumulative statistics for "no-counter" type statistics */
priv->_agn.accum_statistics.general.temperature = priv->accum_statistics.general.temperature =
priv->_agn.statistics.general.temperature; priv->statistics.general.temperature;
priv->_agn.accum_statistics.general.temperature_m = priv->accum_statistics.general.temperature_m =
priv->_agn.statistics.general.temperature_m; priv->statistics.general.temperature_m;
priv->_agn.accum_statistics.general.ttl_timestamp = priv->accum_statistics.general.ttl_timestamp =
priv->_agn.statistics.general.ttl_timestamp; priv->statistics.general.ttl_timestamp;
priv->_agn.accum_statistics.tx.tx_power.ant_a = priv->accum_statistics.tx.tx_power.ant_a =
priv->_agn.statistics.tx.tx_power.ant_a; priv->statistics.tx.tx_power.ant_a;
priv->_agn.accum_statistics.tx.tx_power.ant_b = priv->accum_statistics.tx.tx_power.ant_b =
priv->_agn.statistics.tx.tx_power.ant_b; priv->statistics.tx.tx_power.ant_b;
priv->_agn.accum_statistics.tx.tx_power.ant_c = priv->accum_statistics.tx.tx_power.ant_c =
priv->_agn.statistics.tx.tx_power.ant_c; priv->statistics.tx.tx_power.ant_c;
} }
#endif #endif
...@@ -364,9 +364,9 @@ bool iwl_good_plcp_health(struct iwl_priv *priv, ...@@ -364,9 +364,9 @@ bool iwl_good_plcp_health(struct iwl_priv *priv,
if (plcp_msec) { if (plcp_msec) {
combined_plcp_delta = combined_plcp_delta =
(le32_to_cpu(pkt->u.stats.rx.ofdm.plcp_err) - (le32_to_cpu(pkt->u.stats.rx.ofdm.plcp_err) -
le32_to_cpu(priv->_agn.statistics.rx.ofdm.plcp_err)) + le32_to_cpu(priv->statistics.rx.ofdm.plcp_err)) +
(le32_to_cpu(pkt->u.stats.rx.ofdm_ht.plcp_err) - (le32_to_cpu(pkt->u.stats.rx.ofdm_ht.plcp_err) -
le32_to_cpu(priv->_agn.statistics.rx.ofdm_ht.plcp_err)); le32_to_cpu(priv->statistics.rx.ofdm_ht.plcp_err));
if ((combined_plcp_delta > 0) && if ((combined_plcp_delta > 0) &&
((combined_plcp_delta * 100) / plcp_msec) > ((combined_plcp_delta * 100) / plcp_msec) >
...@@ -386,10 +386,10 @@ bool iwl_good_plcp_health(struct iwl_priv *priv, ...@@ -386,10 +386,10 @@ bool iwl_good_plcp_health(struct iwl_priv *priv,
"%u, %u, %u, %u, %d, %u mSecs\n", "%u, %u, %u, %u, %d, %u mSecs\n",
priv->cfg->plcp_delta_threshold, priv->cfg->plcp_delta_threshold,
le32_to_cpu(pkt->u.stats.rx.ofdm.plcp_err), le32_to_cpu(pkt->u.stats.rx.ofdm.plcp_err),
le32_to_cpu(priv->_agn.statistics.rx.ofdm.plcp_err), le32_to_cpu(priv->statistics.rx.ofdm.plcp_err),
le32_to_cpu(pkt->u.stats.rx.ofdm_ht.plcp_err), le32_to_cpu(pkt->u.stats.rx.ofdm_ht.plcp_err),
le32_to_cpu( le32_to_cpu(
priv->_agn.statistics.rx.ofdm_ht.plcp_err), priv->statistics.rx.ofdm_ht.plcp_err),
combined_plcp_delta, plcp_msec); combined_plcp_delta, plcp_msec);
rc = false; rc = false;
} }
...@@ -439,12 +439,12 @@ void iwl_rx_statistics(struct iwl_priv *priv, ...@@ -439,12 +439,12 @@ void iwl_rx_statistics(struct iwl_priv *priv,
IWL_DEBUG_RX(priv, "Statistics notification received (%d vs %d).\n", IWL_DEBUG_RX(priv, "Statistics notification received (%d vs %d).\n",
(int)sizeof(priv->_agn.statistics), (int)sizeof(priv->statistics),
le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK); le32_to_cpu(pkt->len_n_flags) & FH_RSCSR_FRAME_SIZE_MSK);
change = ((priv->_agn.statistics.general.temperature != change = ((priv->statistics.general.temperature !=
pkt->u.stats.general.temperature) || pkt->u.stats.general.temperature) ||
((priv->_agn.statistics.flag & ((priv->statistics.flag &
STATISTICS_REPLY_FLG_HT40_MODE_MSK) != STATISTICS_REPLY_FLG_HT40_MODE_MSK) !=
(pkt->u.stats.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK))); (pkt->u.stats.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK)));
...@@ -453,8 +453,7 @@ void iwl_rx_statistics(struct iwl_priv *priv, ...@@ -453,8 +453,7 @@ void iwl_rx_statistics(struct iwl_priv *priv,
#endif #endif
iwl_recover_from_statistics(priv, pkt); iwl_recover_from_statistics(priv, pkt);
memcpy(&priv->_agn.statistics, &pkt->u.stats, memcpy(&priv->statistics, &pkt->u.stats, sizeof(priv->statistics));
sizeof(priv->_agn.statistics));
set_bit(STATUS_STATISTICS, &priv->status); set_bit(STATUS_STATISTICS, &priv->status);
...@@ -482,11 +481,11 @@ void iwl_reply_statistics(struct iwl_priv *priv, ...@@ -482,11 +481,11 @@ void iwl_reply_statistics(struct iwl_priv *priv,
if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) { if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) {
#ifdef CONFIG_IWLWIFI_DEBUGFS #ifdef CONFIG_IWLWIFI_DEBUGFS
memset(&priv->_agn.accum_statistics, 0, memset(&priv->accum_statistics, 0,
sizeof(struct iwl_notif_statistics)); sizeof(struct iwl_notif_statistics));
memset(&priv->_agn.delta_statistics, 0, memset(&priv->delta_statistics, 0,
sizeof(struct iwl_notif_statistics)); sizeof(struct iwl_notif_statistics));
memset(&priv->_agn.max_delta, 0, memset(&priv->max_delta, 0,
sizeof(struct iwl_notif_statistics)); sizeof(struct iwl_notif_statistics));
#endif #endif
IWL_DEBUG_RX(priv, "Statistics have been cleared\n"); IWL_DEBUG_RX(priv, "Statistics have been cleared\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment