wifi: cfg80211: set country_elem to NULL
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jul 2022 08:24:23 +0000 (10:24 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:21 +0000 (11:43 +0200)
commite3d331c9b6205d21ace0f5285d21a5ba553c1068
treec8352b54725e9e4e189eed28b3247a113f6ce757
parent7840bd468a99edac26492afa828b8fcbbbb2384e
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>
net/wireless/sme.c