staging: rtl8723bs: fix camel case name in macro IsSupported24G
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 17 Jul 2021 14:56:47 +0000 (16:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 08:22:00 +0000 (10:22 +0200)
fix camel case name in macro IsSupported24G

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/fd5e1873f72e7d5f72b6f4bf801ede882e9df4e2.1626533647.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/include/ieee80211.h

index c128d46..af7d133 100644 (file)
@@ -343,7 +343,7 @@ static u8 init_channel_set(struct adapter *padapter, u8 ChannelPlan, struct rt_c
        if (ChannelPlan >= RT_CHANNEL_DOMAIN_MAX && ChannelPlan != RT_CHANNEL_DOMAIN_REALTEK_DEFINE)
                return chanset_size;
 
-       if (IsSupported24G(padapter->registrypriv.wireless_mode)) {
+       if (is_supported_24g(padapter->registrypriv.wireless_mode)) {
                b2_4GBand = true;
                if (RT_CHANNEL_DOMAIN_REALTEK_DEFINE == ChannelPlan)
                        Index2G = RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE.Index2G;
index eebd484..d18537f 100644 (file)
@@ -149,7 +149,7 @@ bool HAL_IsLegalChannel(struct adapter *Adapter, u32 Channel)
        bool bLegalChannel = true;
 
        if ((Channel <= 14) && (Channel >= 1)) {
-               if (IsSupported24G(Adapter->registrypriv.wireless_mode) == false)
+               if (is_supported_24g(Adapter->registrypriv.wireless_mode) == false)
                        bLegalChannel = false;
        } else {
                bLegalChannel = false;
index 343d077..2fa6ced 100644 (file)
@@ -156,9 +156,9 @@ enum network_type {
 
 #define is_legacy_only(net_type)  ((net_type) == ((net_type) & (WIRELESS_11BG)))
 
-#define IsSupported24G(NetType) ((NetType) & SUPPORTED_24G_NETTYPE_MSK ? true : false)
+#define is_supported_24g(NetType) ((NetType) & SUPPORTED_24G_NETTYPE_MSK ? true : false)
 
-#define IsEnableHWCCK(NetType) IsSupported24G(NetType)
+#define IsEnableHWCCK(NetType) is_supported_24g(NetType)
 #define IsEnableHWOFDM(NetType) (((NetType) & (WIRELESS_11G|WIRELESS_11_24N)) ? true : false)
 
 #define IsSupportedRxCCK(NetType) IsEnableHWCCK(NetType)