]> www.infradead.org Git - users/hch/misc.git/commitdiff
staging: rtl8192e: Remove 5G wireless_mode in rtl92e_set_wireless_mode
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 27 Mar 2023 21:02:45 +0000 (23:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Mar 2023 11:34:38 +0000 (13:34 +0200)
Remove wireless_mode == WIRELESS_MODE_N_5G as 5G is not supported by
hardware and to improve readability.

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

index 12e5132fa7883943c8479b7b070b2ffea6e751ac..c03978353a905a55d39d036c44a49ec88d276335 100644 (file)
@@ -624,12 +624,11 @@ void rtl92e_set_wireless_mode(struct net_device *dev, u8 wireless_mode)
 
        priv->rtllib->mode = wireless_mode;
 
-       if ((wireless_mode == WIRELESS_MODE_N_24G) ||
-           (wireless_mode == WIRELESS_MODE_N_5G)) {
+       if (wireless_mode == WIRELESS_MODE_N_24G)
                priv->rtllib->ht_info->enable_ht = 1;
-       } else {
+       else
                priv->rtllib->ht_info->enable_ht = 0;
-       }
+
        _rtl92e_refresh_support_rate(priv);
 }