* [PATCH] wireless: fix EU check
@ 2008-10-21 9:08 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2008-10-21 9:08 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
http://en.wikipedia.org/wiki/De_Morgan%27s_laws is useful.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
net/wireless/reg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- everything.orig/net/wireless/reg.c 2008-10-21 11:06:25.000000000 +0200
+++ everything/net/wireless/reg.c 2008-10-21 11:06:29.000000000 +0200
@@ -792,7 +792,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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-21 9:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 9:08 [PATCH] wireless: fix EU check Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox