Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: fix check allowing 5Ghz settings

fix check allowing 5Ghz settings, only disabled and
2.4Ghz enabled states are allowed. Fix comment
accordingly.

Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/df7d0ecc02ac7a27e568768523dd7b3f34acd551.1624367072.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Fabio Aiuto and committed by
Greg Kroah-Hartman
990a1472 43cf7e96

+3 -4
+3 -4
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
··· 2574 2574 case 0x12: /* set rx_stbc */ 2575 2575 { 2576 2576 struct registry_priv *pregpriv = &padapter->registrypriv; 2577 - /* 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, 0x3: enable both 2.4g and 5g */ 2578 - /* default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ */ 2579 - if (extra_arg == 0 || extra_arg == 1 || 2580 - extra_arg == 2 || extra_arg == 3) 2577 + /* 0: disable, bit(0):enable 2.4g */ 2578 + /* default is set to enable 2.4GHZ */ 2579 + if (extra_arg == 0 || extra_arg == 1) 2581 2580 pregpriv->rx_stbc = extra_arg; 2582 2581 } 2583 2582 break;