Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24f33e64 authored by Andrei Otcheretianski's avatar Andrei Otcheretianski Committed by Johannes Berg
Browse files

cfg80211: reg: Init wiphy_idx in regulatory_hint_core()



Core regulatory hints didn't set wiphy_idx to WIPHY_IDX_INVALID. Since
the regulatory request is zeroed, wiphy_idx was always implicitly set to
0. This resulted in updating only phy #0.
Fix that.

Fixes: 806a9e39 ("cfg80211: make regulatory_request use wiphy_idx instead of wiphy")
Signed-off-by: default avatarAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
[add fixes tag]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 94a5b3ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2867,6 +2867,7 @@ static int regulatory_hint_core(const char *alpha2)
	request->alpha2[0] = alpha2[0];
	request->alpha2[0] = alpha2[0];
	request->alpha2[1] = alpha2[1];
	request->alpha2[1] = alpha2[1];
	request->initiator = NL80211_REGDOM_SET_BY_CORE;
	request->initiator = NL80211_REGDOM_SET_BY_CORE;
	request->wiphy_idx = WIPHY_IDX_INVALID;


	queue_regulatory_request(request);
	queue_regulatory_request(request);