aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2009-04-08 14:26:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:43 -0400
commitaa89f31e708d469f5dd824c59c98e4856a2e3572 (patch)
tree765fc149a8a1f297755fb8c8e8fea52d09a7467f /drivers/net/wireless/iwlwifi/iwl-agn.c
parent5ee5811e24b20d49ea553fda568433effbab7a62 (diff)
iwl3945: use iwl_mac_get_tx_stats from iwlwifi
3945 can now use iwl_mac_get_tx_stats from iwlwifi. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index edfece6e0d4c..3ebf80fbebab 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2223,41 +2223,6 @@ static int iwl_mac_ampdu_action(struct ieee80211_hw *hw,
2223 return 0; 2223 return 0;
2224} 2224}
2225 2225
2226static int iwl_mac_get_tx_stats(struct ieee80211_hw *hw,
2227 struct ieee80211_tx_queue_stats *stats)
2228{
2229 struct iwl_priv *priv = hw->priv;
2230 int i, avail;
2231 struct iwl_tx_queue *txq;
2232 struct iwl_queue *q;
2233 unsigned long flags;
2234
2235 IWL_DEBUG_MAC80211(priv, "enter\n");
2236
2237 if (!iwl_is_ready_rf(priv)) {
2238 IWL_DEBUG_MAC80211(priv, "leave - RF not ready\n");
2239 return -EIO;
2240 }
2241
2242 spin_lock_irqsave(&priv->lock, flags);
2243
2244 for (i = 0; i < AC_NUM; i++) {
2245 txq = &priv->txq[i];
2246 q = &txq->q;
2247 avail = iwl_queue_space(q);
2248
2249 stats[i].len = q->n_window - avail;
2250 stats[i].limit = q->n_window - q->high_mark;
2251 stats[i].count = q->n_window;
2252
2253 }
2254 spin_unlock_irqrestore(&priv->lock, flags);
2255
2256 IWL_DEBUG_MAC80211(priv, "leave\n");
2257
2258 return 0;
2259}
2260
2261static int iwl_mac_get_stats(struct ieee80211_hw *hw, 2226static int iwl_mac_get_stats(struct ieee80211_hw *hw,
2262 struct ieee80211_low_level_stats *stats) 2227 struct ieee80211_low_level_stats *stats)
2263{ 2228{