]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit08350b2f737303eeb26fcb37874e61f4781dd6ba
tree77cc62c8ef1ab07932f95cf70433e04cded1d13c
parent43b7a45e432919082fa764f1eb7dc4e37dd12ca9
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