diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/ps.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/ps.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/ps.c b/drivers/net/wireless/wl12xx/ps.c index b59b67711a17..3e68a664c9de 100644 --- a/drivers/net/wireless/wl12xx/ps.c +++ b/drivers/net/wireless/wl12xx/ps.c | |||
@@ -118,7 +118,7 @@ int wl1271_ps_elp_wakeup(struct wl1271 *wl) | |||
118 | &compl, msecs_to_jiffies(WL1271_WAKEUP_TIMEOUT)); | 118 | &compl, msecs_to_jiffies(WL1271_WAKEUP_TIMEOUT)); |
119 | if (ret == 0) { | 119 | if (ret == 0) { |
120 | wl1271_error("ELP wakeup timeout!"); | 120 | wl1271_error("ELP wakeup timeout!"); |
121 | ieee80211_queue_work(wl->hw, &wl->recovery_work); | 121 | wl12xx_queue_recovery_work(wl); |
122 | ret = -ETIMEDOUT; | 122 | ret = -ETIMEDOUT; |
123 | goto err; | 123 | goto err; |
124 | } else if (ret < 0) { | 124 | } else if (ret < 0) { |
@@ -169,9 +169,11 @@ int wl1271_ps_set_mode(struct wl1271 *wl, enum wl1271_cmd_ps_mode mode, | |||
169 | wl1271_debug(DEBUG_PSM, "leaving psm"); | 169 | wl1271_debug(DEBUG_PSM, "leaving psm"); |
170 | 170 | ||
171 | /* disable beacon early termination */ | 171 | /* disable beacon early termination */ |
172 | ret = wl1271_acx_bet_enable(wl, false); | 172 | if (wl->band == IEEE80211_BAND_2GHZ) { |
173 | if (ret < 0) | 173 | ret = wl1271_acx_bet_enable(wl, false); |
174 | return ret; | 174 | if (ret < 0) |
175 | return ret; | ||
176 | } | ||
175 | 177 | ||
176 | /* disable beacon filtering */ | 178 | /* disable beacon filtering */ |
177 | ret = wl1271_acx_beacon_filter_opt(wl, false); | 179 | ret = wl1271_acx_beacon_filter_opt(wl, false); |
@@ -202,7 +204,7 @@ static void wl1271_ps_filter_frames(struct wl1271 *wl, u8 hlid) | |||
202 | info = IEEE80211_SKB_CB(skb); | 204 | info = IEEE80211_SKB_CB(skb); |
203 | info->flags |= IEEE80211_TX_STAT_TX_FILTERED; | 205 | info->flags |= IEEE80211_TX_STAT_TX_FILTERED; |
204 | info->status.rates[0].idx = -1; | 206 | info->status.rates[0].idx = -1; |
205 | ieee80211_tx_status(wl->hw, skb); | 207 | ieee80211_tx_status_ni(wl->hw, skb); |
206 | filtered++; | 208 | filtered++; |
207 | } | 209 | } |
208 | } | 210 | } |