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)
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

Simple merge
Simple merge