d8dc6457f963d43b075812fb4deb05141d45329e
[openwrt-10.03/.git] / package / mac80211 / patches / 576-ath9k_fix_start_wakeup.patch
1 --- a/drivers/net/wireless/ath/ath9k/main.c
2 +++ b/drivers/net/wireless/ath/ath9k/main.c
3 @@ -1048,6 +1048,8 @@ static int ath9k_start(struct ieee80211_
4                 "Starting driver with initial channel: %d MHz\n",
5                 curchan->center_freq);
6  
7 +       ath9k_ps_wakeup(sc);
8 +
9         mutex_lock(&sc->mutex);
10  
11         /* setup initial channel */
12 @@ -1143,6 +1145,8 @@ static int ath9k_start(struct ieee80211_
13  mutex_unlock:
14         mutex_unlock(&sc->mutex);
15  
16 +       ath9k_ps_restore(sc);
17 +
18         return r;
19  }
20