mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 22:57:21 -04:00
staging: rtl8192e: Remove 5G wireless_mode in rtl92e_set_wireless_mode
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f57a7f1515
commit
1b4217b400
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user