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
Shayne Chen and Felix Fietkau
2e249744bc
wifi: mt76: Check link_conf pointer in mt76_connac_mcu_sta_basic_tlv()
...
This is a preliminary patch to introduce MLO support for MT7996 driver.
Signed-off-by: Shayne Chen <[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
Lorenzo Bianconi and Felix Fietkau
915938e83c
wifi: mt76: mt7996: Add mt7996_sta_link struct in mt7996_vif_link
...
Introduce mt7996_sta_link field in mt7996_vif_link structure instead of
mt7996_sta. This is a preliminary patch to support MLO 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:15 +01:00
Lorenzo Bianconi and Felix Fietkau
b3b61abd73
wifi: mt76: mt7996: Introduce mt7996_sta_link container
...
Similar to mt7996_vif_link, add mt7996_sta_link structure as driver
representation for sta links. 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:37:15 +01:00
Lorenzo Bianconi and Felix Fietkau
52f51a398e
wifi: mt76: mt7996: Add change_vif_links stub
...
change_vif_links callback is required by mac80211.
This is a preliminary patch to introduce MLO support 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:37:15 +01:00
Felix Fietkau
67c724cc60
Revert "wifi: mt76: mt7921: fix returned txpower"
...
This reverts commit ffd1cbfc48 .
2025-03-12 10:34:21 +01:00
Felix Fietkau
539e7e711a
Revert "wifi: mt76: mt7925: fix returned txpower"
...
This reverts commit 687e2fdfbf .
2025-03-12 10:34:17 +01:00
Felix Fietkau
e931cecc45
mt76: mt792x: fix unused variable warning
...
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-11 14:34:37 +01:00
Leon Yen and Felix Fietkau
1b370c689a
wifi: mt76: mt7921: avoid undesired changes of the preset regulatory domain
...
Some countries have strict RF restrictions where changing the regulatory
domain dynamically based on the connected AP is not acceptable.
This patch disables Beacon country IE hinting when a valid country code
is set from usersland (e.g., by system using iw or CRDA).
Signed-off-by: Leon Yen <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Tested-by: David Ruth <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-11 11:29:36 +01:00
Jakub Kicinski and Felix Fietkau
0ba7a69f89
wifi: mt76: move napi_enable() from under BH
...
mt76 does a lot of:
local_bh_disable();
napi_enable(...napi);
napi_schedule(...napi);
local_bh_enable();
local_bh_disable() is not a real lock, its most likely taken
because napi_schedule() requires that we invoke softirqs at
some point. napi_enable() needs to take a mutex, so move it
from under the BH protection.
Fixes: 413f0271f396 ("net: protect NAPI enablement with netdev_lock()")
Reported-by: Dan Carpenter <[email protected] >
Link: https://lore.kernel.org/[email protected]
Reviewed-by: Eric Dumazet <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected] >
2025-03-11 11:23:49 +01:00
Razvan Grigore and Felix Fietkau
a4be3fc9ed
wifi: mt76: mt7996: cleanup mt7996_get_power_bound
...
Refactor for making use of mt76_get_power_bound instead of the specific
mt7996_get_power_bound, since we need this for other chipsets as well
when calculating txpower
Signed-off-by: Razvan Grigore <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:24:28 +01:00
Razvan Grigore and Felix Fietkau
43aaa62fbc
wifi: mt76: mt7915: cleanup mt7915_get_power_bound
...
Refactor for making use of mt76_get_power_bound instead of the specific
mt7915_get_power_bound, since we need this for other chipsets as well
when calculating txpower
Signed-off-by: Razvan Grigore <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:24:28 +01:00
Razvan Grigore and Felix Fietkau
687e2fdfbf
wifi: mt76: mt7925: fix returned txpower
...
Similar to the mt7921, seems the code was copy-paste from there. This
bug was noticed by me and confirmed by many more people using this
chipset with openwrt: https://github.com/openwrt/mt76/issues/783
It seems that for this particular chipset the mt76_phy->txpower_cur is
never set, like in the case of other chipsets like mt7603, mt7615, etc.
The driver is correctly calculating the TX power adjustment based on the
number of antennas. However, the base TX power (phy->txpower_cur) is not
being properly initialized or set to a meaningful value. It's starting
at 0, so the final result is just the antenna gain compensation divided
by 2.
Signed-off-by: Razvan Grigore <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:24:28 +01:00
Razvan Grigore and Felix Fietkau
ffd1cbfc48
wifi: mt76: mt7921: fix returned txpower
...
This bug was noticed by me and confirmed by many more people using this
chipset with openwrt: https://github.com/openwrt/mt76/issues/783
It seems that for this particular chipset the mt76_phy->txpower_cur is
never set, like in the case of other chipsets like mt7603, mt7615, etc.
The driver is correctly calculating the TX power adjustment based on the
number of antennas. However, the base TX power (phy->txpower_cur) is not
being properly initialized or set to a meaningful value. It's starting
at 0, so the final result is just the antenna gain compensation divided
by 2.
Signed-off-by: Razvan Grigore <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:24:28 +01:00
Razvan Grigore and Felix Fietkau
f118073642
wifi: mt76: add mt76_get_power_bound helper function
...
This will replace mt7915_get_power_bound function from b/mt7915/mcu.h,
since we will need it also for mt7921 and mt7925
Signed-off-by: Razvan Grigore <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:24:28 +01:00
Ming Yen Hsieh and Felix Fietkau
9ff2afce5f
wifi: mt76: mt7925: add MTCL support to enhance the regulatory compliance
...
Apply the MTCL configuration to improving channel availability and
regulatory compliance if MTCL table is supported.
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
b94b025490
wifi: mt76: mt792x: extend MTCL of APCI to version3 for EHT control
...
This patch introduces version 3 of the MTCL table, which provides
regulatory information for WiFi 7. It also configured by the platform
vender like the version 1 and 2.
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
772dcb4b4e
wifi: mt76: mt7925: remove unused acpi function for clc
...
The code for handling ACPI configuration in CLC was copied from the mt7921
driver but is not utilized in the mt7925 implementation. So removes the
unused functionality to clean up the codebase.
Cc: [email protected]
Fixes: c948b5da6bbe ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips")
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
bdc09b8f23
wifi: mt76: mt7925: update the channel usage when the regd domain changed
...
The 5.9/6GHz channel license of a certain platform device has been
regulated in various countries. That may be difference with standard Liunx
regulatory domain settings. In this case, when .reg_notifier() called for
regulatory change, mt7925 chipset should update the channel usage based on
CLC data.
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
454a69cbb7
wifi: mt76: mt7925: add EHT control support based on the CLC data
...
Some countries do not support EHT modulation for now. To prevent violating
regulations, the MT7925 chipset should control the EHT capabilities.
Therefore, when a regulatory domain change is detected during scanning,
the `mt7925_regd_be_ctrl` will process the CLC data to update the EHT
capabilities.
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
5910f0806c
wifi: mt76: mt7925: load the appropriate CLC data based on hardware type
...
Read the EEPROM to determine the hardware type and uses this to load the
correct CLC data.
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:18:36 +01:00
Ming Yen Hsieh and Felix Fietkau
25a0285d8e
wifi: mt76: mt7925: update the power-saving flow
...
After joining MLO, ensure that all links are setup before
enabling power-saving.
Fixes: 86c051f2c418 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Cc: [email protected]
Co-developed-by: Sean Wang <[email protected] >
Signed-off-by: Sean Wang <[email protected] >
Tested-by: Caleb Jorden <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:07:19 +01:00
Ming Yen Hsieh and Felix Fietkau
d25359e8bb
wifi: mt76: mt7925: integrate *mlo_sta_cmd and *sta_cmd
...
Integrate *mlo_sta_cmd and *sta_cmd for the MLO firmware.
Fixes: 86c051f2c418 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Cc: [email protected]
Co-developed-by: Sean Wang <[email protected] >
Signed-off-by: Sean Wang <[email protected] >
Tested-by: Caleb Jorden <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:07:19 +01:00
Ming Yen Hsieh and Felix Fietkau
aa7d366ccf
wifi: mt76: mt7925: adjust rm BSS flow to prevent next connection failure
...
Removing BSS without removing STAREC first will cause firmware
abnormal and next connection fail.
Fixes: f8797298565e ("wifi: mt76: mt7925: Cleanup MLO settings post-disconnection")
Cc: [email protected]
Co-developed-by: Sean Wang <[email protected] >
Signed-off-by: Sean Wang <[email protected] >
Tested-by: Caleb Jorden <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:07:19 +01:00
Ming Yen Hsieh and Felix Fietkau
f54ff3caba
wifi: mt76: mt7925: fix the wrong simultaneous cap for MLO
...
The mt7925 chip is only support a single radio, so the maximum
number of simultaneous should be 0.
Fixes: 86c051f2c418 ("wifi: mt76: mt7925: enabling MLO when the firmware supports it")
Cc: [email protected]
Co-developed-by: Sean Wang <[email protected] >
Signed-off-by: Sean Wang <[email protected] >
Tested-by: Caleb Jorden <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:07:19 +01:00
Ming Yen Hsieh and Felix Fietkau
2823c50b1c
wifi: mt76: mt7925: fix the wrong link_idx when has p2p_device
...
When the p2p device and MLO station concurrent, the p2p device
will occupy the wrong link_idx when the MLO secondary link is added.
Fixes: e38a82d25b08 ("wifi: mt76: connac: Extend mt76_connac_mcu_uni_add_dev for MLO")
Cc: [email protected]
Co-developed-by: Sean Wang <[email protected] >
Signed-off-by: Sean Wang <[email protected] >
Tested-by: Caleb Jorden <[email protected] >
Signed-off-by: Ming Yen Hsieh <[email protected] >
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected] >
2025-03-10 13:07:19 +01:00