Dan Carpenter and Felix Fietkau
ca76c1bced
wifi: mt76: mt7996: remove duplicate check in mt7996_mcu_sta_mld_setup_tlv()
...
The "msta_link" pointer has two NULL checks. Delete the second check.
Signed-off-by: Dan Carpenter <[email protected] >
Acked-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-05-21 14:30:01 +02:00
sunliming and Felix Fietkau
925d156dab
wifi: mt76: mt7996: fix uninitialized symbol warning
...
Fix below smatch warnings:
drivers/net/wireless/mediatek/mt76/mt7996/main.c:952 mt7996_mac_sta_add_links()
error: uninitialized symbol 'err'.
drivers/net/wireless/mediatek/mt76/mt7996/main.c:1133 mt7996_set_rts_threshold()
error: uninitialized symbol 'ret'.
Reported-by: kernel test robot <[email protected] >
Reported-by: Dan Carpenter <[email protected] >
Closes: https://lore.kernel.org/r/[email protected] /
Signed-off-by: sunliming <[email protected] >
Link: https://patch.msgid.link/[email protected]
2025-05-21 14:25:17 +02:00
Qasim Ijaz and Felix Fietkau
7fdbe4cb5c
wifi: mt76: mt7996: avoid null deref in mt7996_stop_phy()
...
In mt7996_stop_phy() the mt7996_phy structure is
dereferenced before the null sanity check which could
lead to a null deref.
Fix by moving the dereference operation after the
sanity check.
Fixes: 69d54ce7491d ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: Qasim Ijaz <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-05-21 14:25:17 +02:00
Qasim Ijaz and Felix Fietkau
d0ef73122e
wifi: mt76: mt7996: avoid NULL pointer dereference in mt7996_set_monitor()
...
The function mt7996_set_monitor() dereferences phy before
the NULL sanity check.
Fix this to avoid NULL pointer dereference by moving the
dereference after the check.
Fixes: 69d54ce7491d ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: Qasim Ijaz <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-05-21 14:25:17 +02:00
Qasim Ijaz and Felix Fietkau
29363a6691
wifi: mt76: mt7996: prevent uninit return in mt7996_mac_sta_add_links
...
If link_conf_dereference_protected() or mt7996_vif_link()
or link_sta_dereference_protected() fail the code jumps to
the error_unlink label and returns ret which is uninitialised.
Fix this by setting err before jumping to error_unlink.
Fixes: c7e4fc362443 ("wifi: mt76: mt7996: Update mt7996_mcu_add_sta to MLO support")
Fixes: dd82a9e02c05 ("wifi: mt76: mt7996: Rely on mt7996_sta_link in sta_add/sta_remove callbacks")
Signed-off-by: Qasim Ijaz <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-05-21 14:10:11 +02:00
Shayne Chen and Felix Fietkau
55218e6360
Revert "wifi: mt76: mt7996: fill txd by host driver"
...
This reverts commit 3b522cadedfe6e9e0e8193d7d4ab5aa8d0c73209.
The MTK connac3 has introduced new hardware, SDO (Software Defined
Offload), to offload the process of filling the TX descriptor. Initially,
there were some issues, but after several fixes, it should now be stable,
allowing us to revert this commit.
Additionally, activating SDO is essential for the proper functioning of
features like TX checksum offload.
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-16 17:13:03 +02:00
Charles Han and Felix Fietkau
be28ef77e3
wifi: mt76: mt7996: Add NULL check in mt7996_thermal_init
...
devm_kasprintf() can return a NULL pointer on failure,but this
returned value in mt7996_thermal_init() is not checked.
Add NULL check in mt7996_thermal_init(), to handle kernel NULL
pointer dereference error.
Fixes: 69d54ce7491d ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: Charles Han <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 11:07:15 +02:00
StanleyYP Wang and Felix Fietkau
a19543c7e0
wifi: mt76: mt7996: rework radar HWRDD idx
...
The definition of MT_RX_SEL (for rdd_rx_sel) is mixed with the
definition of HWRDD idx.
For example, MT_RX_SEL2 is for background HWRDD idx, not an
option of rdd_rx_sel.
Additionally, HWRDD idx does not exactly map to band idx for
Connac 3 chips. So, add mt7996_get_rdd_idx as a helper function.
Finally, remove some parts of the code inherited from the legacy chips.
For instance,
1. rdd_state is used for single-band-dual-HWRDD chips (for 80+80),
especially the 76xx series.
2. rdd_rx_sel is also used for single-band-dual-HWRDD chips
rx_sel = 0 => RDD0 for WF0, RDD1 for WF2
rx_sel = 1 => RDD0 for WF1, RDD1 for WF3
Chip Variants | 5G rdd idx | Background rdd idx
---------------------------|----------------|-------------------
MT7996 (except 205/255) | 1 | 2
MT7992 | 1 | 2
MT7990 | 1 | 2
Signed-off-by: StanleyYP Wang <[email protected] >
Reviewed-by: Shayne Chen <[email protected] >
Reviewed-by: Money Wang <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:40:33 +02:00
Peter Chiu and Felix Fietkau
f8c3dd3677
wifi: mt76: mt7996: add PCI device id for mt7990
...
Add PCI device IDs to enable support for mt7990 chipsets.
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
StanleyYP Wang and Felix Fietkau
bc588ac3d1
wifi: mt76: mt7996: rework background radar check for mt7990
...
The MT7990 comes in 2T2R and 3T3R variants, with only the 2T2R supporting
background radar.
Signed-off-by: StanleyYP Wang <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Shayne Chen and Felix Fietkau
10c3ea97a8
wifi: mt76: connac: rework TX descriptor and TX free for mt7990
...
Adjust the TX descriptor and TX free for updated hardware fields.
This is a preliminary patch to support mt7990 chipset.
Co-developed-by: StanleyYP Wang <[email protected] >
Signed-off-by: StanleyYP Wang <[email protected] >
Co-developed-by: Benjamin Lin <[email protected] >
Signed-off-by: Benjamin Lin <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Peter Chiu and Felix Fietkau
d0799f3303
wifi: mt76: mt7996: adjust HW capabilities for mt7990
...
This is a preliminary patch to support mt7990 chipset.
Co-developed-by: Howard Hsu <[email protected] >
Signed-off-by: Howard Hsu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
StanleyYP Wang and Felix Fietkau
51db7a2d57
wifi: mt76: mt7996: add eeprom support for mt7990
...
Add eeprom definition and default bin file for mt7990.
This is a preliminary patch to support mt7990 chipset.
Signed-off-by: StanleyYP Wang <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
StanleyYP Wang and Felix Fietkau
a8def214d7
wifi: mt76: mt7996: rework register mapping for mt7990
...
Rework register offset and l1/l2/cbtop mapping for mt7990.
This is a preliminary patch to support mt7990 chipset.
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: StanleyYP Wang <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Peter Chiu and Felix Fietkau
6243414a4e
wifi: mt76: mt7996: rework DMA configuration for mt7990
...
Modify DMA ring setting for mt7990.
This is a preliminary patch to support mt7990 chipset.
Co-developed-by: StanleyYP Wang <[email protected] >
Signed-off-by: StanleyYP Wang <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Peter Chiu and Felix Fietkau
3908cf04aa
wifi: mt76: mt7996: rework WA mcu command for mt7990
...
Since mt7990 lacks WA firmware, some WA commands are not supported or
need to be refactored to use the SDO command.
This is a preliminary patch to support mt7990 chipset.
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
StanleyYP Wang and Felix Fietkau
a2dd2f7896
wifi: mt76: connac: add support to load firmware for mt7990
...
Add firmware download support. Note that mt7990 does not have WA and DSP
firmwares. This is a preliminary patch to support mt7990 chipset.
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: StanleyYP Wang <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Shayne Chen and Felix Fietkau
63a4edf1cb
wifi: mt76: mt7996: add macros for pci decive id
...
The chipset name (i.e., brand name) used by the driver may cause confusion
with the PCI device ID when adding support for new chipsets.
| Chipset name | PCI device id |
|--------------|----------------|
| 7996 | 0x7990, 0x7991 |
| 7992 | 0x7992, 0x799a |
| 7990 | 0x7993, 0x799b |
To prevent confusion, replace the code that directly uses the device ID
with macros. This is a preliminary patch to support mt7990 chipset.
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-04-11 10:29:38 +02:00
Johannes Berg and Felix Fietkau
de635e1e3a
wifi: mt76: mt7996: fix locking in mt7996_mac_sta_rc_work()
...
The 'continue' statements need to be under spinlock, since
the spinlock needs to be held as a loop invariant.
Fixes: 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")
Signed-off-by: Johannes Berg <[email protected] >
2025-03-20 10:35:27 +01:00
Lorenzo Bianconi and Felix Fietkau
d5cddf65f7
wifi: mt76: mt7996: Update mt7996_tx to MLO support
...
Rework mt7996_tx routine in order to support multi-link
setup.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
d01b9d300e
wifi: mt76: mt7996: rework mt7996_ampdu_action to support MLO
...
Active/de-active TX/RX BA sessssion for each active links running
mt7996_ampdu_action routine.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
70717b761a
wifi: mt76: mt7996: rework set/get_tsf callabcks to support MLO
...
This is a preliminary patch in order to enable MLO for MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
974e6c2df9
wifi: mt76: mt7996: set vif default link_id adding/removing vif links
...
This info will be consumed by subsequent patches (e.g. in set/get tsf
routines).
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
c788d5748d
wifi: mt76: mt7996: rework mt7996_mcu_beacon_inband_discov to support MLO
...
Rework mt7996_mcu_beacon_inband_discov routine in order to support
multi-link setup.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
56529041b3
wifi: mt76: mt7996: rework mt7996_mcu_add_obss_spr to support MLO
...
Rework mt7996_mcu_add_obss_spr routine in order to support multi-link
setup.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
d1a5a0afa6
wifi: mt76: mt7996: rework mt7996_net_fill_forward_path to support MLO
...
Rework mt7996_net_fill_forward_path routine in order to support multi-link
setup.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
b9682a51c1
wifi: mt76: mt7996: rework mt7996_update_mu_group to support MLO
...
Rework mt7996_update_mu_group routine in order to support multi-link
setup.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
057822770c
wifi: mt76: mt7996: rework mt7996_mac_sta_poll to support MLO
...
Rework mt7996_mac_sta_poll routine in order to support multi-link
setup.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
275e6a681b
wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO
...
Rework mt7996_mac_sta_rc_work routine in order to support multi-link
setup.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
3668d57795
wifi: mt76: mt7996: remove mt7996_mac_enable_rtscts()
...
It is controlled by FW, also, driver should not directly write WTBL to
prevent WTBL overwritten issues.
Signed-off-by: Shayne Chen <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
60967d28a5
wifi: mt76: mt7996: rework mt7996_sta_hw_queue_read to support MLO
...
Extend mt7996_sta_hw_queue_read to support multi-link setup.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
9c6ec015af
wifi: mt76: mt7996: rework mt7996_set_hw_key to support MLO
...
Modify mt7996_set_hw_key routine to work in a multi-link setup.
This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Lorenzo Bianconi and Felix Fietkau
a369b0c14d
wifi: mt76: mt7996: Add mt7996_sta_link to mt7996_mcu_add_bss_info signature
...
This is a preliminary patch to introduce MLO support for MT996 driver.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
9b4de3ce7f
wifi: mt76: mt7996: rework mt7996_sta_set_4addr and mt7996_sta_set_decap_offload to support MLO
...
Rework mt7996_sta_set_4addr and mt7996_sta_set_decap_offload routines in
order to properly support multi-link. This is a preliminary patch to enable
MLO for MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
87c437fa8b
wifi: mt76: mt7996: rework mt7996_rx_get_wcid to support MLO
...
The wcid idx and band idx in the TXS are sometimes mismatched since the
FW will select a transmission link according to a private algorithm.
That is, the wcid idx in the TXS would be the one registered by the
driver rather than the actual wcid idx used during transmission.
However, the band idx in the TXS is the band select for transmission.
Therefore, we should get the driver-registered wcid in order
to notify the driver the packet has been acked; otherwise,
the driver will be unable to match the transmitted packet and its TXS.
This is a preliminary patch to enable MLO for MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
21aa0c2884
wifi: mt76: mt7996: Rely on wcid_to_sta in mt7996_mac_add_txs_skb()
...
This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
e0b422f2ac
wifi: mt76: mt7996: rework mt7996_mac_write_txwi() for MLO support
...
Update mt7996_mac_write_txwi routine and all the called subroutines to
support MLO.
This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
58e8b71782
wifi: mt76: mt7996: Add mt7996_mcu_teardown_mld_sta rouine
...
mt7996_mcu_teardown_mld_sta is used to remove MLO configuration from the
MCU. This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
2a005953dc
wifi: mt76: mt7996: Add mt7996_mcu_sta_mld_setup_tlv() and mt7996_mcu_sta_eht_mld_tlv()
...
mt7996_mcu_sta_mld_setup_tlv is needed to push MLO configuration to the
MCU. This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Shayne Chen and Felix Fietkau
a3b651aeb5
wifi: mt76: mt7996: Update mt7996_mcu_add_rate_ctrl to MLO
...
Update mt7996_mcu_add_rate_ctrl routine and all the called subroutines
to support MLO.
This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-19 13:05:59 +01:00
Johannes Berg and Felix Fietkau
7757e7c140
wifi: mac80211: call rate_control_rate_update() for link STA
...
In order to update the right link information, call the update
rate_control_rate_update() with the right link_sta, and then
pass that through to the driver's sta_rc_update() method. The
software rate control still doesn't support it, but that'll be
skipped by not having a rate control ref.
Since it now operates on a link sta, rename the driver method.
Signed-off-by: Johannes Berg <[email protected] >
Signed-off-by: Miri Korenblit <[email protected] >
Link: https://patch.msgid.link/20241007144851.5851b6b5fd41.Ibdf50d96afa4b761dd9b9dfd54a1147e77a75329@changeid
Signed-off-by: Johannes Berg <[email protected] >
2025-03-19 13:05:44 +01:00
Lorenzo Bianconi and Felix Fietkau
d195324131
wifi: mt76: mt7996: Rely on mt7996_vif/sta_link in twt teardown
...
This is a preliminary patch to enable MLO for MT7996 driver
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Shayne Chen and Felix Fietkau
200ce414fe
wifi: mt76: mt7996: Rely on mt7996_vif_link in mt7996_mcu_twt_agrt_update signature
...
This is a preliminary patch to enable MLO for MT7996 driver
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Shayne Chen and Felix Fietkau
0eee20d3e3
wifi: mt76: mt7996: Update mt7996_mcu_add_sta to MLO support
...
Update mt7996_mcu_add_sta routine and all the called subroutines to
support MLO. This is a preliminary patch to enable MLO for MT7996
driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Lorenzo Bianconi and Felix Fietkau
2efb26f1fc
wifi: mt76: mt7996: Support MLO in mt7996_mac_sta_event()
...
Similar to mt7996_mac_sta_add() adn mt7996_mac_sta_remove(), update
mt7996_mac_sta_event routine to take into account MLO support.
Please note mcu routines does not support MLO yet.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Shayne Chen and Felix Fietkau
1de1808215
wifi: mt76: mt7996: Add mt7996_mac_sta_change_links callback
...
Intrdouce mt7996_mac_sta_change_links routine to set change_sta_links
required by mac80211. This is a preliminary patch to introduce MLO
support for MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Co-developed-by: Lorenzo Bianconi <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Lorenzo Bianconi and Felix Fietkau
46e20e5d74
wifi: mt76: mt7996: Rely on mt7996_sta_link in sta_add/sta_remove callbacks
...
Generalize mt7996_mac_sta_add() and mt7996_mac_sta_remove() routines to
deal with mt7996_sta_link structure.
This is a preliminary patch to introduce MLO support for MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Lorenzo Bianconi and Felix Fietkau
3082c9edbe
wifi: mt76: mt7996: Add mt7996_sta_state routine
...
Introduce mt7996_sta_state routine in order to initialize wcid structure
in mt7996 codebase. This is a preliminary patch to enable MLO support in
MT7996 driver.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:38:01 +01:00
Lorenzo Bianconi and Felix Fietkau
f419c62e91
wifi: mt76: mt7996: Add link_info_changed callback
...
Convert bss_info_changed mac80211 callback in link_info_changed one.
This is a preliminary patch to enable MLO support in MT7996 driver.
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:37:53 +01:00
Lorenzo Bianconi and Felix Fietkau
3e06380a43
wifi: mt76: mt7996: Add vif_cfg_changed callback
...
Introduce vif_cfg_changed mac80211 callback as preliminary patch to
enable MLO support in MT7996 driver.
Co-developed-by: Bo Jiao <[email protected] >
Signed-off-by: Bo Jiao <[email protected] >
Co-developed-by: Peter Chiu <[email protected] >
Signed-off-by: Peter Chiu <[email protected] >
Co-developed-by: Shayne Chen <[email protected] >
Signed-off-by: Shayne Chen <[email protected] >
Signed-off-by: Lorenzo Bianconi <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-12 10:37:42 +01:00