Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9448869ybc; Sat, 30 Nov 2019 07:31:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwrenFXLLHcaOQVZ/JcAiwHUaKKpurT0x+YimxA1PmvDMntPVgd20UIUwMUuJIhGEj1GYyM X-Received: by 2002:aa7:c39a:: with SMTP id k26mr51175192edq.128.1575127895627; Sat, 30 Nov 2019 07:31:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575127895; cv=none; d=google.com; s=arc-20160816; b=AdysDcOPeJI1J2aZQDhV0pmLe7n5wRamZAgMOThEl2U6Re+rQRXQLwSAMBz2jWsmgW M5i0mmJk7TJ5LVR13hqfy73MkbnkXFvvp9X49boqVcaHucneVIYT0jbjj/AsIsFd5Vyb BO8O0tuG+uIT7Chs8iXN3fvt/q1zR7ulpAckZRrArt0yX/Uo1xvCbbfE+7btzaw9wgOn D3OR1nRDi6L9Nyxj7Vl76wJ+vwNpLynfku/tVx7nVAg6KZjWzyzcbJhZikv1WGgZjdNe XO7XxdtGg+0tHGK+lQmFEd2D1HqB2BDyeR4RYoFegF8T8dev2T9uH97Mh2jOjMMx5/rw fhEw== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=T90GlHyZd70rOf1PD49/1jJ0GA93k3tqYQjbJrfYu04=; b=a8kE5L2USpDswOXhN//NP+eWe4R9DoRTpI9xoyn9fo/meM20xniE/v3kMvpKNlr7ke btA7we9Jt8sGtRQOdmOQSvv/tr2WMlsnFrjSALvIrgv/r7WNI6C/DfxEyQb13+IPXnln Ud1J72qkIlWP1pSAHnRNzHByogQOFeGm5SiBPtrACIEzzj8vhaMQmPpvb2fdk698s5NY RgqfNV+KzQ9415FqImO6oAtXHj6MsKLRXkqoXZXBNoF87KYyk/obx6u8md9MnA31DR0L u+lFlwfrwhuVE75mxiTXlRDVzAtdLJjkEXQ79YAzhAf/kZ0qsm/MTSdsIuQoikAWJeo7 CGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Ek5sDJvZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 r8si6754741edw.220.2019.11.30.07.30.50; Sat, 30 Nov 2019 07:31:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Ek5sDJvZ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbfK3Pas (ORCPT + 99 others); Sat, 30 Nov 2019 10:30:48 -0500 Received: from nbd.name ([46.4.11.11]:56024 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726659AbfK3Par (ORCPT ); Sat, 30 Nov 2019 10:30:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=T90GlHyZd70rOf1PD49/1jJ0GA93k3tqYQjbJrfYu04=; b=Ek5sDJvZ3QlMGKUuoTfYLvD8Pu KEaH+I4WQG1G3RNeosPxGILhs7BzhqxSqzUQ7NDagyGSOoTecA2mqfFRizgJA7kfLpahrStGGqk+K tuvcl6OdGCKdiQRT4WKngNt8Q3Mek3mBCTBuUm+xYqq+YpUwK1nXATKaNtZLPm6Ip+W0=; Received: from p5b2067e3.dip0.t-ipconnect.de ([91.32.103.227] helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ib4hq-0006hC-Gq for linux-wireless@vger.kernel.org; Sat, 30 Nov 2019 16:30:46 +0100 Received: by maeck.local (Postfix, from userid 501) id 06A72721EBD7; Sat, 30 Nov 2019 16:30:45 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 29/29] mt76: mt7615: update beacon contents on BSS_CHANGED_BEACON Date: Sat, 30 Nov 2019 16:30:45 +0100 Message-Id: <20191130153045.28105-29-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191130153045.28105-1-nbd@nbd.name> References: <20191130153045.28105-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Beacon changes need to be sent to the firmware, otherwise it will keep sending stale data Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index a7e1ab22c81c..ef14779fdbc4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -406,17 +406,16 @@ static void mt7615_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_ASSOC) mt7615_mcu_set_bss_info(dev, vif, info->assoc); - /* TODO: update beacon content - * BSS_CHANGED_BEACON - */ - if (changed & BSS_CHANGED_BEACON_ENABLED) { mt7615_mcu_set_bss_info(dev, vif, info->enable_beacon); mt7615_mcu_wtbl_bmc(dev, vif, info->enable_beacon); mt7615_mcu_set_sta_rec_bmc(dev, vif, info->enable_beacon); - mt7615_mcu_set_bcn(hw, vif, info->enable_beacon); } + if (changed & (BSS_CHANGED_BEACON | + BSS_CHANGED_BEACON_ENABLED)) + mt7615_mcu_set_bcn(hw, vif, info->enable_beacon); + mutex_unlock(&dev->mt76.mutex); } -- 2.24.0