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

Commit ad0a661a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cfg80211: discard regulatory hints from country IEs with undefined wiphy"

parents 5b0d2ad9 051ac9bc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1557,7 +1557,8 @@ static void reg_process_hint(struct regulatory_request *reg_request,
	if (reg_request->wiphy_idx != WIPHY_IDX_INVALID)
		wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx);

	if (reg_initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) {
	if ((reg_initiator == NL80211_REGDOM_SET_BY_DRIVER ||
	     reg_initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) && !wiphy) {
		kfree(reg_request);
		return;
	}