staging: rtl8192e: Remove unsupported mode IW_MODE_REPEAT
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 13 Aug 2023 06:36:40 +0000 (08:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:44:31 +0000 (15:44 +0200)
commit31a14cba17532a85f0aedcb38dfc5f15f235fee9
tree42113269f769210fe32acc98fb15027cf4a5017e
parentda1e39683a9d6a3a03598601b49d483852ca15bd
staging: rtl8192e: Remove unsupported mode IW_MODE_REPEAT

Tasklet irq_rx_tasklet is scheduled when hw is receiving frames. Function
_rtl92e_irq_rx_tasklet() is then called which calls then
_rtl92e_rx_normal(). In _rtl92e_rx_normal() all frames are processed by
rtllib_rx(). When ieee->iw_mode is IW_MODE_REPEAT the function returns
0. The calling function then calls: dev_kfree_skb_any() which clears
the skb. So the driver clears all packets received in this mode. Remove
dead code in mode IW_MODE_REPEAT.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/dc6a0ac89970f5b80a552453a9d057c24f53f43b.1691908402.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c