Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6518536 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

cfg80211: add debug print when disabling a channel on a custom regd



Cc: Easwar Krishnan <easwar.krishnan@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 926a0a09
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
	}