aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-11-13 14:56:28 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-18 17:09:04 -0500
commitef8d5529b015d4c5db7fad1adfc91edfd5abad56 (patch)
tree401d2477ce3ad9d87be8f696a470b08894856307 /drivers/net/wireless/iwlwifi/iwl-agn.c
parent7d2ed110a80991849a2824a6dc3c063ffca9dbe4 (diff)
iwlwifi: update reply_statistics_cmd with 'clear' parameter
When issue REPLY_STATISTICS_CMD to uCode, two possible flag can be set in the configuration flags bit 0: Clear statistics 0: Do not clear Statistics counters 1: Clear to zero Statistics counters Allow "clear" parameter to be set from the caller. Add debugfs file to clear the statistics counters to help monitor and debug the uCode behavior. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 6532e9e68951..f586e7e83131 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -612,7 +612,7 @@ static void iwl_bg_statistics_periodic(unsigned long data)
612 if (!iwl_is_ready_rf(priv)) 612 if (!iwl_is_ready_rf(priv))
613 return; 613 return;
614 614
615 iwl_send_statistics_request(priv, CMD_ASYNC); 615 iwl_send_statistics_request(priv, CMD_ASYNC, false);
616} 616}
617 617
618static void iwl_rx_beacon_notif(struct iwl_priv *priv, 618static void iwl_rx_beacon_notif(struct iwl_priv *priv,
@@ -729,7 +729,7 @@ static void iwl_setup_rx_handlers(struct iwl_priv *priv)
729 * statistics request from the host as well as for the periodic 729 * statistics request from the host as well as for the periodic
730 * statistics notifications (after received beacons) from the uCode. 730 * statistics notifications (after received beacons) from the uCode.
731 */ 731 */
732 priv->rx_handlers[REPLY_STATISTICS_CMD] = iwl_rx_statistics; 732 priv->rx_handlers[REPLY_STATISTICS_CMD] = iwl_reply_statistics;
733 priv->rx_handlers[STATISTICS_NOTIFICATION] = iwl_rx_statistics; 733 priv->rx_handlers[STATISTICS_NOTIFICATION] = iwl_rx_statistics;
734 734
735 iwl_setup_spectrum_handlers(priv); 735 iwl_setup_spectrum_handlers(priv);
@@ -2892,7 +2892,7 @@ static ssize_t show_statistics(struct device *d,
2892 return -EAGAIN; 2892 return -EAGAIN;
2893 2893
2894 mutex_lock(&priv->mutex); 2894 mutex_lock(&priv->mutex);
2895 rc = iwl_send_statistics_request(priv, 0); 2895 rc = iwl_send_statistics_request(priv, CMD_SYNC, false);
2896 mutex_unlock(&priv->mutex); 2896 mutex_unlock(&priv->mutex);
2897 2897
2898 if (rc) { 2898 if (rc) {