cfg80211: don't add p2p device while in RFKILL
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 17 Sep 2013 12:20:13 +0000 (15:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Oct 2013 16:40:16 +0000 (18:40 +0200)
commitf38dd58ccca0d612e62509f75e99952dcf316cb2
tree77cc62c8ef1ab07932f95cf70433e04cded1d13c
parenta754055a1296fcbe6f32de3a5eaca6efb2fd1865
cfg80211: don't add p2p device while in RFKILL

Since P2P device doesn't have a netdev associated to it,
we cannot prevent the user to start it when in RFKILL.
So refuse to even add it when in RFKILL.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/core.c
net/wireless/core.h