summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHsiu-Chang Chen <hsiuchangchen@google.com>2024-02-19 13:16:24 +0800
committerHsiu-Chang Chen <hsiuchangchen@google.com>2024-02-19 05:50:19 +0000
commita6967f1b72119261d99046fe87d32457449cc164 (patch)
tree18762462f56c0fba1d74c5489dc2013524d9f22f
parent16e63a908f645c3e2b919ec4d329d6c72114411e (diff)
downloadwlan-a6967f1b72119261d99046fe87d32457449cc164.tar.gz
qcacmm: avoid invalid channel center frequency 0
Bug: 317275628 Test: Regression Test Change-Id: I7ecdb481ccec7dd036afe6cf8bf5db68cdd83efb Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
-rw-r--r--qca-wifi-host-cmn/umac/regulatory/core/src/reg_services_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qca-wifi-host-cmn/umac/regulatory/core/src/reg_services_common.c b/qca-wifi-host-cmn/umac/regulatory/core/src/reg_services_common.c
index 40c1b16..bc333e3 100644
--- a/qca-wifi-host-cmn/umac/regulatory/core/src/reg_services_common.c
+++ b/qca-wifi-host-cmn/umac/regulatory/core/src/reg_services_common.c
@@ -3463,7 +3463,8 @@ static uint32_t reg_get_channel_flags_for_freq(struct wlan_objmgr_pdev *pdev,
chan_enum = reg_get_chan_enum_for_freq(freq);
if (chan_enum == INVALID_CHANNEL) {
- reg_err("chan freq is not valid");
+ if(freq)
+ reg_err("chan freq %d is not valid", freq);
return REGULATORY_CHAN_INVALID;
}