Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp130240lqq; Wed, 12 Jun 2024 20:05:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVC/mP0mPCLfLDrDEaqX7LFzuuvC6+5tS364ytKnWAFhadWlAG7GqLQBLogcAzvACPULrZDzfGOHFQpYFOeenzLYNdRH8XX0r3w+g2lWQ== X-Google-Smtp-Source: AGHT+IEysLpiZa9lQQRy9T7+lUHynNLEgM2yxsDbo2yLJ/TpuzuRTcu2QjQqnCK7X8IGE1Efrqtp X-Received: by 2002:a5b:610:0:b0:dfe:1daf:b33d with SMTP id 3f1490d57ef6-dfe68b15539mr3885011276.56.1718247956130; Wed, 12 Jun 2024 20:05:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718247956; cv=pass; d=google.com; s=arc-20160816; b=BOtAtZgwbwXu8T5tURpKlfNViCAgsXvt/fQrLm9+G4LBF8gxLUiVnrf83On5Jq+DKS zrKnfrRDzn928C/WL3pGwJsx5oB5q6sZz4YfAZ049MDcXRHHACJFYLatQwEUjr3RvYEf ftEJHCqNKBUSri7u0+Ji+boW2zNgN5APnD3h7qNJY0bv3ohC4157o8i5kMD+Nz744Iyv Ndk11JvQG1C3HuUF/lMeRvXgXXzZMnbxZd9/Uu7YkTh2+RHyXsIaao6ka4IWquSxTHFY LEY5j1ku1aIwVF/UXVjGbyuL87y0Ui/C8LPnzXwSinP2g/5/5bg+OPQ2JnJ4ULYv13oL bMyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=8jO8Gc5RDctWw/ZhCBLlPB6OeGfOoPDaHWniwL5VRGE=; fh=ML36dOX4HMNdWYoVPzKQnTwwX/99gqWW0nHu/Ej9mUk=; b=B9nooBHkWhZ1jowu6tj2HhYa/jy996y8oqhuEQWs7twxby8VtDCkarrBlMUQt1CXvK 0Dglg4HXtUHELr5h9fqDIGUpOIQ9AivdO7RnjkDxQA88qD8RDP7XIbgFrVYQIoScekPG C3deEtyeeEa1mXAHQm1b4tLwrgDvKLmmQx8vhWQ6NZKR+HSY4e74wuNKTD9FY6H4vcgE R+7ucoWnbpZ8cODYnRBdaTDn1/cFeI39gq1Y+xdUUL7sQgIapDMXN/fL9Lo78ydHUJUE X0hTO9XgnRqo/aZxLss/U31mtTVxLUGPPvi2dy2LJHBOnZxJ2LCPyc2O5fPKKMhpuZUh wb+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a70f5ee8si2978646d6.4.2024.06.12.20.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:05:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-8957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AE37D1C21A4E for ; Thu, 13 Jun 2024 03:05:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3561018028; Thu, 13 Jun 2024 03:04:24 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCB1813440F for ; Thu, 13 Jun 2024 03:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247864; cv=none; b=UPjZZY0qE5t5a1/0TYs2Kk85dt35fY/CCvWO42GnqEy61LZGZFBElTkc6TVb3dYCkuSR9t6l+FZCuo4kBMEAk9n0wtPruFXbiDDYFqCYdq+L1eLYBAbjZTSRZbrBZzWQFMn/4v+Aou9H8KIOzyaO2B35KNbOYKJ8xhi1cFtSDQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718247864; c=relaxed/simple; bh=X46nB7yMp0/gqmqHnr6a8KtwWTNIE5EIsP3Ib0g+0c4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BOMP+/2H+FKKMyqkI5EqnVMv0JwkrEStXCtQgv9NGR0AyTP85Em8HfN9x1O9gKs7J378C9uR5x18cTf/8frmJuX+SAyoX+W16lTqVf3uh7MOS02pK4iJ0HbITx4c77soVHgd51ulAVkKdlwX2eeENcXLMRM1WkCq0Ak5SxqKDlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-24c5ec50da1so92155fac.3 for ; Wed, 12 Jun 2024 20:04:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718247862; x=1718852662; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8jO8Gc5RDctWw/ZhCBLlPB6OeGfOoPDaHWniwL5VRGE=; b=gZgTxxNrwKx1MQ5+DQyvu3NctTk3IHTuLbyijoTaWX/LmDPUBflstgUONLVMEASakc Vg05IQGaOqbg2l5wFQFY7UyvI4GnszPW4jg3mlPPe5EpsZoORRglyXeRMLnqgdjcQ2VD wx/4FshF/guk5vr5GYY2Xz6pIjwy2CFxJvBVsS1vWn6wRB4SZDUdDA/Kl4IyZbqV5J+x B1DOoLfUNbGu5GpACOwDvMmoXqQ035of/AmV/lRvSXIqB96smA8LbZb3zXtq8fRdQQHA MM9XGacrT3DwBk8o8eg0W1XzD4v4iUu6kTlRqa1Z0t2bNpd1/xBdEThNuLbXoxFOqRCh y0Hg== X-Forwarded-Encrypted: i=1; AJvYcCV6VGblz3xHpw+So8QdsHAS+aibaPKk873eA2cCDIieR3//rybQ5Y1OITK3Z9r0PbW0avZB96rpHoRQlWFfLg==@vger.kernel.org X-Gm-Message-State: AOJu0YyYcugqvp51nTSH6XiVphSKjv0lVM7a0z1aQaBltGZoSskRzYCa GfIGowqc7BFyECX6cljjlz4MmIyW170KzF7jDaZGcB1/j1d4MNd+ X-Received: by 2002:a4a:8552:0:b0:5ba:ca86:a025 with SMTP id 006d021491bc7-5bb3b7a9135mr3998243eaf.0.1718247862043; Wed, 12 Jun 2024 20:04:22 -0700 (PDT) Received: from sean-ThinkPad-T450s.lan ([207.191.35.252]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5bd629263c5sm67685eaf.46.2024.06.12.20.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 20:04:20 -0700 (PDT) From: sean.wang@kernel.org To: nbd@nbd.name, lorenzo.bianconi@redhat.com Cc: sean.wang@mediatek.com, deren.wu@mediatek.com, mingyen.hsieh@mediatek.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 47/47] wifi: mt76: mt7925: simpify mt7925_mcu_sta_cmd logic by removing fw_offload Date: Wed, 12 Jun 2024 20:02:41 -0700 Message-Id: <20240613030241.5771-48-sean.wang@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240613030241.5771-1-sean.wang@kernel.org> References: <20240613030241.5771-1-sean.wang@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Sean Wang The mt7925 only supports offload firmware making the fw_offload check redundant. This update simplifies the logic in "mt7925_mcu_sta_cmd" by removing the unnecessary check for fw_offoad. Signed-off-by: Sean Wang --- drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c index 7156ba092302..c0b27d28a6d1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt7925/mcu.c @@ -1643,7 +1643,7 @@ mt7925_mcu_sta_cmd(struct mt76_phy *phy, if (IS_ERR(skb)) return PTR_ERR(skb); - if (info->link_sta || !info->offload_fw) + if (info->link_sta) mt76_connac_mcu_sta_basic_tlv(dev, skb, info->vif, info->link_sta, info->enable, info->newly); -- 2.34.1