mac80211: fix virtual monitor interface iteration
authorJohannes Berg <johannes.berg@intel.com>
Wed, 29 Jan 2014 12:28:02 +0000 (13:28 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 6 Feb 2014 08:55:22 +0000 (09:55 +0100)
commitfab57a6cc227468ca9e6a4c7ff8d3b10727785ee
tree2b0c3ea40b1a652105eefc22032046fd59a0ad0f
parent338f977f4eb441e69bb9a46eaa0ac715c931a67f
mac80211: fix virtual monitor interface iteration

During channel context assignment, the interface should
be found by interface iteration, so we need to assign the
pointer before the channel context.

Reported-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Tested-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c