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>
This commit is contained in:
committed by
John W. Linville
parent
f6037d09e2
commit
ac9440a4e4
@@ -791,7 +791,7 @@ int regulatory_init(void)
|
|||||||
* you have CRDA you get it updated, otherwise you get
|
* you have CRDA you get it updated, otherwise you get
|
||||||
* stuck with the static values. We ignore "EU" code as
|
* stuck with the static values. We ignore "EU" code as
|
||||||
* that is not a valid ISO / IEC 3166 alpha2 */
|
* 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,
|
err = __regulatory_hint(NULL, REGDOM_SET_BY_CORE,
|
||||||
ieee80211_regdom, NULL);
|
ieee80211_regdom, NULL);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user