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",
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",
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",
int ret = 0;
mutex_lock(&priv->mutex);
+ ath9k_htc_ps_wakeup(priv);
switch (action) {
case IEEE80211_AMPDU_RX_START:
ath_err(ath9k_hw_common(priv->ah), "Unknown AMPDU action\n");
}
+ ath9k_htc_ps_restore(priv);
mutex_unlock(&priv->mutex);
return ret;