Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2453690imd; Fri, 2 Nov 2018 11:40:13 -0700 (PDT) X-Google-Smtp-Source: AJdET5eB4gvxX1tmr/MMqZD53Ump6y+0Aq//wKSqfozA54Ph01XX3ChuVOkt/05lS1/8ZAXhXIVe X-Received: by 2002:a62:7d10:: with SMTP id y16-v6mr12719743pfc.245.1541184013318; Fri, 02 Nov 2018 11:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184013; cv=none; d=google.com; s=arc-20160816; b=djFb2uWZ77hiCkGIQYkNCAeL29V2LmOf3G8hBrY7/rfgI4dDhquZ2Ayg1+uHFjfjcJ 2yt5lr70t5W4uSzvncNnO4NT3CVZkyu+Bfz7Rl8fnsI3OgfrmRNyrgZoL7HFoMneFX2L Hb6evRcCuLARJmd+/e3LQFhjk4ukgM/BE+9/+aZ8wCPHvBXQBGqHbCf04RaKBa05CK6W M8d2103UMoV/GLLFMxYZi5HDNZzuh/uL1yYwcuqmhdK7nXIy3dcJvP1FdN01ESG6pJRN T9rPA4td8oTddMtui9Tt/a7nHzq/MujykuPEeKjSW/uykv8MnFwuuucZW6IXpLu1tTZk lW/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LdwQXX2EOtlYulv7008cefz0byoMZu8/fjFMoaPdsto=; b=Yhhj7kLyMT/MHIEgLgLHuLvc2sgkxB24PCwyTdgygUwBq5N7vhQJ73xv+KHWCq4rCi 8VQkim52jXYyW90Yyi8pfkYN/6WCNXTUT0xi0weFtshgZKwOnN3yTncSv6fylfcz2d2J 5FjFDwDKtD7udQNm+m81Wft4Od+4mLMJAGVh+cC9c1cLJKcEbxesbo9+BpYTy2wqbwVI 5xwVIXv27IxiX+SDMuupXlO8vRq9YTZEUoldblfv46VlrJcMdODnC20QTWapx8X8MG/s cI92TgL08C+VqLF2oRlEDmKU0nhmy3crgG1Z8SbSth5+1v8vebvjr6FpxNJgKKwMXVFF 74aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=En3DcqOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7-v6si34337156pgc.343.2018.11.02.11.39.58; Fri, 02 Nov 2018 11:40:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=En3DcqOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728946AbeKCDq5 (ORCPT + 99 others); Fri, 2 Nov 2018 23:46:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:40858 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728028AbeKCDq4 (ORCPT ); Fri, 2 Nov 2018 23:46:56 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 217C72081B; Fri, 2 Nov 2018 18:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183925; bh=LZgzXaqyZmivfIimZTlZsxJrQF6zy9IdI37eS5DrYAE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=En3DcqOfw35ly7vQ12CJDH4lYh+74R5faWeGZpP1xKFAR97FhsfJGFQ4qF+B3BTuw qFqXziHDMMcwKareZMwjLbUI2L662WFnkYlJz8nxSGRRhWn/f9hzMQJH0oNs0IqdXG Oyu5926L4YhgUShvO8nQg+TMDITieO/TdH+x1x1E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrei Otcheretianski , Luca Coelho , Johannes Berg , Sasha Levin Subject: [PATCH 4.18 006/150] cfg80211: reg: Init wiphy_idx in regulatory_hint_core() Date: Fri, 2 Nov 2018 19:32:48 +0100 Message-Id: <20181102182902.900498345@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 24f33e64fcd0d50a4b1a8e5b41bd0257aa66b0e8 ] 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: 806a9e39670b ("cfg80211: make regulatory_request use wiphy_idx instead of wiphy") Signed-off-by: Andrei Otcheretianski Signed-off-by: Luca Coelho [add fixes tag] Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/reg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 2f702adf2912..765dedb12361 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2867,6 +2867,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.17.1