From patchwork Sat Oct 20 10:40:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10650357 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2192913A4 for ; Sat, 20 Oct 2018 10:42:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BEB8285DD for ; Sat, 20 Oct 2018 10:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F380628446; Sat, 20 Oct 2018 10:42:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CC5E28446 for ; Sat, 20 Oct 2018 10:42:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727321AbeJTSvD (ORCPT ); Sat, 20 Oct 2018 14:51:03 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:40505 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbeJTSvD (ORCPT ); Sat, 20 Oct 2018 14:51:03 -0400 Received: by mail-wr1-f53.google.com with SMTP id d2-v6so39924914wro.7 for ; Sat, 20 Oct 2018 03:41:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HJnbuMGLweM2nPZNG3RKcG5L2U49lFzjQdOBbegWLDc=; b=MkAU5jS62gNo8zpzgASsogePsToJpFymtTpYmqoLyiJR5W00a0ez/LmrIfpmeurtXZ jr0hcdQ9sanrb6cIStEroWhx2fp5UE1FWrLBtrC51WvPC4Z07dwVYhAXM3nFRXYWx9Hg mSBCMPXiQr7JiInQLktCGSZTVVD7noaESDSFbOCNWJJCGgYmBZ8U3VTNKgW+xV+ImEef EQizDkQf1w8s5X4Kw7BLnSRya3iJuq2nqy+pBezClz6GUMDzPkq4ql9mF80eqy3xaKkU mLO+ca+cQ9GQZN0/RmHWDG0ObbrmjlKuXTBPvbRDbRpFTy/Yl5iyDpHQ1azd1+RFWvnL Nwjg== X-Gm-Message-State: AGRZ1gL0eiTfcepBrvTOCPoSj1AW8Uj3dC/FwHIq7j6v6J/7fQ9GDugp PuD1QZlf/SqvTwiK45Bs3jZgoV2M0h4= X-Google-Smtp-Source: AJdET5fXSTqKmgjWz2cMYSfKAjU2Q4FHQySmbUrNralnyu+lSLqtoxJC6E4xWvbOxMNUb7K4+s1hzQ== X-Received: by 2002:adf:e5c8:: with SMTP id a8-v6mr1796748wrn.321.1540032062105; Sat, 20 Oct 2018 03:41:02 -0700 (PDT) Received: from localhost.localdomain ([151.66.57.235]) by smtp.gmail.com with ESMTPSA id x17-v6sm23205207wrs.84.2018.10.20.03.41.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Oct 2018 03:41:01 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 0/4] unify drv_bss_info_changed between mt76x0 and mt76x2 Date: Sat, 20 Oct 2018 12:40:51 +0200 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Unify drv_bss_info_changed mac80211 callback between mt76x0 and mt76x2. Move ack timeout and protection utility routines in mt76x02-lib module. This series is based on top of 'enable AP support in mt76x0e driver' one: https://patchwork.kernel.org/cover/10650335/ Lorenzo Bianconi (4): mt76: move mt76x02_set_tx_ackto in mt76x02-lib module mt76x0: update init vals for MT_TX_PROT registers mt76: move tx protection routines in mt76x02-lib module mt76: move mt76x02_bss_info_changed in mt76x02-lib module .../wireless/mediatek/mt76/mt76x0/Makefile | 3 +- .../wireless/mediatek/mt76/mt76x0/initvals.h | 15 ++-- .../net/wireless/mediatek/mt76/mt76x0/mac.c | 77 ---------------- .../net/wireless/mediatek/mt76/mt76x0/main.c | 63 -------------- .../wireless/mediatek/mt76/mt76x0/mt76x0.h | 8 -- .../net/wireless/mediatek/mt76/mt76x0/pci.c | 4 +- .../net/wireless/mediatek/mt76/mt76x0/usb.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x02.h | 7 ++ .../net/wireless/mediatek/mt76/mt76x02_mac.c | 30 +++++++ .../net/wireless/mediatek/mt76/mt76x02_mac.h | 4 +- .../net/wireless/mediatek/mt76/mt76x02_util.c | 87 +++++++++++++++++++ .../wireless/mediatek/mt76/mt76x2/Makefile | 4 +- .../wireless/mediatek/mt76/mt76x2/mt76x2.h | 3 - .../wireless/mediatek/mt76/mt76x2/pci_init.c | 19 +--- .../wireless/mediatek/mt76/mt76x2/pci_mac.c | 50 ----------- .../wireless/mediatek/mt76/mt76x2/pci_main.c | 69 +-------------- 16 files changed, 147 insertions(+), 300 deletions(-) delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/mac.c delete mode 100644 drivers/net/wireless/mediatek/mt76/mt76x2/pci_mac.c