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)
commit1ff79dfa37d36c16d91eeeebb8cc3dcba32c2c16
tree6400fb9a5f7470a37afc9fac5d8b9e07b2c23f39
parentc782bf8caae59a6cdd17ed1b99c126167dae49b2
nl80211: check channel switch validity better

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