diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
| -rw-r--r-- | net/mac80211/sta_info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 3c428d4839c7..ff11f6bf8266 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
| @@ -238,9 +238,11 @@ static void sta_unblock(struct work_struct *wk) | |||
| 238 | if (sta->dead) | 238 | if (sta->dead) |
| 239 | return; | 239 | return; |
| 240 | 240 | ||
| 241 | if (!test_sta_flag(sta, WLAN_STA_PS_STA)) | 241 | if (!test_sta_flag(sta, WLAN_STA_PS_STA)) { |
| 242 | local_bh_disable(); | ||
| 242 | ieee80211_sta_ps_deliver_wakeup(sta); | 243 | ieee80211_sta_ps_deliver_wakeup(sta); |
| 243 | else if (test_and_clear_sta_flag(sta, WLAN_STA_PSPOLL)) { | 244 | local_bh_enable(); |
| 245 | } else if (test_and_clear_sta_flag(sta, WLAN_STA_PSPOLL)) { | ||
| 244 | clear_sta_flag(sta, WLAN_STA_PS_DRIVER); | 246 | clear_sta_flag(sta, WLAN_STA_PS_DRIVER); |
| 245 | 247 | ||
| 246 | local_bh_disable(); | 248 | local_bh_disable(); |
