Commit 98d602e8 authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman

Staging: rtl8192e: Rename variable bCcxRmEnable

Rename variable bCcxRmEnable to ccx_rm_enable to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240227044157.407379-9-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce0ba550
...@@ -912,7 +912,7 @@ struct rtllib_network { ...@@ -912,7 +912,7 @@ struct rtllib_network {
bool bWithAironetIE; bool bWithAironetIE;
bool ckip_supported; bool ckip_supported;
bool bCcxRmEnable; bool ccx_rm_enable;
u8 CcxRmState[2]; u8 CcxRmState[2];
bool bMBssidValid; bool bMBssidValid;
u8 MBssidMask; u8 MBssidMask;
......
...@@ -1815,9 +1815,9 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, ...@@ -1815,9 +1815,9 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,
if (info_element->len == 6) { if (info_element->len == 6) {
memcpy(network->CcxRmState, &info_element->data[4], 2); memcpy(network->CcxRmState, &info_element->data[4], 2);
if (network->CcxRmState[0] != 0) if (network->CcxRmState[0] != 0)
network->bCcxRmEnable = true; network->ccx_rm_enable = true;
else else
network->bCcxRmEnable = false; network->ccx_rm_enable = false;
network->MBssidMask = network->CcxRmState[1] & 0x07; network->MBssidMask = network->CcxRmState[1] & 0x07;
if (network->MBssidMask != 0) { if (network->MBssidMask != 0) {
network->bMBssidValid = true; network->bMBssidValid = true;
...@@ -1830,7 +1830,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, ...@@ -1830,7 +1830,7 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee,
network->bMBssidValid = false; network->bMBssidValid = false;
} }
} else { } else {
network->bCcxRmEnable = false; network->ccx_rm_enable = false;
} }
} }
if (info_element->len > 4 && if (info_element->len > 4 &&
...@@ -2348,7 +2348,7 @@ static inline void update_network(struct rtllib_device *ieee, ...@@ -2348,7 +2348,7 @@ static inline void update_network(struct rtllib_device *ieee,
dst->bWithAironetIE = src->bWithAironetIE; dst->bWithAironetIE = src->bWithAironetIE;
dst->ckip_supported = src->ckip_supported; dst->ckip_supported = src->ckip_supported;
memcpy(dst->CcxRmState, src->CcxRmState, 2); memcpy(dst->CcxRmState, src->CcxRmState, 2);
dst->bCcxRmEnable = src->bCcxRmEnable; dst->ccx_rm_enable = src->ccx_rm_enable;
dst->MBssidMask = src->MBssidMask; dst->MBssidMask = src->MBssidMask;
dst->bMBssidValid = src->bMBssidValid; dst->bMBssidValid = src->bMBssidValid;
memcpy(dst->MBssid, src->MBssid, 6); memcpy(dst->MBssid, src->MBssid, 6);
......
...@@ -742,7 +742,7 @@ rtllib_association_req(struct rtllib_network *beacon, ...@@ -742,7 +742,7 @@ rtllib_association_req(struct rtllib_network *beacon,
if (beacon->ckip_supported) if (beacon->ckip_supported)
ckip_ie_len = 30 + 2; ckip_ie_len = 30 + 2;
if (beacon->bCcxRmEnable) if (beacon->ccx_rm_enable)
ccxrm_ie_len = 6 + 2; ccxrm_ie_len = 6 + 2;
if (beacon->BssCcxVerNumber >= 2) if (beacon->BssCcxVerNumber >= 2)
cxvernum_ie_len = 5 + 2; cxvernum_ie_len = 5 + 2;
...@@ -837,7 +837,7 @@ rtllib_association_req(struct rtllib_network *beacon, ...@@ -837,7 +837,7 @@ rtllib_association_req(struct rtllib_network *beacon,
tag += osCcxAironetIE.Length; tag += osCcxAironetIE.Length;
} }
if (beacon->bCcxRmEnable) { if (beacon->ccx_rm_enable) {
static const u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, static const u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01,
0x00}; 0x00};
struct octet_string os_ccx_rm_cap; struct octet_string os_ccx_rm_cap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment