cfg80211: add debug print when we drop a bogus country IE
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 7 Jan 2010 22:24:54 +0000 (17:24 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Jan 2010 18:57:58 +0000 (13:57 -0500)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c

index f79d6613c5ff6e49115ab84c19a8c500f47a3794..389247cb70599c4fdea7ac2dd1661e94c170fb2c 100644 (file)
@@ -1806,8 +1806,10 @@ void regulatory_hint_11d(struct wiphy *wiphy,
                goto out;
 
        rd = country_ie_2_rd(country_ie, country_ie_len, &checksum);
-       if (!rd)
+       if (!rd) {
+               REG_DBG_PRINT("cfg80211: Ignoring bogus country IE\n");
                goto out;
+       }
 
        /*
         * This will not happen right now but we leave it here for the