Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2731674pxb; Tue, 12 Oct 2021 12:17:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2y0qM2CB0ricMNEX9zQHL3AleebaKlSZe6zmFZVx05/Tx1mSWPpkQWoNI1NyJx8Y1GOrN X-Received: by 2002:a50:e089:: with SMTP id f9mr2278230edl.290.1634066259606; Tue, 12 Oct 2021 12:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634066259; cv=none; d=google.com; s=arc-20160816; b=TXcwmk3Oh/nhMpYRFx71PVN69SyPzpVAvDKuqywWvcqVgJ+RgCxbgjM9NSkUJs9GFn 7SJ9bxQ74mfozNyQyk2OCQ3U3JcxO8kzQAkO5i8/aNhVZuqMvKUrl0Orn+elC7hhh9sy ikL77ffctEsu5wFrRvSYgzvLmgZh62HI6m8zVOONIFK0SWKCXVNJSXGYrTIPpI58XZUh avG5SC4qhe0cHSGhlI3zGM5+JKAplzLP3za0WwAahHkUPJLnZH9kO0e9eXNDazsnFJJR FsyFhKCy9tXxr3kTzok/+/JJuDTr47CEV5uivMaWQ0UBIAei5US5oYCXqLlPKerx69D5 6+ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:cc:to:subject:from :dkim-signature; bh=uBmoHcvDAgOPh1Hmz56AsjMHkAXvyBgHcNr1XBB7fHc=; b=kpfg15nnL/3/y/15vM5qW4Obcrgabo8WQWlumHwS6A4w9GmjJepedWJYKCg0lRTDeX /hKEewVoH6RD/TJCS6MmLUSnT2afWSUXoOeJQvt7ZT5TJHJk/VPGSU95KfKDzrYunYMr qUMuowAewoAq/s1pF4wfleywHCDQ6IUue7d56gROSWaScbud6kJB+Mfdk4qdHkVM0Om9 IxN/+SV7e9QtsvA+E3mR1q4qbpbpZ9klZnIj/PrrJvazutaKOvt7F3InvLDxF8BYpqKc c1JcZZRALfGSRigBP9YOgtNzfabOSXFgGnAvHaOnTvIPsyZpl+FlgWt4d1cpEM94VRay YcMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=naTDaZFY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si16504985eda.181.2021.10.12.12.17.17; Tue, 12 Oct 2021 12:17:39 -0700 (PDT) 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=fail header.i=@nbd.name header.s=20160729 header.b=naTDaZFY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbhJLTPx (ORCPT + 63 others); Tue, 12 Oct 2021 15:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232462AbhJLTPw (ORCPT ); Tue, 12 Oct 2021 15:15:52 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48A56C061570 for ; Tue, 12 Oct 2021 12:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date: Message-ID:Cc:To:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uBmoHcvDAgOPh1Hmz56AsjMHkAXvyBgHcNr1XBB7fHc=; b=naTDaZFY8RHybDryQpVotmLIgG NogSBjT6rqYXn2E2n5Aze0NBDH4plq4vxRqQNfq3dboIfobovZkxH+4m0ThfiFzSaK53u78VZOOxO qky4AFCavaoXFG+TTzHRT/d1uCibdDviE9Dz8PLK5gouxWOEAYnRSQ57tOk2KkEhBsJg=; Received: from p4ff1322b.dip0.t-ipconnect.de ([79.241.50.43] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1maNDg-0007hI-JK; Tue, 12 Oct 2021 21:13:48 +0200 From: Felix Fietkau Subject: pull request: mt76 2021-10-11 v2 To: Kalle Valo Cc: linux-wireless Message-ID: Date: Tue, 12 Oct 2021 21:13:47 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Kalle, here's an updated version of my first pull request for 5.16 - Felix The following changes since commit 9b793db5fca44d01f72d3564a168171acf7c4076: b43: fix a lower bounds test (2021-10-11 09:09:30 +0300) are available in the Git repository at: https://github.com/nbd168/wireless tags/mt76-for-kvalo-2021-10-12 for you to fetch changes up to 39e333d657f49619c65b9f5b59aa6405f13abf35: mt76: do not access 802.11 header in ccmp check for 802.3 rx skbs (2021-10-12 20:28:10 +0200) ---------------------------------------------------------------- mt76 patches for 5.16 * various bugfixes * endian fixes * mt7921 aspm support * cleanup * mt7921 testmode support * rate handling fixes * tx status fixes/improvements * mt7921 power management improvements * mt7915 LED support * DBDC fixes * mt7921 6GHz support * support for eeprom data in DT * mt7915 TWT support ---------------------------------------------------------------- Ben Greear (9): mt76: mt7915: fix he_mcs capabilities for 160mhz mt76: mt7915: fix potential NPE in TXS processing mt76: mt7915: fix hwmon temp sensor mem use-after-free mt76: mt7915: add ethtool stats support mt76: mt7915: add tx stats gathered from tx-status callbacks mt76: mt7915: add some per-station tx stats to ethtool mt76: mt7915: add tx mu/su counters to mib mt76: mt7915: add more MIB registers mt76: mt7915: add mib counters to ethtool stats Bo Jiao (2): mt76: mt7915: fix calling mt76_wcid_alloc with incorrect parameter mt76: mt7915: adapt new firmware to update BA winsize for Rx session Christophe JAILLET (1): mt76: switch from 'pci_' to 'dma_' API Dan Carpenter (1): mt76: mt7915: fix info leak in mt7915_mcu_set_pre_cal() Daniel Golle (2): mt76: support reading EEPROM data embedded in fdt dt: bindings: net: mt76: add eeprom-data property Deren Wu (4): mt76: mt7921: Fix out of order process by invalid event pkt mt76: mt7921: Add mt7922 support mt76: mt7921: fix dma hang in rmmod mt76: mt7921: add delay config for sched scan Felix Fietkau (4): mt76: mt7615: fix skb use-after-free on mac reset mt76: mt7915: fix WMM index on DBDC cards mt76: disable BH around napi_schedule() calls mt76: do not access 802.11 header in ccmp check for 802.3 rx skbs Leon Yen (2): mt76: connac: fix mt76_connac_gtk_rekey_tlv usage mt76: connac: fix GTK rekey offload failure on WPA mixed mode Lorenzo Bianconi (46): mt76: mt7921: fix endianness in mt7921_mcu_tx_done_event mt76: mt7921: avoid unnecessary spin_lock/spin_unlock in mt7921_mcu_tx_done_event mt76: mt7915: fix endianness warning in mt7915_mac_add_txs_skb mt76: mt7921: fix endianness warning in mt7921_update_txs mt76: mt7615: fix endianness warning in mt7615_mac_write_txwi mt76: mt7921: fix survey-dump reporting mt76: mt76x02: fix endianness warnings in mt76x02_mac.c mt76: mt7921: introduce testmode support mt76: mt7921: get rid of monitor_vif mt76: mt7921: get rid of mt7921_mac_set_beacon_filter mt76: mt7921: introduce mt7921_mcu_set_beacon_filter utility routine mt76: overwrite default reg_ops if necessary mt76: mt7615: move mt7615_mcu_set_p2p_oppps in mt76_connac module mt76: mt7921: fix endianness warnings in mt7921_mac_decode_he_mu_radiotap mt76: mt7915: introduce bss coloring support mt76: mt7915: improve code readability in mt7915_mcu_sta_bfer_ht mt76: mt7921: move mt7921_queue_rx_skb to mac.c mt76: mt7921: always wake device if necessary in debugfs mt76: mt7921: update mib counters dumping phy stats mt76: mt7921: start reworking tx rate reporting mt76: mt7921: add support for tx status reporting mt76: mt7921: report tx rate directly from tx status mt76: mt7921: remove mcu rate reporting code mt76: mt7921: remove mt7921_sta_stats mt76: mt7915: honor all possible error conditions in mt7915_mcu_init() mt76: mt7915: fix possible infinite loop release semaphore mt76: connac: set 6G phymode in mt76_connac_get_phy_mode{,v2} mt76: connac: enable 6GHz band for hw scan mt76: connac: add 6GHz support to mt76_connac_mcu_set_channel_domain mt76: connac: set 6G phymode in single-sku support mt76: connac: add 6GHz support to mt76_connac_mcu_sta_tlv mt76: connac: add 6GHz support to mt76_connac_mcu_uni_add_bss mt76: connac: enable hw amsdu @ 6GHz mt76: add 6GHz support mt76: mt7921: add 6GHz support mt76: introduce packet_id idr mt76: remove mt76_wcid pointer from mt76_tx_status_check signature mt76: substitute sk_buff_head status_list with spinlock_t status_lock mt76: schedule status timeout at dma completion mt76: introduce __mt76_mcu_send_firmware routine mt76: mt7915: introduce __mt7915_get_tsf routine mt76: mt7915: introduce mt7915_mcu_twt_agrt_update mcu command mt76: mt7915: introduce mt7915_mac_add_twt_setup routine mt76: mt7915: enable twt responder capability mt76: mt7915: add twt_stats knob in debugfs mt76: debugfs: improve queue node readability MeiChia Chiu (1): mt76: mt7915: add LED support Ryder Lee (21): mt76: mt7915: report HE MU radiotap mt76: mt7915: fix an off-by-one bound check mt76: mt7915: take RCU read lock when calling ieee80211_bss_get_elem() mt76: mt7915: cleanup -Wunused-but-set-variable mt76: mt7915: report tx rate directly from tx status mt76: mt7915: remove mt7915_sta_stats mt76: mt7915: add a missing HT flag for GI parsing mt76: mt7915: add control knobs for thermal throttling mt76: mt7915: send EAPOL frames at lowest rate mt76: mt7921: send EAPOL frames at lowest rate mt76: add support for setting mcast rate mt76: mt7915: add HE-LTF into fixed rate command mt76: mt7915: update mac timing settings mt76: use IEEE80211_OFFLOAD_ENCAP_ENABLED instead of MT_DRV_AMSDU_OFFLOAD mt76: add a bound check in mt76_calculate_default_rate() mt76: mt7915: rework debugfs queue info mt76: mt7915: rename debugfs tx-queues mt76: fill boottime_ns in Rx path mt76: mt7915: enable configured beacon tx rate mt76: mt7615: fix hwmon temp sensor mem use-after-free mt76: mt7615: fix monitor mode tear down crash Sean Wang (12): mt76: mt7921: enable aspm by default mt76: fix build error implicit enumeration conversion mt76: add mt76_default_basic_rate more devices can rely on mt76: mt7921: fix mgmt frame using unexpected bitrate mt76: mt7915: fix mgmt frame using unexpected bitrate mt76: mt7921: report HE MU radiotap mt76: mt7921: fix firmware usage of RA info using legacy rates mt76: mt7921: fix kernel warning from cfg80211_calculate_bitrate mt76: mt7921: fix the inconsistent state between bind and unbind mt76: mt7921: robustify hardware initialization flow mt76: mt7921: fix retrying release semaphore without end mt76: drop MCU header size from buffer size in __mt76_mcu_send_firmware Shayne Chen (3): mt76: mt7915: fix potential overflow of eeprom page index mt76: mt7915: switch proper tx arbiter mode in testmode mt76: mt7915: fix bit fields for HT rate idx Xing Song (1): mt76: use a separate CCMP PN receive counter for management frames Xingbang Liu (1): mt76: move spin_lock_bh to spin_lock in tasklet YN Chen (2): mt76: mt7921: add .set_sar_specs support mt76: connac: add support for limiting to maximum regulatory Tx power jing yangyang (1): mt76: fix boolreturn.cocci warnings Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml | 5 + drivers/net/wireless/mediatek/mt76/debugfs.c | 19 +- drivers/net/wireless/mediatek/mt76/eeprom.c | 14 ++ drivers/net/wireless/mediatek/mt76/mac80211.c | 214 +++++++++++++++++++--- drivers/net/wireless/mediatek/mt76/mcu.c | 8 +- drivers/net/wireless/mediatek/mt76/mt76.h | 82 +++++++-- drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 11 +- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 3 + drivers/net/wireless/mediatek/mt76/mt7603/pci.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c | 29 ++- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 6 +- drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 62 ++++--- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 8 +- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 40 ++-- drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h | 2 - drivers/net/wireless/mediatek/mt76/mt7615/pci.c | 4 +- drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7615/sdio.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c | 2 +- drivers/net/wireless/mediatek/mt76/mt76_connac.h | 7 +- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 258 +++++++++++++++++++++++--- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 34 +++- drivers/net/wireless/mediatek/mt76/mt76x0/pci.c | 4 +- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 15 +- drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c | 12 +- drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 3 + drivers/net/wireless/mediatek/mt76/mt76x2/pci.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 289 +++++++++++++++++++---------- drivers/net/wireless/mediatek/mt76/mt7915/init.c | 146 +++++++++++++-- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 635 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--------- drivers/net/wireless/mediatek/mt76/mt7915/mac.h | 11 +- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 358 +++++++++++++++++++++++++++++++++--- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 382 ++++++++++++++++---------------------- drivers/net/wireless/mediatek/mt76/mt7915/mcu.h | 76 +++----- drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 3 +- drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 124 ++++++++++--- drivers/net/wireless/mediatek/mt76/mt7915/pci.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7915/regs.h | 148 ++++++++++++++- drivers/net/wireless/mediatek/mt76/mt7915/testmode.c | 29 +++ drivers/net/wireless/mediatek/mt76/mt7915/testmode.h | 10 + drivers/net/wireless/mediatek/mt76/mt7921/Makefile | 1 + drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c | 58 +++++- drivers/net/wireless/mediatek/mt76/mt7921/dma.c | 36 +--- drivers/net/wireless/mediatek/mt76/mt7921/eeprom.c | 1 + drivers/net/wireless/mediatek/mt76/mt7921/init.c | 86 +++++++-- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 556 +++++++++++++++++++++++++++++++++++++++----------------- drivers/net/wireless/mediatek/mt76/mt7921/mac.h | 28 +++ drivers/net/wireless/mediatek/mt76/mt7921/main.c | 151 +++++++++------ drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 274 +++++++++++----------------- drivers/net/wireless/mediatek/mt76/mt7921/mcu.h | 63 +++---- drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h | 50 ++--- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 18 +- drivers/net/wireless/mediatek/mt76/mt7921/regs.h | 8 +- drivers/net/wireless/mediatek/mt76/mt7921/testmode.c | 197 ++++++++++++++++++++ drivers/net/wireless/mediatek/mt76/sdio.c | 2 +- drivers/net/wireless/mediatek/mt76/testmode.c | 4 +- drivers/net/wireless/mediatek/mt76/testmode.h | 7 + drivers/net/wireless/mediatek/mt76/tx.c | 84 ++++++--- drivers/net/wireless/mediatek/mt76/usb.c | 2 +- 59 files changed, 3427 insertions(+), 1271 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mt7921/testmode.c