Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247163
b: refs/heads/master
c: c58ca5b
h: refs/heads/master
i:
  247161: ed3e57d
  247159: bbfb856
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Apr 25, 2011
1 parent 4d26639 commit ac1d91e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 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: f0dd49803b0c0f3a002f073ec1a82cac5795af2d
refs/heads/master: c58ca5b5083befda31009a64abd95ae6ac315265
24 changes: 21 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ static ssize_t read_file_tgt_int_stats(struct file *file, char __user *user_buf,

memset(&cmd_rsp, 0, sizeof(cmd_rsp));

ath9k_htc_ps_wakeup(priv);

WMI_CMD(WMI_INT_STATS_CMDID);
if (ret)
if (ret) {
ath9k_htc_ps_restore(priv);
return -EINVAL;
}

ath9k_htc_ps_restore(priv);

len += snprintf(buf + len, sizeof(buf) - len,
"%20s : %10u\n", "RX",
Expand Down Expand Up @@ -85,9 +91,15 @@ static ssize_t read_file_tgt_tx_stats(struct file *file, char __user *user_buf,

memset(&cmd_rsp, 0, sizeof(cmd_rsp));

ath9k_htc_ps_wakeup(priv);

WMI_CMD(WMI_TX_STATS_CMDID);
if (ret)
if (ret) {
ath9k_htc_ps_restore(priv);
return -EINVAL;
}

ath9k_htc_ps_restore(priv);

len += snprintf(buf + len, sizeof(buf) - len,
"%20s : %10u\n", "Xretries",
Expand Down Expand Up @@ -149,9 +161,15 @@ static ssize_t read_file_tgt_rx_stats(struct file *file, char __user *user_buf,

memset(&cmd_rsp, 0, sizeof(cmd_rsp));

ath9k_htc_ps_wakeup(priv);

WMI_CMD(WMI_RX_STATS_CMDID);
if (ret)
if (ret) {
ath9k_htc_ps_restore(priv);
return -EINVAL;
}

ath9k_htc_ps_restore(priv);

len += snprintf(buf + len, sizeof(buf) - len,
"%20s : %10u\n", "NoBuf",
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/ath/ath9k/htc_drv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@ static int ath9k_htc_ampdu_action(struct ieee80211_hw *hw,
int ret = 0;

mutex_lock(&priv->mutex);
ath9k_htc_ps_wakeup(priv);

switch (action) {
case IEEE80211_AMPDU_RX_START:
Expand All @@ -1607,6 +1608,7 @@ static int ath9k_htc_ampdu_action(struct ieee80211_hw *hw,
ath_err(ath9k_hw_common(priv->ah), "Unknown AMPDU action\n");
}

ath9k_htc_ps_restore(priv);
mutex_unlock(&priv->mutex);

return ret;
Expand Down

0 comments on commit ac1d91e

Please sign in to comment.