summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-21 11:08:27 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:44 -0400
commitac9440a4e4b284d3469120f0e049dff7c73c72a4 (patch)
treec8e24b368568dc6c668782abb86afd324d46ba66 /net/wireless
parentf6037d09e2b58e5483ab63f75d4d57ae70f9ae6a (diff)
downloadlinux-ac9440a4e4b284d3469120f0e049dff7c73c72a4.tar.gz
linux-ac9440a4e4b284d3469120f0e049dff7c73c72a4.tar.bz2
linux-ac9440a4e4b284d3469120f0e049dff7c73c72a4.zip
wireless: fix EU check
http://en.wikipedia.org/wiki/De_Morgan%27s_laws is useful. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index a78902d0d6c9..5dab72db54b9 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -791,7 +791,7 @@ int regulatory_init(void)
* you have CRDA you get it updated, otherwise you get
* stuck with the static values. We ignore "EU" code as
* that is not a valid ISO / IEC 3166 alpha2 */
- if (ieee80211_regdom[0] != 'E' && ieee80211_regdom[1] != 'U')
+ if (ieee80211_regdom[0] != 'E' || ieee80211_regdom[1] != 'U')
err = __regulatory_hint(NULL, REGDOM_SET_BY_CORE,
ieee80211_regdom, NULL);
#else