From: Luis R. Rodriguez Date: Wed, 20 Oct 2010 17:18:57 +0000 (-0700) Subject: cfg80211: add debug print when disabling a channel on a custom regd X-Git-Tag: v2.6.38-rc1~476^2~558^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a65185367f9f876448f0f12ac09a673d20371efc;p=platform%2Fkernel%2Flinux-3.10.git cfg80211: add debug print when disabling a channel on a custom regd Cc: Easwar Krishnan 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 7bff1c1..6e7a9d8 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1125,6 +1125,11 @@ static void handle_channel_custom(struct wiphy *wiphy, regd); if (r) { + REG_DBG_PRINT("cfg80211: Disabling freq %d MHz as custom " + "regd has no rule that fits a %d MHz " + "wide channel\n", + chan->center_freq, + KHZ_TO_MHZ(desired_bw_khz)); chan->flags = IEEE80211_CHAN_DISABLED; return; }