diff mbox series

wifi: mt76: mt7915: fix endianness of mt7915_mcu_set_obss_spr_pd()

Message ID ff2080860ee5b28f7dcde70bada720ba55b0bac5.1669538240.git.ryder.lee@mediatek.com
State New
Headers show
Series wifi: mt76: mt7915: fix endianness of mt7915_mcu_set_obss_spr_pd() | expand

Commit Message

Ryder Lee Nov. 27, 2022, 8:45 a.m. UTC
Fix sparse: sparse: incorrect type in assignment (different base types).

Fixes: a6335031eb96 ("wifi: mt76: mt7915: add support to configure spatial reuse parameter set")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
index 7a6cb25fdaed..9e479d41eab5 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
@@ -3438,8 +3438,8 @@  mt7915_mcu_set_obss_spr_pd(struct mt7915_phy *phy,
 	if (he_obss_pd->sr_ctrl & IEEE80211_HE_SPR_SRG_INFORMATION_PRESENT)
 		req.param.pd_th_srg = max_th - he_obss_pd->max_offset;
 
-	req.param.obss_pd_min = 82;
-	req.param.obss_pd_min_srg = 82;
+	req.param.obss_pd_min = cpu_to_le16(82);
+	req.param.obss_pd_min_srg = cpu_to_le16(82);
 	req.param.txpwr_restrict_mode = 2;
 	req.param.txpwr_ref = 21;