mac80211: cancel/restart all timers across suspend/resume
We forgot to cancel all timers in mac80211 when suspending. In particular we forgot to deal with some things that can cause hardware reconfiguration -- while it is down. While at it we go ahead and add a warning in ieee80211_sta_work() if its run while the suspend->resume cycle is in effect. This should not happen and if it does it would indicate there is a bug lurking in either mac80211 or mac80211 drivers. With this now wpa_supplicant doesn't blink when I go to suspend and resume where as before there where issues with some timers running during the suspend->resume cycle. This caused a lot of incorrect assumptions and would at times bring back the device in an incoherent, but mostly recoverable, state. Signed-off-by:Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by:
Johannes Berg <johannes@sipsolutions.net> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- net/mac80211/ibss.c 29 additions, 0 deletionsnet/mac80211/ibss.c
- net/mac80211/ieee80211_i.h 26 additions, 0 deletionsnet/mac80211/ieee80211_i.h
- net/mac80211/mesh.c 40 additions, 0 deletionsnet/mac80211/mesh.c
- net/mac80211/mesh.h 12 additions, 0 deletionsnet/mac80211/mesh.h
- net/mac80211/mesh_hwmp.c 7 additions, 1 deletionnet/mac80211/mesh_hwmp.c
- net/mac80211/mesh_plink.c 21 additions, 0 deletionsnet/mac80211/mesh_plink.c
- net/mac80211/mlme.c 59 additions, 0 deletionsnet/mac80211/mlme.c
- net/mac80211/pm.c 62 additions, 18 deletionsnet/mac80211/pm.c
- net/mac80211/scan.c 18 additions, 0 deletionsnet/mac80211/scan.c
- net/mac80211/sta_info.c 3 additions, 0 deletionsnet/mac80211/sta_info.c
- net/mac80211/sta_info.h 1 addition, 0 deletionsnet/mac80211/sta_info.h
- net/mac80211/util.c 43 additions, 0 deletionsnet/mac80211/util.c
Loading
Please register or sign in to comment