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

Commit 6151f79f authored by Amar Singhal's avatar Amar Singhal
Browse files

qcacmn: Put debug log when channel number is out of range

Channel number being out of range is not expected for a pdev. Put debug
log for the same.

Change-Id: Iaccec084e2bc22a3955915ad48a55d16963b49a5
CRs-Fixed: 2316097
parent a9fc2ebb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -31,7 +31,6 @@
#define reg_log(level, args...) \
	QDF_TRACE(QDF_MODULE_ID_REGULATORY, level, ## args)
#define reg_logfl(level, format, args...) reg_log(level, FL(format), ## args)

#define reg_alert(format, args...) \
		reg_logfl(QDF_TRACE_LEVEL_FATAL, format, ## args)
#define reg_err(format, args...) \
@@ -44,6 +43,9 @@
		reg_logfl(QDF_TRACE_LEVEL_INFO_HIGH, format, ## args)
#define reg_debug(format, args...) \
		reg_logfl(QDF_TRACE_LEVEL_DEBUG, format, ## args)
#define reg_debug_rl(params...) \
	QDF_TRACE_DEBUG_RL(QDF_MODULE_ID_REGULATORY, params)


struct wlan_regulatory_psoc_priv_obj {
	struct mas_chan_params mas_chan_params[PSOC_MAX_PHY_REG_CAP];
+6 −7
Original line number Diff line number Diff line
@@ -1849,8 +1849,7 @@ uint32_t reg_chan_to_freq(struct wlan_objmgr_pdev *pdev,
			}
		}


	reg_err("invalid channel %d", chan_num);
	reg_debug_rl("invalid channel %d", chan_num);

	return 0;
}