Skip to content

Commit

Permalink
staging: rtl8723bs: fix check allowing 5Ghz settings
Browse files Browse the repository at this point in the history
[ Upstream commit 990a147 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
fabioaiuto authored and gregkh committed Jul 20, 2021
1 parent 3261585 commit 8c012f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
Expand Up @@ -2602,10 +2602,9 @@ static int rtw_dbg_port(struct net_device *dev,
case 0x12: /* set rx_stbc */
{
struct registry_priv *pregpriv = &padapter->registrypriv;
/* 0: disable, bit(0):enable 2.4g, bit(1):enable 5g, 0x3: enable both 2.4g and 5g */
/* default is set to enable 2.4GHZ for IOT issue with bufflao's AP at 5GHZ */
if (extra_arg == 0 || extra_arg == 1 ||
extra_arg == 2 || extra_arg == 3)
/* 0: disable, bit(0):enable 2.4g */
/* default is set to enable 2.4GHZ */
if (extra_arg == 0 || extra_arg == 1)
pregpriv->rx_stbc = extra_arg;
}
break;
Expand Down

0 comments on commit 8c012f3

Please sign in to comment.