linux/net/mac80211
Johannes Berg 8e3bad65a5 mac80211: remove ieee80211_notify_mac
Before ieee80211_notify_mac() was added, it was presented with the
use case of using it to tell mac80211 that the association may
have been lost because the firmware crashed/reset.

Since then, it has also been used by iwlwifi to (slightly) speed
up re-association after resume, a workaround around the fact that
mac80211 has no suspend/resume handling yet. It is also not used
by any other drivers, so clearly it cannot be necessary for "good
enough" suspend/resume.

Unfortunately, the callback suffers from a severe problem: It only
works for station mode. If suspend/resume happens while in IBSS or
any other mode (but station), then the callback is pointless.

Recently, it has created a number of locking issues, first because
it required rtnl locking rather than RCU due to calling sleeping
functions within the critical section, and now because it's called
by iwlwifi from the mac80211 workqueue that may not use the rtnl
because it is flushed under rtnl.
(cf. http://bugzilla.kernel.org/show_bug.cgi?id=12046)

I think, therefore, that we should take a step back, remove it
entirely for now and add the small feature it provided properly.
For suspend and resume we will need to introduce new hooks, and for
the case where the firmware was reset the driver will probably
simply just pretend it has done a suspend/resume cycle to get
mac80211 to reprogram the hardware completely, not just try to
connect to the current AP again in station mode. When doing so, we
will need to take into account locking issues and possibly defer
to schedule_work from within mac80211 for the resume operation,
while the suspend operation must be done directly.

Proper suspend/resume should also not necessarily try to reconnect
to the current AP, the time spent in suspend may have been short
enough to not be disconnected from the AP, mac80211 will detect
that the AP went out of range quickly if it did, and if the
association is lost then the AP will disassoc as soon as a data
frame is sent. We might also take into account WWOL then, and
have mac80211 program the hardware into such a mode where it is
available and requested.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-11-18 17:26:26 -05:00
..
Kconfig mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
Makefile mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
aes_ccm.c
aes_ccm.h
cfg.c mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
cfg.h
debugfs.c mac80211: make bridge_packets a virtual interface option 2008-09-15 16:48:22 -04:00
debugfs.h
debugfs_key.c mac80211: share STA information with driver 2008-09-15 16:48:23 -04:00
debugfs_key.h
debugfs_netdev.c mac80211: fix debugfs netdev rename 2008-10-14 20:48:00 -04:00
debugfs_netdev.h mac80211: revamp virtual interface handling 2008-07-14 14:30:07 -04:00
debugfs_sta.c mac80211: fix a buffer overrun in station debug code 2008-11-10 21:37:39 -08:00
debugfs_sta.h
event.c replace net_device arguments with ieee80211_{local,sub_if_data} as appropriate 2008-08-22 16:29:58 -04:00
ht.c mac80211: share STA information with driver 2008-09-15 16:48:23 -04:00
ieee80211_i.h mac80211: fix HT information element parsing 2008-10-14 20:47:15 -04:00
iface.c mac80211: fixups for "make master iface not wireless" 2008-09-30 14:07:23 -04:00
key.c mac80211: free up 2 bytes in skb->cb 2008-10-06 18:14:57 -04:00
key.h
led.c
led.h
main.c mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
mesh.c mac80211: make master iface not wireless 2008-09-24 16:18:00 -04:00
mesh.h mac80211: mesh portal functionality support 2008-09-24 16:18:02 -04:00
mesh_hwmp.c mac80211: move txrate_idx into RC algorithms 2008-09-15 16:48:24 -04:00
mesh_pathtbl.c mac80211: mesh portal functionality support 2008-09-24 16:18:02 -04:00
mesh_plink.c mac80211: share sta->supp_rates 2008-09-15 16:48:24 -04:00
michael.c
michael.h
mlme.c mac80211: remove ieee80211_notify_mac 2008-11-18 17:26:26 -05:00
rate.c mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
rate.h mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
rc80211_minstrel.c mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
rc80211_minstrel.h mac80211: add the 'minstrel' rate control algorithm 2008-10-06 18:14:57 -04:00
rc80211_minstrel_debugfs.c mac80211: correct warnings in minstrel rate control algorithm 2008-10-27 17:46:11 -04:00
rc80211_pid.h mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
rc80211_pid_algo.c mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
rc80211_pid_debugfs.c
rx.c net/mac80211/rx.c: fix build error 2008-10-12 23:51:38 -07:00
scan.c mac80211: Fix scan RX processing oops 2008-10-14 21:08:11 -04:00
spectmgmt.c mac80211: move frame TX function 2008-09-11 15:53:39 -04:00
sta_info.c mac80211: fix debugfs lockup 2008-10-14 20:46:41 -04:00
sta_info.h mac80211: fix debugfs lockup 2008-10-14 20:46:41 -04:00
tkip.c mac80211: share STA information with driver 2008-09-15 16:48:23 -04:00
tkip.h
tx.c mac80211: add multi-rate retry support 2008-10-06 18:14:57 -04:00
util.c mac80211: fix HT information element parsing 2008-10-14 20:47:15 -04:00
wep.c mac80211: free up 2 bytes in skb->cb 2008-10-06 18:14:57 -04:00
wep.h
wext.c ath9k/mac80211: disallow fragmentation in ath9k, report to userspace 2008-10-14 21:12:37 -04:00
wme.c mac80211: fixups for "make master iface not wireless" 2008-09-30 14:07:23 -04:00
wme.h mac80211: clean up some comments 2008-09-15 16:48:22 -04:00
wpa.c mac80211: free up 2 bytes in skb->cb 2008-10-06 18:14:57 -04:00
wpa.h