UPSTREAM: wifi: cfg80211: set country_elem to NULL
The link loop will always have a valid link so that
it's always set, but static checkers don't always
see that, so set it to NULL explicitly.
Fixes: efbabc116500 ("cfg80211: Indicate MLO connection info in connect and roam callbacks")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 253289327
Change-Id: I6e904f9645e6cd63f67a2dbd14b14b59ee2690b8
(cherry picked from commit e3d331c9b6205d21ace0f5285d21a5ba553c1068)
Signed-off-by: Kiran Kumar Lokere <quic_klokere@quicinc.com>
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
@@ -722,7 +722,7 @@ void __cfg80211_connect_result(struct net_device *dev,
|
||||
bool wextev)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
const struct element *country_elem;
|
||||
const struct element *country_elem = NULL;
|
||||
const u8 *country_data;
|
||||
u8 country_datalen;
|
||||
#ifdef CONFIG_CFG80211_WEXT
|
||||
|
||||
Reference in New Issue
Block a user