]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5c9bc9d279d686896614aac8e3d9e62274b364f
treeaf684af4360e88d1f4630627b731dfaf671a3411
parentf0a0a531abd9aac403898f1194767ccaded6d1c7
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