diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-10-21 05:08:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:44 -0400 |
commit | ac9440a4e4b284d3469120f0e049dff7c73c72a4 (patch) | |
tree | c8e24b368568dc6c668782abb86afd324d46ba66 /net/wireless | |
parent | f6037d09e2b58e5483ab63f75d4d57ae70f9ae6a (diff) |
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.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) | |||
791 | * you have CRDA you get it updated, otherwise you get | 791 | * you have CRDA you get it updated, otherwise you get |
792 | * stuck with the static values. We ignore "EU" code as | 792 | * stuck with the static values. We ignore "EU" code as |
793 | * that is not a valid ISO / IEC 3166 alpha2 */ | 793 | * that is not a valid ISO / IEC 3166 alpha2 */ |
794 | if (ieee80211_regdom[0] != 'E' && ieee80211_regdom[1] != 'U') | 794 | if (ieee80211_regdom[0] != 'E' || ieee80211_regdom[1] != 'U') |
795 | err = __regulatory_hint(NULL, REGDOM_SET_BY_CORE, | 795 | err = __regulatory_hint(NULL, REGDOM_SET_BY_CORE, |
796 | ieee80211_regdom, NULL); | 796 | ieee80211_regdom, NULL); |
797 | #else | 797 | #else |