Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] cfg80211: don't start p2p device while in RFKILL
@ 2013-09-17 12:23 Emmanuel Grumbach
  2013-09-17 12:25 ` Grumbach, Emmanuel
  0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Grumbach @ 2013-09-17 12:23 UTC (permalink / raw)
  To: linux-wireless; +Cc: Emmanuel Grumbach

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
 net/wireless/nl80211.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 316503f..6bb03b5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -8666,6 +8666,9 @@ static int nl80211_start_p2p_device(struct sk_buff *skb, struct genl_info *info)
 	if (err)
 		return err;
 
+	if (rfkill_blocked(rdev->rfkill))
+		return -ERFKILL;
+
 	err = rdev_start_p2p_device(rdev, wdev);
 	if (err)
 		return err;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-17 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 12:23 [PATCH] cfg80211: don't start p2p device while in RFKILL Emmanuel Grumbach
2013-09-17 12:25 ` Grumbach, Emmanuel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox