[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240702122450.2213833-4-suhui@nfschina.com>
Date: Tue, 2 Jul 2024 20:24:46 +0800
From: Su Hui <suhui@...china.com>
To: arend.vanspriel@...adcom.com,
kvalo@...nel.org
Cc: Su Hui <suhui@...china.com>,
johannes.berg@...el.com,
kees@...nel.org,
a@...repo.ru,
petr.tesarik.ext@...wei.com,
marcan@...can.st,
justinstitt@...gle.com,
duoming@....edu.cn,
colin.i.king@...il.com,
chi-hsien.lin@...ress.com,
ian.lin@...ineon.com,
wright.feng@...ress.com,
linux-wireless@...r.kernel.org,
brcm80211@...ts.linux.dev,
brcm80211-dev-list.pdl@...adcom.com,
linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: [PATCH wireless 3/9] wifi: cfg80211: avoid garbage value of 'noise' in brcmf_cfg80211_dump_survey()
brcmf_fil_cmd_int_get() reads the value of 'noise' and passes it to
brcmf_fil_cmd_data_get(). Initialize 'noise' to avoid garbage value.
Fixes: 6c04deae1438 ("brcmfmac: Add dump_survey cfg80211 ops for HostApd AutoChannelSelection")
Signed-off-by: Su Hui <suhui@...china.com>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
index 6be7e7bd8ce7..2377b88d7ee0 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
@@ -8084,7 +8084,7 @@ brcmf_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *ndev,
struct ieee80211_supported_band *band;
enum nl80211_band band_id;
struct cca_msrmnt_query req;
- u32 noise;
+ u32 noise = 0;
int err;
brcmf_dbg(TRACE, "Enter: channel idx=%d\n", idx);
--
2.30.2
Powered by blists - more mailing lists