Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3121427rwb; Mon, 15 Aug 2022 18:38:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR7KZweMAwysSX9GU8Y/hrgxoQG47PPmlRA0zbgfEmiAuT1M422w0qrpsvykKS42lGlYzo+o X-Received: by 2002:a05:6402:ea1:b0:443:d90a:5d31 with SMTP id h33-20020a0564020ea100b00443d90a5d31mr4758443eda.121.1660613934992; Mon, 15 Aug 2022 18:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613934; cv=none; d=google.com; s=arc-20160816; b=jMmQ7Ls7z1UEzNd6RsZSJ1tmgiersYM3HLIMMM59NmZ3MDDH4/MbTR53TUP/2zct7b 5HL8YTqC0a0y9ik6r0ZR32fqBFr5l+3VonugFK/KrdKenOKZmH8qn+LzIOkcV9MIqLhI lVy36QhaoUl09h4C3dXkfANB0XZ/W4WEDxjxYssOS9kH0DRzcr2tjSB3/FNVGcScMWDl X1OT48u3wya3e/Xhyj6EpVyHswk88VoJQMqQVtBWhJHcXbFJA9tOvReZebRM/INnQ9CT +WURM9EpL/8PczH5OblwfISzVkZlfvaE9ICxvNw7CJbFEMfJeTaZ/MHOMKJE8nqTedri kHVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e380snDKP7G6Zqc9zAAVLkQXDTabfBnM5lQfCN9iprA=; b=VMQMnMeKItKkXJ0SJK9WYpO7L9Liu/4CvVq2s/gp0emw4kay4caWqe652Dd6vWFX20 cMvCh8FRB+yECJg1FeG1QGQPKtipvMexZQ7pxn9+rOqujlBzzHcx0yxm3YY1Vag3vWhv 0dpPa7fxm6nWqbaqxU6JuTrormjTi6vShdhXsibpgs9ONSChx/jQgF7hL1UkKPZ09dRg i8fb0+PkT3cPz0Q7oEYiTi/nWTNksTBqxtc4Cwg1cTYu69D+N9FwG9m1Lvdz/YWpp93s BHOjOhsOgzZlpG9qWlZrkjbFOg7bGDuTkXrlZ3AKKWuUX56dkaMIjDkbBkMNjOPwyLOG lk2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QgCpAtYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056402280400b0043d100bcf3bsi10623486ede.538.2022.08.15.18.38.30; Mon, 15 Aug 2022 18:38:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QgCpAtYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355225AbiHOXvl (ORCPT + 99 others); Mon, 15 Aug 2022 19:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355123AbiHOXrH (ORCPT ); Mon, 15 Aug 2022 19:47:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCC88C020; Mon, 15 Aug 2022 13:15:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7EEF06069F; Mon, 15 Aug 2022 20:15:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BB52C433C1; Mon, 15 Aug 2022 20:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594519; bh=kdc5HuFAFYp4Arr4949hQSaFEZ+/ws9O0bBEGlivX/o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QgCpAtYcW6oEwt8usTKRTRjzCwWIICeAeJGt2HrGLFTY5JnWnst9jBKoqvyXB1suH 0eJveydUBoWW+ymVfw5dgAdIVLDjlFByYw0BLXS96UmTYHK7blZuvsj/Pwlx0q9bpI 9kNeT6SxHs+UeXwG60euEoai4hf5K7R05uqqMBQc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sean Wang , Deren Wu , Felix Fietkau , Sasha Levin Subject: [PATCH 5.19 0472/1157] mt76: mt7921: not support beacon offload disable command Date: Mon, 15 Aug 2022 19:57:08 +0200 Message-Id: <20220815180458.487674833@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Deren Wu [ Upstream commit c149d3a9058616ff942a6e44b6e968e18a84dd5a ] Beacon disable flow would be handled in bss stop handler automatically. Force return -EOPNOTSUPP in disable case. Fixes: 116c69603b01 ("mt76: mt7921: Add AP mode support") Reviewed-by: Sean Wang Signed-off-by: Deren Wu Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c index 71cbb9073485..3765b345b741 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/mcu.c @@ -1256,8 +1256,11 @@ mt7921_mcu_uni_add_beacon_offload(struct mt7921_dev *dev, }; struct sk_buff *skb; + /* support enable/update process only + * disable flow would be handled in bss stop handler automatically + */ if (!enable) - goto out; + return -EOPNOTSUPP; skb = ieee80211_beacon_get_template(mt76_hw(dev), vif, &offs); if (!skb) @@ -1283,7 +1286,6 @@ mt7921_mcu_uni_add_beacon_offload(struct mt7921_dev *dev, } dev_kfree_skb(skb); -out: return mt76_mcu_send_msg(&dev->mt76, MCU_UNI_CMD(BSS_INFO_UPDATE), &req, sizeof(req), true); } -- 2.35.1