mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
staging: rtl8723bs: fix camel case name in macro IsSupported24G
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>
This commit is contained in:
parent
bea76a2ab8
commit
198e84ae59
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue