projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cec429d
)
ath9k: restore power state on set channel failure
author
Rajkumar Manoharan
<
[email protected]
>
Mon, 11 Jun 2012 06:49:30 +0000
(12:19 +0530)
committer
John W. Linville
<
[email protected]
>
Wed, 13 Jun 2012 18:35:51 +0000
(14:35 -0400)
Not doing so, could cause imbalance in powersave count.
Signed-off-by: Rajkumar Manoharan <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/main.c
b/drivers/net/wireless/ath/ath9k/main.c
index c0f478b0a9a271f29756f1f7ea89c4e7e8d8d7cd..e655f2a907b50d5e741b42855fb4eddc7a654716 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/main.c
+++ b/
drivers/net/wireless/ath/ath9k/main.c
@@
-1258,6
+1258,7
@@
static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
if (ath_set_channel(sc, hw, &sc->sc_ah->channels[pos]) < 0) {
ath_err(common, "Unable to set channel\n");
mutex_unlock(&sc->mutex);
+ ath9k_ps_restore(sc);
return -EINVAL;
}