From: Luis R. Rodriguez Date: Thu, 7 Jan 2010 22:24:54 +0000 (-0500) Subject: cfg80211: add debug print when we drop a bogus country IE X-Git-Tag: v2.6.34-rc1~233^2~556^2~105 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b74d12e116528fadc35f305eb6e9525a3a2b62b1;p=karo-tx-linux.git cfg80211: add debug print when we drop a bogus country IE Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- 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, 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