nl80211: check channel switch validity better
authorJohannes Berg <johannes.berg@intel.com>
Wed, 22 Jan 2014 09:05:27 +0000 (10:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:48:16 +0000 (21:48 +0100)
Before allowing userspace to initiate a channel switch, check
that it's actually connected in some sense. Also use a more
appropriate error code for the not connected case.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c

Simple merge