]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add hardware restart function
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 14 Apr 2009 08:09:24 +0000 (10:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:57:14 +0000 (16:57 -0400)
commit55f00eaeb88218a47d6caee8fcd9555559c61f3f
treedaad40232be13d91835b30234e5743dfdd582f19
parentd4217fc8b7d1cf96fa2e936d391722bc86299383
mac80211: add hardware restart function

Some hardware defects may require the hardware to be re-initialised
completely from scratch. Drivers would need much information (for
instance the current MAC address, crypto keys, beaconing information,
etc.) stored duplicated from mac80211 to be able to do this, so let
mac80211 help them.

The new ieee80211_restart_hw() function requires the same code as
resuming, so move that code into a new ieee80211_reconfig() function
in util.c and leave only the suspend code in pm.c.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/main.c
net/mac80211/pm.c
net/mac80211/util.c