mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7915: fix scene detection flow of spatial reuse
Firmware is in the driving seat while sr_scene_detect is enabled,
so driver needs to skip operation to avoid mangling scene detection
algorithm.
Fixes: a633503 ("wifi: mt76: mt7915: add support to configure spatial reuse parameter set")
Signed-off-by: Ryder Lee <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+5
-5
@@ -3528,22 +3528,22 @@ int mt7915_mcu_add_obss_spr(struct mt7915_phy *phy, struct ieee80211_vif *vif,
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* firmware dynamically adjusts PD threshold so skip manual control */
|
||||
if (sr_scene_detect && !he_obss_pd->enable)
|
||||
return 0;
|
||||
|
||||
/* enable spatial reuse */
|
||||
ret = mt7915_mcu_enable_obss_spr(phy, SPR_ENABLE, he_obss_pd->enable);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (!he_obss_pd->enable)
|
||||
if (sr_scene_detect || !he_obss_pd->enable)
|
||||
return 0;
|
||||
|
||||
ret = mt7915_mcu_enable_obss_spr(phy, SPR_ENABLE_TX, true);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* firmware dynamically adjusts PD threshold so skip manual control */
|
||||
if (sr_scene_detect)
|
||||
return 0;
|
||||
|
||||
/* set SRG/non-SRG OBSS PD threshold */
|
||||
ret = mt7915_mcu_set_obss_spr_pd(phy, he_obss_pd);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user