Skip to content

Commit

Permalink
cfg80211: add debug print when we drop a bogus country IE
Browse files Browse the repository at this point in the history
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 12, 2010
1 parent 81f14df commit b74d12e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b74d12e

Please sign in to comment.