linux/drivers/net/wireless/iwlwifi
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
..
iwl3945-base.c mac80211: remove ieee80211_notify_mac 2008-11-18 17:26:26 -05:00
iwl-3945-commands.h iwlwifi: iwl3945 remove 4965 commands 2008-03-25 16:41:54 -04:00
iwl-3945-core.h iwlwifi: add struct iwl_cfg 2008-03-07 16:03:00 -05:00
iwl-3945-debug.h wireless: replace __FUNCTION__ with __func__ 2008-08-22 16:29:56 -04:00
iwl-3945-hw.h iwlwifi: 3945 remove unused SCD definitions 2008-05-07 15:02:20 -04:00
iwl-3945-io.h iwlwifi: remove rfkill warning from iwl-io 2008-09-08 14:23:18 -04:00
iwl-3945-led.c wireless: remove unused #include <version.h> 2008-08-29 16:24:08 -04:00
iwl-3945-led.h iwlwifi: Don't use buffer allocated on the stack for led names 2008-08-04 15:09:11 -04:00
iwl-3945-rs.c mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
iwl-3945-rs.h mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
iwl-3945.c mac80211: use nl80211 interface types 2008-09-15 16:48:23 -04:00
iwl-3945.h mac80211: clean up rate control API 2008-09-24 16:18:03 -04:00
iwl-4965-hw.h iwlwifi: cleanup PCI register handling 2008-09-08 14:23:19 -04:00
iwl-4965.c iwlwifi: fix compile warning 2008-09-11 15:53:31 -04:00
iwl-5000-hw.h iwlwifi: generic init calibrations framework 2008-09-08 14:23:18 -04:00
iwl-5000.c iwlwifi: fix ct kill configuration for 5350 2008-10-14 20:47:30 -04:00
iwl-agn-rs.c iwlwifi: fix compilation warning when CONFIG_IWLWIFI_DEBUG is not set. 2008-10-14 20:46:26 -04:00
iwl-agn-rs.h iwlwifi: Added support for 3 antennas 2008-09-11 15:53:39 -04:00
iwl-agn.c mac80211: remove ieee80211_notify_mac 2008-11-18 17:26:26 -05:00
iwl-calib.c iwlwifi: use the results from disconnected antenna algorithm 2008-09-11 15:53:31 -04:00
iwl-calib.h iwlwifi: move RX stats to core, and move temperature to handler 2008-06-30 17:37:39 -04:00
iwl-commands.h iwlwifi: fix host command header according the HW spec 2008-09-08 14:23:20 -04:00
iwl-core.c iwlwifi: remove HT flags from RXON when not in HT anymore 2008-09-24 16:18:01 -04:00
iwl-core.h iwlwifi: remove STATUS_CONF_PENDING in scanning 2008-10-06 18:14:58 -04:00
iwl-csr.h iwlwifi: refactor rx register initialization 2008-09-30 14:07:22 -04:00
iwl-debug.h iwlwifi: add level for debugging host command 2008-08-22 16:29:51 -04:00
iwl-debugfs.c iwlwifi: fix checkpatch.pl errors 2008-08-04 15:09:11 -04:00
iwl-dev.h mac80211: use nl80211 interface types 2008-09-15 16:48:23 -04:00
iwl-eeprom.c removed unused #include <version.h> 2008-08-18 11:05:15 -04:00
iwl-eeprom.h iwlwifi-5000: implement initial calibration for 5000 2008-06-03 15:00:23 -04:00
iwl-fh.h iwlwifi: refactor rx register initialization 2008-09-30 14:07:22 -04:00
iwl-hcmd.c iwlwifi: add level for debugging host command 2008-08-22 16:29:51 -04:00
iwl-helpers.h mac80211: add helpers for frame control testing 2008-06-14 12:18:12 -04:00
iwl-io.h iwlwifi: remove rfkill warning from iwl-io 2008-09-08 14:23:18 -04:00
iwl-led.c wireless: remove unused #include <version.h> 2008-08-29 16:24:08 -04:00
iwl-led.h iwlwifi: Don't use buffer allocated on the stack for led names 2008-08-04 15:09:11 -04:00
iwl-power.c mac80211: use nl80211 interface types 2008-09-15 16:48:23 -04:00
iwl-power.h iwlwifi: remove uneeded declarations 2008-09-11 15:53:31 -04:00
iwl-prph.h iwlwifi: HW bug fixes 2008-08-04 15:09:12 -04:00
iwl-rfkill.c wireless: remove unused #include <version.h> 2008-08-29 16:24:08 -04:00
iwl-rfkill.h iwlwifi: remove input device and fix rfkill state 2008-07-08 10:21:35 -04:00
iwl-rx.c iwlwifi: refactor rx register initialization 2008-09-30 14:07:22 -04:00
iwl-scan.c iwlwifi: clear scanning bits upon failure 2008-11-06 16:37:08 -05:00
iwl-spectrum.h iwlwifi: update copyright year 2008-03-13 19:32:32 -04:00
iwl-sta.c mac80211: use nl80211 interface types 2008-09-15 16:48:23 -04:00
iwl-sta.h iwlwifi: better station table maintenance 2008-06-30 17:37:38 -04:00
iwl-tx.c iwlagn: downgrade BUG_ON in interrupt 2008-09-24 16:18:04 -04:00
Kconfig iwlwifi: rename 4965 to AGN 2008-08-04 15:09:11 -04:00
Makefile iwlwifi: rename 4965 to AGN 2008-08-04 15:09:11 -04:00