diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-07-13 10:24:23 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-15 11:43:21 +0200 |
commit | e3d331c9b6205d21ace0f5285d21a5ba553c1068 (patch) | |
tree | c8352b54725e9e4e189eed28b3247a113f6ce757 /net/wireless/sme.c | |
parent | wifi: mac80211: remove link_id parameter from link_info_changed() (diff) | |
download | linux-e3d331c9b6205d21ace0f5285d21a5ba553c1068.tar.xz linux-e3d331c9b6205d21ace0f5285d21a5ba553c1068.zip |
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>
Diffstat (limited to 'net/wireless/sme.c')
-rw-r--r-- | net/wireless/sme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 22996d63c15f..62c773cf1b8d 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -723,7 +723,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 |