aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-01-07 17:24:54 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-12 13:57:58 -0500
commitb74d12e116528fadc35f305eb6e9525a3a2b62b1 (patch)
treed5ae133a8d980bfdf4b6c3d7ad59000ca39f6cbf /net/wireless
parent81f14df0b3909875902b0253d7059e8a73dd0c7f (diff)
cfg80211: add debug print when we drop a bogus country IE
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index f79d6613c5ff..389247cb7059 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1806,8 +1806,10 @@ void regulatory_hint_11d(struct wiphy *wiphy,
1806 goto out; 1806 goto out;
1807 1807
1808 rd = country_ie_2_rd(country_ie, country_ie_len, &checksum); 1808 rd = country_ie_2_rd(country_ie, country_ie_len, &checksum);
1809 if (!rd) 1809 if (!rd) {
1810 REG_DBG_PRINT("cfg80211: Ignoring bogus country IE\n");
1810 goto out; 1811 goto out;
1812 }
1811 1813
1812 /* 1814 /*
1813 * This will not happen right now but we leave it here for the 1815 * This will not happen right now but we leave it here for the