staging: r8188eu: write only path a registers in rtw_dbg_port
authorMartin Kaiser <martin@kaiser.cx>
Sat, 12 Feb 2022 16:17:29 +0000 (17:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Feb 2022 16:11:22 +0000 (17:11 +0100)
commite31e782a361af7cda6169220b4e9a4ae814eecfe
treedeba9e3ef7f087fe83edc48b1872d56596af4cf4
parentd709b5ae9a44f00a5feb010fc215be9dcf472e64
staging: r8188eu: write only path a registers in rtw_dbg_port

Commit 3b011b097c38 ("staging: r8188eu: limit rf register writes to
path a") limited the rtw_wx_write_rf function to write only rf registers
for path a.

The private ioctl 0x0B invokes the rtw_dbg_port function. This ioctl
can also be used for writing rf registers. We should limit these register
writes to rf path a as well.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220212161737.381841-3-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/ioctl_linux.c