staging: r8188eu: limit rf register writes to path a
authorMartin Kaiser <martin@kaiser.cx>
Sat, 5 Feb 2022 11:37:41 +0000 (12:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Feb 2022 09:17:57 +0000 (10:17 +0100)
commit3b011b097c386e2a2861256f8f253fce4fbf94c5
treefcee32c1a902d8690fd984b3c115ef0a67dc2371
parent49132583d26089e37de8c33dd0321b1d1f17be19
staging: r8188eu: limit rf register writes to path a

The r8188eu driver uses only RF_PATH_A.

At the moment, the only exception are private ioctls. It does not make
sense if these ioctls set registers that are not used anywhere else in
the driver.

This patch limits the private ioctl 0x0C, i.e. the rtw_wx_write_rf
function, to RF_PATH_A. For any other setting, we return an error
saying the parameter is invalid.

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