diff options
| author | Peter Chiu <chui-hao.chiu@mediatek.com> | 2025-01-09 19:04:36 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 10:01:23 +0100 |
| commit | 6e8e48a5831c67bcca235e7c59d1b81369ae6ae8 (patch) | |
| tree | 5d1d4ece74c1029fe2ad60127ecbb4c1eb26ec5d /drivers/net/wireless/mediatek/mt76/mt7996/init.c | |
| parent | 07cf0fa74a1ecca4effc912e363845ef021f4ca0 (diff) | |
| download | linux-6e8e48a5831c67bcca235e7c59d1b81369ae6ae8.tar.gz linux-6e8e48a5831c67bcca235e7c59d1b81369ae6ae8.tar.bz2 linux-6e8e48a5831c67bcca235e7c59d1b81369ae6ae8.zip | |
wifi: mt76: mt7996: fix register mapping
[ Upstream commit d07ecb4f7070e84de49e8fa4e5a83dd52716d805 ]
Bypass the entry when ofs is equal to dev->reg.map[i].size.
Without this patch, it would get incorrect register mapping when the CR
address is located at the boundary of an entry.
Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com>
Signed-off-by: Shengyu Qu <wiagn233@outlook.com>
Link: https://patch.msgid.link/OSZPR01MB84344FEFF53004B5CF40BCC198132@OSZPR01MB8434.jpnprd01.prod.outlook.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7996/init.c')
0 files changed, 0 insertions, 0 deletions
