From patchwork Tue Jul 9 10:12:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 811747 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E276515666B for ; Tue, 9 Jul 2024 10:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519946; cv=none; b=TGrE4p2yPijxBzgmM2kubiovUv7j7cuqhSmfWxAcYvzrDevSm/nnhiNHwr8K7X61A/kiy5BPAcaXnD1RDsf+FoELfvjDbpri+ue+0qgbi+mIN4SSV8T+0tJUnVpvWCyjaBvf1rxSGliCKA2VKi986DIzYCplKyGw+f9mH6rEEyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519946; c=relaxed/simple; bh=1+dOI7UU2isIQ5xvu1B3F177jR8pYeKHcIzCutw9o6A=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=taHbCBHxSkvSdvYVdtpaqF1ZsE88KVT9c9mlLvJGPYgQrYkhE+kGxxAjrP6eunt3hgvczaDruekEHc8/ShdPMvYlzGWxP2S0rPeeEWYa7FNWVKZH+LEzdFUGwHK07SB2wcfJYJKGev9meVib5Zhxwnv3Z0NXIcGLH5VbH5WSQSo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=D8nJNyUY; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="D8nJNyUY" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:Cc:To:Subject:From: MIME-Version:Date:Message-ID: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=0M6xdCbe0rNWamGyWWjFFxKd1L1RZWEJXE1djby1Fyg=; b=D8nJNyUYjvj44sI03NHqDbVEsA cG0cWcgP5Y5XSp1SOj/xIycIJYXGB7oQLMTVmojQy2JUd/KDRQwlom3DKvGZSfz/q3wNm6mmPIT2v bMgBfSdFxoCBngHVuFZnmfGkSAWg8BxdW9efA4W3gU4GfgbcP/pFBIfMQRByi5T/cge0=; Received: from p54ae937c.dip0.t-ipconnect.de ([84.174.147.124] helo=nf.local) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1sR7pd-004NPf-2u; Tue, 09 Jul 2024 12:12:21 +0200 Message-ID: Date: Tue, 9 Jul 2024 12:12:21 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Felix Fietkau Subject: pull request: mt76 2024-07-08 v2 To: Kalle Valo Cc: linux-wireless Content-Language: en-US Autocrypt: addr=nbd@nbd.name; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHk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SrOsROx22eZ26KqcW4ny7+va2FnvjsZgI8h4sDmaLzKczVRIiLITiMpLFEU/VoSv0m1F4B FtRgoiyjFzigWG0MsTdAN6FJzGh4mWWGIlE7o5JraNhnTd+yTUIPtw3ym6l8P+gbvfoZida0 TspgwBWLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCeMncXpbbWNT2AtoAYICrKyX5R3iMAoMhw cL98efvrjdstUfTCP2pfetyN Hi Kalle, here's an update for my first request for 6.11. It fixes the sparse errors - Felix The following changes since commit 1b431ba4ef9a760e7643d6fbc53bf522d59650f3: wifi: iwlwifi: mvm: re-enable MLO (2024-07-04 13:50:10 +0200) are available in the Git repository at: https://github.com/nbd168/wireless tags/mt76-for-kvalo-2024-07-08 for you to fetch changes up to c9e23794c12486851076160656d0d18c3490b956: wifi: mt76: mt792x: fix scheduler interference in drv own process (2024-07-08 11:58:05 -0700) ---------------------------------------------------------------- mt76 patches for 6.11 - mt7925 MLO support - mt7925 fix ---------------------------------------------------------------- Deren Wu (5): wifi: mt76: mt792x: add struct mt792x_bss_conf wifi: mt76: mt792x: add struct mt792x_link_sta wifi: mt76: mt792x: add struct mt792x_chanctx wifi: mt76: mt7925: support for split bss_info_changed method wifi: mt76: mt7925: extend mt7925_mcu_set_tx with for per-link BSS Michael Lo (1): wifi: mt76: mt792x: fix scheduler interference in drv own process Sean Wang (79): wifi: mt76: mt792x: extend mt76_connac_mcu_uni_add_dev for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_add_bss_info for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_set_timing for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_ifs_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_color_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_he_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_qos_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_mld_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_bmc_tlv for per-link BSS wifi: mt76: mt7925: remove unused parameters in mt7925_mcu_bss_bmc_tlv wifi: mt76: mt7925: extend mt7925_mcu_bss_sec_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_bss_basic_tlv for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_set_bss_pm for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_[abort, set]_roc for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_uni_bss_bcnft for per-link BSS wifi: mt76: mt7925: extend mt7925_mcu_uni_bss_ps for per-link BSS wifi: mt76: mt7925: add mt7925_mcu_bss_rlm_tlv to constitue the RLM TLV wifi: mt76: mt7925: mt7925_mcu_set_chctx rely on mt7925_mcu_bss_rlm_tlv wifi: mt76: mt7925: extend mt7925_mcu_sta_update for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_state_v2_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_rate_ctrl_tlv with per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_eht_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_he_6g_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_he_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_amsdu_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_vht_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_ht_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_phy_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_get_phy_mode_ext for per-link STA wifi: mt76: mt7925: extend mt7925_get_phy_mode for per-link STA wifi: mt76: mt792x: extend mt76_connac_get_phy_mode_v2 for per-link STA wifi: mt76: mt762x: extend mt76_connac_mcu_sta_basic_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_sta_hdr_trans_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_add_bss_info for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_bss_mld_tlv for per-link STA wifi: mt76: mt7925: extend mt7925_mcu_bss_basic_tlv for per-link STA wifi: mt76: mt7925: add mt7925_mac_link_sta_add to create per-link STA wifi: mt76: mt7925: add mt7925_mac_link_sta_assoc to associate per-link STA wifi: mt76: mt7925: add mt7925_mac_link_sta_remove to remove per-link STA wifi: mt76: mt7925: add mt7925_mac_link_bss_add to create per-link BSS wifi: mt76: mt7925: add mt7925_mac_link_bss_remove to remove per-link BSS wifi: mt76: mt7925: simpify mt7925_mcu_sta_cmd logic by removing fw_offload wifi: mt76: mt7925: update mt76_connac_mcu_uni_add_dev for MLO wifi: mt76: mt7925: update mt7925_mac_link_sta_[add, assoc, remove] for MLO wifi: mt76: mt7925: set Tx queue parameters according to link id wifi: mt76: mt7925: set mt7925_mcu_sta_key_tlv according to link id wifi: mt76: mt7925: add mt7925_set_link_key wifi: mt76: mt7925: extend mt7925_mcu_uni_roc_event wifi: mt76: mt7925: add mt7925_change_vif_links wifi: mt76: mt7925: add mt7925_change_sta_links wifi: mt76: mt7925: add link handling in mt7925_mac_sta_add wifi: mt76: mt7925: add link handling in mt7925_mac_sta_remove wifi: mt76: mt7925: add link handling to txwi wifi: mt76: mt7925: add link handling in mt7925_set_key wifi: mt76: mt7925: add link handling to mt7925_change_chanctx wifi: mt76: mt7925: add link handling in the BSS_CHANGED_PS handler wifi: mt76: mt7925: add link handling in mt7925_mcu_set_beacon_filter wifi: mt76: mt7925: add link handling in mt7925_txwi_free wifi: mt76: mt7925: add link handling in mt7925_mac_sta_assoc wifi: mt76: mt7925: add link handling in mt7925_sta_set_decap_offload wifi: mt76: mt7925: add link handling in mt7925_vif_connect_iter wifi: mt76: mt7925: add link handling in the BSS_CHANGED_ARP_FILTER handler wifi: mt76: mt7925: add link handling in the mt7925_ipv6_addr_change wifi: mt76: mt7925: update rate index according to link id wifi: mt76: mt7925: report link information in rx status wifi: mt76: add def_wcid to struct mt76_wcid wifi: mt76: mt7925: add mt7925_[assign,unassign]_vif_chanctx wifi: mt76: mt7925: update mt7925_mcu_sta_mld_tlv for MLO wifi: mt76: mt7925: update mt7925_mcu_bss_mld_tlv for MLO wifi: mt76: mt7925: update mt7925_mcu_add_bss_info for MLO wifi: mt76: mt7925: update mt7925_mcu_sta_update for MLO wifi: mt76: mt7925: add mt7925_mcu_sta_eht_mld_tlv for MLO wifi: mt76: mt7925: update mt7925_mcu_sta_rate_ctrl_tlv for MLO wifi: mt76: mt7925: update mt7925_mcu_sta_phy_tlv for MLO wifi: mt76: mt7925: update mt7925_mcu_set_timing for MLO wifi: mt76: mt7925: update mt7925_mcu_bss_basic_tlv for MLO wifi: mt76: mt7925: update mt7925_mac_link_bss_add for MLO wifi: mt76: mt7925: remove the unused mt7925_mcu_set_chan_info wifi: mt76: mt7925: enabling MLO when the firmware supports it drivers/net/wireless/mediatek/mt76/mac80211.c | 5 + drivers/net/wireless/mediatek/mt76/mt76.h | 8 + drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 10 +- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 58 ++++---- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h | 30 +++- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 6 +- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 66 +++++---- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 143 +++++++++--------- drivers/net/wireless/mediatek/mt76/mt7921/mcu.c | 46 +++--- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 3 + drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.c | 4 +- drivers/net/wireless/mediatek/mt76/mt7925/init.c | 6 + drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 141 +++++++++++------- drivers/net/wireless/mediatek/mt76/mt7925/main.c | 1119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------- drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 981 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------- drivers/net/wireless/mediatek/mt76/mt7925/mcu.h | 65 +++++++- drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h | 31 ++-- drivers/net/wireless/mediatek/mt76/mt7925/pci.c | 3 + drivers/net/wireless/mediatek/mt76/mt7925/pci_mac.c | 6 +- drivers/net/wireless/mediatek/mt76/mt792x.h | 105 ++++++++++++- drivers/net/wireless/mediatek/mt76/mt792x_core.c | 111 ++++++++++---- drivers/net/wireless/mediatek/mt76/mt792x_mac.c | 8 +- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 7 +- drivers/net/wireless/mediatek/mt76/pci.c | 23 +++ 24 files changed, 2117 insertions(+), 868 deletions(-)