| From 01508ed2c2fb03cdacd855c5a870133cc04048f5 Mon Sep 17 00:00:00 2001 |
| From: Evelyn Tsai <evelyn.tsai@mediatek.com> |
| Date: Mon, 13 Jun 2022 23:10:26 +0800 |
| Subject: [PATCH] mt76: common: RF CR idx require 8 bits |
| |
| Change-Id: I95af9cca36052be090be776868822d0a74377c9d |
| --- |
| mt7915/mcu.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/mt7915/mcu.c b/mt7915/mcu.c |
| index 9da3e85..3615195 100644 |
| --- a/mt7915/mcu.c |
| +++ b/mt7915/mcu.c |
| @@ -4479,8 +4479,8 @@ int mt7915_mcu_rf_regval(struct mt7915_dev *dev, u32 regidx, u32 *val, bool set) |
| __le32 ofs; |
| __le32 data; |
| } __packed req = { |
| - .idx = cpu_to_le32(u32_get_bits(regidx, GENMASK(31, 28))), |
| - .ofs = cpu_to_le32(u32_get_bits(regidx, GENMASK(27, 0))), |
| + .idx = cpu_to_le32(u32_get_bits(regidx, GENMASK(31, 24))), |
| + .ofs = cpu_to_le32(u32_get_bits(regidx, GENMASK(23, 0))), |
| .data = set ? cpu_to_le32(*val) : 0, |
| }; |
| struct sk_buff *skb; |
| -- |
| 2.18.0 |
| |