wifi: mt76: mt7925: configure NAN PHY setting on enable

Implement NAN_UNI_CMD_UPDATE_PHY_SETTING (tag=18) to configure the
BSS-level PHY parameters that the FW NAN scheduler uses when it
switches channels.

The command carries separate 2G and 5G PHY settings, each with its
own phy type, rate sets and protection modes.

Fixes: 0f3605e4f8de ("wifi: mt76: mt7925: wire up NAN operations")
Co-developed-by: Sean Wang <[email protected]>
Signed-off-by: Sean Wang <[email protected]>
Signed-off-by: Stella Liu <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Stella Liu
2026-08-25 11:25:29 +02:00
committed by Felix Fietkau
parent 33a39c2ce2
commit c09c19fe7c
3 changed files with 108 additions and 1 deletions
+5 -1
View File
@@ -2593,8 +2593,12 @@ static int mt7925_start_nan(struct ieee80211_hw *hw,
goto out;
err = mt7925_nan_enable(vif, dev, conf);
if (err)
if (err) {
mt7925_mcu_add_bss_info(&dev->phy, NULL, link_conf, NULL, false);
goto out;
}
err = mt7925_nan_update_phy_setting(dev);
out:
mt792x_mutex_release(dev);