summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-10-20 10:18:57 -0700
committerJohn W. Linville <linville@tuxdriver.com>2010-11-15 13:24:13 -0500
commita65185367f9f876448f0f12ac09a673d20371efc (patch)
tree9d8f676082ac40db97ad1da6c059ec156c0820f9 /net
parent926a0a094d2b9052db3f7f37438c3d305cea4be7 (diff)
downloadop-kernel-dev-a65185367f9f876448f0f12ac09a673d20371efc.zip
op-kernel-dev-a65185367f9f876448f0f12ac09a673d20371efc.tar.gz
cfg80211: add debug print when disabling a channel on a custom regd
Cc: Easwar Krishnan <easwar.krishnan@atheros.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/reg.c5
1 files changed, 5 insertions, 0 deletions
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;
}
OpenPOWER on IntegriCloud