summaryrefslogtreecommitdiffstats
path: root/patches/crda-3.13/0003-udev-Fix-rule-for-initial-setup.patch
blob: 551b84bf68ad1af1d619b068f188ef3521fef9dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Markus Pargmann <mpa@pengutronix.de>
Date: Thu, 17 Apr 2014 11:59:59 +0200
Subject: [PATCH] udev: Fix rule for initial setup

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 udev/regulatory.rules | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/udev/regulatory.rules b/udev/regulatory.rules
index 3d6add895784..98296961f0ed 100644
--- a/udev/regulatory.rules
+++ b/udev/regulatory.rules
@@ -2,4 +2,5 @@
 # For more information see:
 # http://wireless.kernel.org/en/developers/Regulatory/CRDA
 
-KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="$(SBINDIR)crda"
+KERNEL=="regulatory*", ACTION=="add", SUBSYSTEM=="platform", ENV{COUNTRY}="00"
+KERNEL=="regulatory*", ACTION=="add|change", SUBSYSTEM=="platform", RUN+="$(SBINDIR)crda"