Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp52405imu; Thu, 8 Nov 2018 14:37:51 -0800 (PST) X-Google-Smtp-Source: AJdET5fBIeoxSqa1RIHGVARElAANMYX8Kunrl2MbCQnENYk/thfubUUxzvFFjjSF/nmEtLN/k2ps X-Received: by 2002:a17:902:70c9:: with SMTP id l9-v6mr6054408plt.329.1541716671468; Thu, 08 Nov 2018 14:37:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716671; cv=none; d=google.com; s=arc-20160816; b=vXavluoQaSbGPYV8+JJlU2jSmuTYgtpXtCpKmpmu5rbN6M4vHB7vzteAzOGGzfi8Ys MbWFYjN6kEAXo42/bMqxX+iVEBPB7tuYEqOx8Jjroe4W6nYpBJlYGOkg9rYG6nbfUpwL RFGwT5uGuRhUDUfOrX3U/FQ0ZmhAo4nve5WfqwTRM1+oa6eWOEzuwe0SjsSOidgX7qGR X/TVfBdFMlcyhvYmDaM0H6bd9EEXeBpd1Wx4eXUg6J7TJ/UJbALX69QdZW+xkZTteiFZ +u3mJhJxwGlAPhQsndLj0odGkxpF5OkTYZ4i46DA62vRjc5g6EvpNK0cbGb2bm+1uIWO LKjA== 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=rwCi+C0eAuz08F512Ibei+LkVmSI+j7Ck9VMr+4Qgxc=; b=yMN9mPZzODm9bW9khK+FSVR0aNoNPxlcanRIQuMMtud9MK9Jd3swGeT5mu+AUHXLQh +lHG1qEEbklTtoWN+JKrSdW/z2w+n0n81BbVx6PxA3KpzmgLhTw3I6gkwyQG88e5ikxc zLD6ekrThGdqrjC98xDDEfro0f9urLqX7SexViQrEkQO8TIijIqrgbmnrW243G+4WL4y iT619hEYkTm2/E7nr7pF6KXSMEnKhLHCsb41zK6GV6nwcc4miDXWD7fVyQexhXGmsUdS cZqu/cGq5QIiR9nYiCuawSqY+HaQwjxiIYqK2xcmoJKNk1hEiz0aKvTKJ4PggMWj8zyg FIww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e3myy5+q; 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 c85-v6si5744036pfe.60.2018.11.08.14.37.36; Thu, 08 Nov 2018 14:37:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=e3myy5+q; 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 S1729776AbeKIHgN (ORCPT + 99 others); Fri, 9 Nov 2018 02:36:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:53434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbeKIHgN (ORCPT ); Fri, 9 Nov 2018 02:36:13 -0500 Received: from localhost (unknown [208.72.13.198]) (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 2463520892; Thu, 8 Nov 2018 21:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714325; bh=QL0xlfyZnYCL5sGoKwdQthXM7Vhq5LC/gi3REOGWTtQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e3myy5+q/CJtQ+a+TsndWbqHCY6EYa20HX0ViSlFIJJ2TZQNrZuIrF8FdS6NwUQ6Y jVgAgc6dTKBWOHPGtNwbcuUp3AMb3XKbMrMAOyOAytOD+kDIG/lgttZ1Yk2ZEK3I0P YlrqSCYWWWQzJt04BU4vly/fXpyGaLAEYLz2O4t0= 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.4 004/114] cfg80211: reg: Init wiphy_idx in regulatory_hint_core() Date: Thu, 8 Nov 2018 13:50:19 -0800 Message-Id: <20181108215059.395603189@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215059.051093652@linuxfoundation.org> References: <20181108215059.051093652@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.4-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 06d050da0d94..50dffd183cc6 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2367,6 +2367,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