Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3475274imu; Sun, 11 Nov 2018 15:58:22 -0800 (PST) X-Google-Smtp-Source: AJdET5dBwxddBNuyQlkwQmkEAh7Xp0H1G/yHiaARBncxa1UnXy7LMOPvQlHcfS3Yp6UWZXwEbqyy X-Received: by 2002:a63:1d62:: with SMTP id d34-v6mr15862184pgm.180.1541980702503; Sun, 11 Nov 2018 15:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980702; cv=none; d=google.com; s=arc-20160816; b=YhhCq7IFE+25vnFp7mrzqVJ6dis2iR0tV/bDQz5BTu7Pas0aoIkQfM3NCAXJps/MDU 8JXoOgxcbU+OWVSguX5xur0jOOb2v3tKSxwJDOkkLY9vqdc+7o0wwvTeZt+tuynwEeGc J4nxqfI2VqgqqzCGFnTRZLhoyjw06gWax5IDf8Nif+YKgW9GBJrDu2iQZIYe9ngHpEbS pGVoDfn8rpW9dgulmn/gIPG/p9dvsn1A8Qtv/9FVdLj7JdtP87VM7P6u887QYthzv859 CLvRxYUsJmYVxjTDAmvYVGUjS/0P07wfz4mn4Zhgji+8ZAWzfx24el3WfkfcJoOHG9A+ OKzA== 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=1BYQvBnR7e026ZPXw5ejvjNO3PoAPb9F+SMLl7zccjU=; b=e6m6D/PWkMphZgw1NCeAC71CDS+DDjZzpvj99xr81EGlQrKwJ+i/TWRKAu3c4Wz6vw PczgBOh7rs9/dRl84R/gif4yPsUnV8tZsJGN3t7/y/7hB5qQjvbQJAkGkA0elElyeV6P l/spuFs64Ew+unZEPghr9/cjdEAuhrN6WqIe7KWIP8P8uSBzj9GIJGIl7V1/0u5oQfAn AlPdXGxIr4OlNcJfuAJ0tsYS0cmWgmKRrAe4xsAEZi1Eznd6A3jOooB9zohm7IOdzhjU NtoKa97j3hoU4nE7qVaBURJnF5u2VIHqN67MaCaijmFypsaiFWHCVEgWeNs37jIQk3GT 5Wig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="k/AJ+3J6"; 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 p18si14632980pgb.469.2018.11.11.15.58.07; Sun, 11 Nov 2018 15:58:22 -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="k/AJ+3J6"; 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 S1732480AbeKLISJ (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:34210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732359AbeKLISI (ORCPT ); Mon, 12 Nov 2018 03:18:08 -0500 Received: from localhost (unknown [206.108.79.134]) (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 23A962241E; Sun, 11 Nov 2018 22:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975293; bh=ez/82esUj1UqRkw7RtQ2cPu2Nin5mbsNZOtXKtqmvtQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k/AJ+3J6lMzBr2xhvejWcSbSwZHLdaHlMVZ2s3kE04Zw+gwgO+XgharGxPl+0E20z voaDADmYbW8HjAMLvMz0z6CxtduWm78KcHfKR+o0s1OD34rZPvs4TSht5crnzRxpPg oP+k3sIiLhbaFcH+99kflDPT8YWsehC0XayvMvJM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Felix Fietkau Subject: [PATCH 4.19 211/361] mt76: mt76x2: fix multi-interface beacon configuration Date: Sun, 11 Nov 2018 14:19:18 -0800 Message-Id: <20181111221649.667904028@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Felix Fietkau commit 5289976ad887deb07c76df7eecf553c264aeebed upstream. If the first virtual interface is a station (or an AP with beacons temporarily disabled), the beacon of the second interface needs to occupy hardware beacon slot 0. For some reason the beacon index was incorrectly masked with the virtual interface beacon mask, which prevents the secondary interface from sending beacons unless the first one also does. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/mediatek/mt76/mt76x2_mac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_mac.c @@ -128,8 +128,7 @@ __mt76x2_mac_set_beacon(struct mt76x2_de if (skb) { ret = mt76_write_beacon(dev, beacon_addr, skb); if (!ret) - dev->beacon_data_mask |= BIT(bcn_idx) & - dev->beacon_mask; + dev->beacon_data_mask |= BIT(bcn_idx); } else { dev->beacon_data_mask &= ~BIT(bcn_idx); for (i = 0; i < beacon_len; i += 4)