Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184085
b: refs/heads/master
c: d1ace8e
h: refs/heads/master
i:
  184083: 23a0f8c
v: v3
  • Loading branch information
Kalle Valo authored and John W. Linville committed Feb 8, 2010
1 parent 7de5dd7 commit 0181ef8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ccbc3b8b0c919e8609560ca56cd777ece8d2c41
refs/heads/master: d1ace8e57a4e3af78767684c6f6b5f8b88417abb
8 changes: 7 additions & 1 deletion trunk/drivers/net/wireless/ath/ar9170/ar9170.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ struct ar9170_sta_tid {
bool active;
};

struct ar9170_tx_queue_stats {
unsigned int len;
unsigned int limit;
unsigned int count;
};

#define AR9170_QUEUE_TIMEOUT 64
#define AR9170_TX_TIMEOUT 8
#define AR9170_BA_TIMEOUT 4
Expand Down Expand Up @@ -211,7 +217,7 @@ struct ar9170 {

/* qos queue settings */
spinlock_t tx_stats_lock;
struct ieee80211_tx_queue_stats tx_stats[5];
struct ar9170_tx_queue_stats tx_stats[5];
struct ieee80211_tx_queue_params edcf[5];

spinlock_t cmdlock;
Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/ath/ar9170/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2396,18 +2396,6 @@ static int ar9170_get_stats(struct ieee80211_hw *hw,
return 0;
}

static int ar9170_get_tx_stats(struct ieee80211_hw *hw,
struct ieee80211_tx_queue_stats *tx_stats)
{
struct ar9170 *ar = hw->priv;

spin_lock_bh(&ar->tx_stats_lock);
memcpy(tx_stats, ar->tx_stats, sizeof(tx_stats[0]) * hw->queues);
spin_unlock_bh(&ar->tx_stats_lock);

return 0;
}

static int ar9170_conf_tx(struct ieee80211_hw *hw, u16 queue,
const struct ieee80211_tx_queue_params *param)
{
Expand Down Expand Up @@ -2509,7 +2497,6 @@ static const struct ieee80211_ops ar9170_ops = {
.set_key = ar9170_set_key,
.sta_notify = ar9170_sta_notify,
.get_stats = ar9170_get_stats,
.get_tx_stats = ar9170_get_tx_stats,
.ampdu_action = ar9170_ampdu_action,
};

Expand Down

0 comments on commit 0181ef8

Please sign in to comment.