Return-path: Received: from paleale.coelho.fi ([176.9.41.70]:45532 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727222AbeHaNAj (ORCPT ); Fri, 31 Aug 2018 09:00:39 -0400 From: Luca Coelho To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Andrei Otcheretianski , Luca Coelho Date: Fri, 31 Aug 2018 11:31:28 +0300 Message-Id: <20180831083130.15525-27-luca@coelho.fi> (sfid-20180831_105448_791318_1F2372CB) In-Reply-To: <20180831083130.15525-1-luca@coelho.fi> References: <20180831083130.15525-1-luca@coelho.fi> Subject: [PATCH 26/28] cfg80211: reg: Init wiphy_idx in regulatory_hint_core() Sender: linux-wireless-owner@vger.kernel.org List-ID: ) From: Andrei Otcheretianski 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. Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca Coelho --- net/wireless/reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 043d43573ca2..0eb5e44f8a74 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2932,6 +2932,7 @@ static int regulatory_hint_core(const char *alpha2) request->alpha2[0] = alpha2[0]; request->alpha2[1] = alpha2[1]; request->initiator = NL80211_REGDOM_SET_BY_CORE; + request->wiphy_idx = WIPHY_IDX_INVALID; queue_regulatory_request(request); -- 2.18.0