Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315642
b: refs/heads/master
c: 42066f9
h: refs/heads/master
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Jul 18, 2012
1 parent e8e3c9b commit 4eb24a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 602c7595a1560c0dea795759193b6e3a6246ea31
refs/heads/master: 42066f9a5ffc212ec0ff5c23ed2fb92464191543
10 changes: 9 additions & 1 deletion trunk/drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,14 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl,
else
wl->sta_count--;

/* Last AP, have more stations. Configure according to STA. */
/*
* Last AP, have more stations. Configure sleep auth according to STA.
* Don't do thin on unintended recovery.
*/
if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags) &&
!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags))
goto unlock;

if (wl->ap_count == 0 && is_ap && wl->sta_count) {
u8 sta_auth = wl->conf.conn.sta_sleep_auth;
/* Configure for power according to debugfs */
Expand All @@ -2391,6 +2398,7 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl,
wl1271_acx_sleep_auth(wl, WL1271_PSM_ELP);
}

unlock:
mutex_unlock(&wl->mutex);

del_timer_sync(&wlvif->rx_streaming_timer);
Expand Down

0 comments on commit 4eb24a8

Please sign in to comment.