Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2501825pxb; Sun, 16 Jan 2022 22:56:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+bMc/+ANRNiWZQCzTuCCJmuIAj0smfPXFUkh8+OTjbaBhEcT8KtKRiTPL3WLlggUDa6q1 X-Received: by 2002:a05:6a00:10d5:b0:4be:d3f9:c329 with SMTP id d21-20020a056a0010d500b004bed3f9c329mr12460461pfu.2.1642402608278; Sun, 16 Jan 2022 22:56:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642402608; cv=none; d=google.com; s=arc-20160816; b=xaPuwDl7YLa+U1fBEGGfraFrjHGX5xygNGcKViL7YEUL8GQ8LSrzLrfVnu2VQVCVv4 K0ylLXvDk81n3dOYfjCdo7KrVVeaP0v9v1FW9fpp5Av6uIH0HD1lUxM3hBaCT5+NmXZM WP6A3RlOg/0OEJJeCMKsNTWezX09UpYI1VR/IpYvHyfa+11msVobuvg4CxlftFa8/e3O kz8vUMggsyoLY2KfCU1VTzV0XoXfQ5Gqbo0LCfLPlcTETvFguYulkg+Yd1PQmqvsdPAZ CUcIJrbKfKrbcF4tCuuIIoaw8iZ1+C9bgGfaAdxD+D936dE3EX6s+PT3mZ0C3fzmLKr+ dUrw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jMo1KMMDW04/2SaTs82r5EULRihu970fwFTRUnSuB8g=; b=aE9X6vvFe2DqCD6zX4r9SZ1cuU5NFuRT91cIgmJdHt5m4SrDYD5yqKysBGrh2ZevYE ToaCIvTslWMXBd5UTlhwQLJzEZJq2m6UaERATd/mbO+G8x5X61mexKEeLYXPGuNcyUSX DTiO3lGRkzJlQz518GyrVl7qI2VQ/ov5j4kAoFPTAdZydw3aiv75Tc22M/m+IMWXmmgJ l91YZe5ab53VPZmAqr3ggmnlO9Ar4CRFEK2butrYPY33ANMpY98IlYpPHtcjXqeWQEiC 6iz/qQOZKTWplhknNUmD7k+lkIfyI/exgDfAl0+2gatM4rkaUwLC3euqVvkI+W0+qnbk DTVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VQ743kjk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si13929156plh.157.2022.01.16.22.56.34; Sun, 16 Jan 2022 22:56:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VQ743kjk; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233088AbiAPMn5 (ORCPT + 70 others); Sun, 16 Jan 2022 07:43:57 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:58660 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiAPMn4 (ORCPT ); Sun, 16 Jan 2022 07:43:56 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 81A17B80CBB for ; Sun, 16 Jan 2022 12:43:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC40AC36AE7; Sun, 16 Jan 2022 12:43:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642337034; bh=XV3paZK+vmYKFf8PhlZXcQzH4kxxf2UM4nZbmgChfC0=; h=From:To:Cc:Subject:Date:From; b=VQ743kjkhKvszxPXRBs9ykByZGrO9u+WesYMqOYDp4IMcrnmKUh9387hStr8pSl4d W2J8WTp17gvKYF89u1VFnb8u7mDUHj5mmieZApxKwiwN6S0c3iz5XiqxwmARyrSRMQ cGHF+sP69aUNgUD85vrNPKm30FQcgm2m/OqrYjk7x8wGy0IaYHICM2+/HWftwV2Jdb /CSO5DamcVZMCzzbwa9AFYGGgpuIabqN35jXid0YrIOVSQzFU12rdk1g7kt5JMvcXu x+uc99mgoGWLTSZXjyXJhHQf7s24ePHtC3uWrNIEia4vaXEycu4OdJ1bOZnPuXI915 Nb7a0Dzj9hmxA== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, ryder.lee@mediatek.com, sean.wang@mediatek.com Subject: [PATCH 0/5] move shared mac code in mt76_connac module Date: Sun, 16 Jan 2022 13:43:13 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Move mac code shared between mt7921 and mt7915 drivers in mt76_connac_mac.c and remove duplicated code. Lorenzo Bianconi (5): mt76: connac: move mt76_connac_lmac_mapping in mt76-connac module mt76: connac: move common mac defs in mt76_connac_mac.h mt76: connac: move mt76_connac_reverse_frag0_hdr_trans in common module mt76: connac: move he radiotap parsing in connac module mt76: connac: move mt76_connac_mac_write_txwi in connac module .../net/wireless/mediatek/mt76/mt76_connac.h | 14 + .../wireless/mediatek/mt76/mt76_connac_mac.c | 362 ++++++++++++++++ .../wireless/mediatek/mt76/mt76_connac_mac.h | 296 +++++++++++++ .../net/wireless/mediatek/mt76/mt7915/mac.c | 396 +---------------- .../net/wireless/mediatek/mt76/mt7915/mac.h | 279 +----------- .../net/wireless/mediatek/mt76/mt7915/main.c | 3 +- .../wireless/mediatek/mt76/mt7915/mt7915.h | 6 - .../wireless/mediatek/mt76/mt7915/testmode.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/mac.c | 398 +----------------- .../net/wireless/mediatek/mt76/mt7921/mac.h | 293 +------------ .../net/wireless/mediatek/mt76/mt7921/main.c | 3 +- .../wireless/mediatek/mt76/mt7921/mt7921.h | 6 - 12 files changed, 717 insertions(+), 1341 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt76_connac_mac.h -- 2.34.1