mac80211: fix channel context suspend/reconfig handling
authorJohannes Berg <johannes.berg@intel.com>
Mon, 19 Nov 2012 21:19:08 +0000 (22:19 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 20 Nov 2012 09:33:05 +0000 (10:33 +0100)
commitfe5f255930af02ef3c3e0d00545b674e7e9d0cfb
treeaf684af4360e88d1f4630627b731dfaf671a3411
parent49884568628db47a1f8c1f596c6ab3b8db81b73c
mac80211: fix channel context suspend/reconfig handling

Sujith reported warnings with suspend/resume due to
channel contexts. When I looked into it, I realised
that the code was completely broken as it unassigned
the channel contexts when suspending, which actually
means they are destroyed.

Eliad Peller then pointed out that we also need to
remove the channel contexts from the driver. When I
looked into this, I also noticed that the code isn't
handling the virtual monitor interface correctly (if
it exists.)

Fix this by calling just the driver methods (if they
are implemented) instead of using the channel context
management code. Also add reconfiguration for the
virtual monitor interface.

Reported-by: Sujith Manoharan <sujith@msujith.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c
net/mac80211/util.c