Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2980275imu; Sun, 9 Dec 2018 14:11:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/XvO0MLFmuOI0ZiplDaDtUf96b2PQNNM+MoDKcN3Hw7MMAGg8B1XUanDLgPE1H5Srcxd5NC X-Received: by 2002:a63:a16:: with SMTP id 22mr8884832pgk.318.1544393506295; Sun, 09 Dec 2018 14:11:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544393506; cv=none; d=google.com; s=arc-20160816; b=QrXshZrmzeAp6J6Z7Xqjbq1X9oR6lO5B/bAl3xpOdAWzSmBI59KMInJyZOO5Sas46B YSfaxGFNjWiEGgmtlcBc8nQJuakOO7PpeupLnNWFynxD2r8VI+PETaSj0w4MDsA/JwgG wSzy/IMZX3NaOeFaXfTisctv0hV52QgZW9H1HFbU9FxW7yAfCt4NtKbeU0JLE82Durak Lxzyqzwc4RLQkW7/aKJllCFTkkJ/p30cz7d/b+toAWTJV7xMHEerKg7iU1LD1j4Cv/qn bad3hfgLQ13EFIvrotfiF+Cqm76Swuz66+rhwjJ/bu39UTuUDyx3iIMpyzumxu4fK733 5+Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=7NR+duDtNIy8FidQOQjK1Poxili+7HYBa9YjeX+InmM=; b=M3cupyMONUggQ9MYkcbnQe/+KN9mZFcxzkfBk5RrfkkJ4FcwoFDVVwEUCWzQ/Q2DtZ 8zjPrAqVTX34rAXqeLLUoKGM1uFY20KVseKo2f2aZxEyXIN973xzDTS31iI8fH/K9rgu 1l+balbgc9L6TsGDBipo4PDpoljbKmvJJATCYZpfthUOiM/iiN/IAoURt+gYBPdtEVjr nzKkf4Kc1gUFZtumZGOlPxRAXxlfUe7wb0E4jANHr1/EYeM+Tuq/eJyKjUQOJIm1Bkor VYAVYxED2p21OtHuu74Jw3P6LXAzH6URdvvunCaKlk6BQ37RJEyJK+wvQ1C7q4ZG0oio l5YQ== ARC-Authentication-Results: i=1; mx.google.com; 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 m35si7600761pgb.246.2018.12.09.14.11.31; Sun, 09 Dec 2018 14:11:46 -0800 (PST) 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; 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 S1727962AbeLIWKL (ORCPT + 99 others); Sun, 9 Dec 2018 17:10:11 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:37512 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726337AbeLIWKJ (ORCPT ); Sun, 9 Dec 2018 17:10:09 -0500 Received: from pub.yeoldevic.com ([81.174.156.145] helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gW737-0002ib-Jo; Sun, 09 Dec 2018 21:55:42 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gW72f-0003Tx-TI; Sun, 09 Dec 2018 21:55:13 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Andrei Otcheretianski" , "Johannes Berg" , "Luca Coelho" Date: Sun, 09 Dec 2018 21:50:33 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 195/328] cfg80211: reg: Init wiphy_idx in regulatory_hint_core() In-Reply-To: X-SA-Exim-Connect-IP: 81.174.156.145 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.62-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Andrei Otcheretianski commit 24f33e64fcd0d50a4b1a8e5b41bd0257aa66b0e8 upstream. 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: Ben Hutchings --- net/wireless/reg.c | 1 + 1 file changed, 1 insertion(+) --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -1993,6 +1993,7 @@ static int regulatory_hint_core(const ch 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);