Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp903887imu; Tue, 11 Dec 2018 09:19:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/V7hbG3rGTeBE76aor5CZGxsym8WhBpTHSkCTvVBFqPs09tyHj+0LDsmdKiyPP34uq45xYU X-Received: by 2002:a17:902:d83:: with SMTP id 3mr16353057plv.43.1544548750345; Tue, 11 Dec 2018 09:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544548750; cv=none; d=google.com; s=arc-20160816; b=eNGpF7eP5uMJQvypFzlkZGI5fORhGAX997oBc6VdDFZ4oFV+hwAXh+LcF8LL3mglJS 9L8BWwVPhWPSV7iHgM8UXRI5WlHvFfW2/dxx3CrlxmUWQp6RVt+74R1WmsX9/09TbPHT W+2T6kkpPihVdq6Aa9guaDQlHuybn9tB8mD5CyU3XiOgOyOj0M+HIi7RPMOR+iVz6clP SFMiqiEy7StsKT35AIULlxWvwyVJVgoQcHNmHn1RQyVF7/1Kd8P9jupoFa6x9aXeofzg qIvVZLZMzMRWIUKiJfMyL2lnYgu/aOi4G4hS0ABh6mgRygunvYi7XigctEhMr6P06+lU QDxg== 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=VXl9MFnehz1gqO3Dsri066WurAaktb1iw2HzipcUr/g=; b=RIRpQ+SvgJkaf6MKDRqCBIA56RrNjFghvU+PcAvwPzsjDMSAohBX7uuCiPb6izDasV jUvQl1zsU1ErGiLFxA6vOGvzkPPeoktdxDcCcL3OFIdzlwEpOB8wv5mFGI8r1/piO+W5 bCDwZ7/3YsjcDd1zoukrO9eRhGuCo6AakEFRwK3GEdtZLfH47D+7NgZCTZXUFlRjx5iG kRzurjJgH18VNdH+qPem/YgOvFLhd0f/m69FMkcMzp0o1nDClP4fb0nxbsctJ2FB+gsD 737z/izsHZ4LGKdFo6xe5/RevFvpqwund553uOFOHoK3ne823wJ8+1OiiFZln5IG2XS1 1EqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HiOCxHqE; 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 u8si12489246pgl.25.2018.12.11.09.18.55; Tue, 11 Dec 2018 09:19:10 -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=HiOCxHqE; 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 S1730428AbeLKP67 (ORCPT + 99 others); Tue, 11 Dec 2018 10:58:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:48528 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730371AbeLKP64 (ORCPT ); Tue, 11 Dec 2018 10:58:56 -0500 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 45DB620855; Tue, 11 Dec 2018 15:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543935; bh=wlPtdAoWH6p4IKAZfm2mh1rFWzLzBNpFcbrMTbKFdjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HiOCxHqEFiN7OlYUV8THM+LQIxKm1uxCiXVsxfjTFqTRi89tdhmGsFONxlJvGCteO LHfRxyKj/hmAH/+/jqp1zOooOKCn0deSlec20iHiUpcTw6d/GR/jwphC516pvitqP0 49BL2eM7F0pn9ficJUSekZvPr8zIk5tbHRm7gGUk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Greear , Johannes Berg Subject: [PATCH 4.19 114/118] mac80211: Clear beacon_int in ieee80211_do_stop Date: Tue, 11 Dec 2018 16:42:13 +0100 Message-Id: <20181211151648.862486569@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151644.216668863@linuxfoundation.org> References: <20181211151644.216668863@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ben Greear commit 5c21e8100dfd57c806e833ae905e26efbb87840f upstream. This fixes stale beacon-int values that would keep a netdev from going up. To reproduce: Create two VAP on one radio. vap1 has beacon-int 100, start it. vap2 has beacon-int 240, start it (and it will fail because beacon-int mismatch). reconfigure vap2 to have beacon-int 100 and start it. It will fail because the stale beacon-int 240 will be used in the ifup path and hostapd never gets a chance to set the new beacon interval. Cc: stable@vger.kernel.org Signed-off-by: Ben Greear Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/mac80211/iface.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1015,6 +1015,8 @@ static void ieee80211_do_stop(struct iee if (local->open_count == 0) ieee80211_clear_tx_pending(local); + sdata->vif.bss_conf.beacon_int = 0; + /* * If the interface goes down while suspended, presumably because * the device was unplugged and that happens before our resume,