Skip to content

Commit

Permalink
cfg80211: add debug print when disabling a channel on a custom regd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Nov 15, 2010
1 parent 926a0a0 commit a651853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a651853

Please sign in to comment.