diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-21 11:08:27 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:44 -0400 |
commit | ac9440a4e4b284d3469120f0e049dff7c73c72a4 (patch) | |
tree | c8e24b368568dc6c668782abb86afd324d46ba66 /net/wireless/reg.c | |
parent | f6037d09e2b58e5483ab63f75d4d57ae70f9ae6a (diff) | |
download | talos-op-linux-ac9440a4e4b284d3469120f0e049dff7c73c72a4.tar.gz talos-op-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/reg.c')
-rw-r--r-- | net/wireless/reg.c | 2 |
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 |