Return-path: Received: from paleale.coelho.fi ([176.9.41.70]:46960 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727597AbeIEJet (ORCPT ); Wed, 5 Sep 2018 05:34:49 -0400 From: Luca Coelho To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Andrei Otcheretianski , Luca Coelho Date: Wed, 5 Sep 2018 08:06:12 +0300 Message-Id: <20180905050614.23273-8-luca@coelho.fi> (sfid-20180905_070634_500948_AA79B434) In-Reply-To: <20180905050614.23273-1-luca@coelho.fi> References: <20180831083130.15525-1-luca@coelho.fi> <20180905050614.23273-1-luca@coelho.fi> Subject: [RESEND PATCH v2 7/9] 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