]> 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)
commit467c7ce1152a9040fa7480e85afab322e22b41e9
treeaf684af4360e88d1f4630627b731dfaf671a3411
parent44457ee949610b5cd9873e35176e2085ace252eb
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