mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 15:51:40 -04:00
staging: rtl8192e: Remove _rtl92e_get_supported_wireless_mode
Remove _rtl92e_get_supported_wireless_mode to improve readability. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/f8470fff23d5870cbcda3d6f4978ba17016a8fe8.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
bf8d1ecccb
commit
f57a7f1515
@@ -593,18 +593,10 @@ static void _rtl92e_refresh_support_rate(struct r8192_priv *priv)
|
||||
}
|
||||
}
|
||||
|
||||
static u8 _rtl92e_get_supported_wireless_mode(struct net_device *dev)
|
||||
{
|
||||
u8 ret = 0;
|
||||
|
||||
ret = (WIRELESS_MODE_N_24G | WIRELESS_MODE_G | WIRELESS_MODE_B);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void rtl92e_set_wireless_mode(struct net_device *dev, u8 wireless_mode)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
u8 support_mode = _rtl92e_get_supported_wireless_mode(dev);
|
||||
u8 support_mode = (WIRELESS_MODE_N_24G | WIRELESS_MODE_G | WIRELESS_MODE_B);
|
||||
|
||||
if ((wireless_mode == WIRELESS_MODE_AUTO) ||
|
||||
((wireless_mode & support_mode) == 0)) {
|
||||
|
||||
Reference in New Issue
Block a user