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 suspect indents
Removed extra spaces and indents from core/rtw_wlan_util.c. Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh630@gmail.com> Link: https://lore.kernel.org/r/20210524135105.5550-4-chouhan.shreyansh630@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8f5193f828
commit
85487bd721
1 changed files with 25 additions and 25 deletions
|
@ -1254,34 +1254,34 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
/* parsing HT_CAP_IE */
|
||||
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, WLAN_EID_HT_CAPABILITY, &len, bssid->IELength - _FIXED_IE_LENGTH_);
|
||||
if (p && len > 0) {
|
||||
pht_cap = (struct ieee80211_ht_cap *)(p + 2);
|
||||
ht_cap_info = le16_to_cpu(pht_cap->cap_info);
|
||||
pht_cap = (struct ieee80211_ht_cap *)(p + 2);
|
||||
ht_cap_info = le16_to_cpu(pht_cap->cap_info);
|
||||
} else {
|
||||
ht_cap_info = 0;
|
||||
ht_cap_info = 0;
|
||||
}
|
||||
/* parsing HT_INFO_IE */
|
||||
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, WLAN_EID_HT_OPERATION, &len, bssid->IELength - _FIXED_IE_LENGTH_);
|
||||
if (p && len > 0) {
|
||||
pht_info = (struct HT_info_element *)(p + 2);
|
||||
ht_info_infos_0 = pht_info->infos[0];
|
||||
pht_info = (struct HT_info_element *)(p + 2);
|
||||
ht_info_infos_0 = pht_info->infos[0];
|
||||
} else {
|
||||
ht_info_infos_0 = 0;
|
||||
ht_info_infos_0 = 0;
|
||||
}
|
||||
if (ht_cap_info != cur_network->BcnInfo.ht_cap_info ||
|
||||
((ht_info_infos_0&0x03) != (cur_network->BcnInfo.ht_info_infos_0&0x03))) {
|
||||
{
|
||||
/* bcn_info_update */
|
||||
cur_network->BcnInfo.ht_cap_info = ht_cap_info;
|
||||
cur_network->BcnInfo.ht_info_infos_0 = ht_info_infos_0;
|
||||
/* to do : need to check that whether modify related register of BB or not */
|
||||
}
|
||||
/* goto _mismatch; */
|
||||
((ht_info_infos_0&0x03) != (cur_network->BcnInfo.ht_info_infos_0&0x03))) {
|
||||
{
|
||||
/* bcn_info_update */
|
||||
cur_network->BcnInfo.ht_cap_info = ht_cap_info;
|
||||
cur_network->BcnInfo.ht_info_infos_0 = ht_info_infos_0;
|
||||
/* to do : need to check that whether modify related register of BB or not */
|
||||
}
|
||||
/* goto _mismatch; */
|
||||
}
|
||||
|
||||
/* Checking for channel */
|
||||
p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, WLAN_EID_DS_PARAMS, &len, bssid->IELength - _FIXED_IE_LENGTH_);
|
||||
if (p) {
|
||||
bcn_channel = *(p + 2);
|
||||
bcn_channel = *(p + 2);
|
||||
} else {/* In 5G, some ap do not have DSSET IE checking HT info for channel */
|
||||
rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, WLAN_EID_HT_OPERATION,
|
||||
&len, bssid->IELength - _FIXED_IE_LENGTH_);
|
||||
|
@ -1292,7 +1292,7 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
}
|
||||
|
||||
if (bcn_channel != Adapter->mlmeextpriv.cur_channel)
|
||||
goto _mismatch;
|
||||
goto _mismatch;
|
||||
|
||||
/* checking SSID */
|
||||
ssid_len = 0;
|
||||
|
@ -1535,21 +1535,21 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
if ((!memcmp(pIE->data, ARTHEROS_OUI1, 3)) || (!memcmp(pIE->data, ARTHEROS_OUI2, 3)))
|
||||
return HT_IOT_PEER_ATHEROS;
|
||||
else if ((!memcmp(pIE->data, BROADCOM_OUI1, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI2, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI3, 3)))
|
||||
return HT_IOT_PEER_BROADCOM;
|
||||
(!memcmp(pIE->data, BROADCOM_OUI2, 3)) ||
|
||||
(!memcmp(pIE->data, BROADCOM_OUI3, 3)))
|
||||
return HT_IOT_PEER_BROADCOM;
|
||||
else if (!memcmp(pIE->data, MARVELL_OUI, 3))
|
||||
return HT_IOT_PEER_MARVELL;
|
||||
return HT_IOT_PEER_MARVELL;
|
||||
else if (!memcmp(pIE->data, RALINK_OUI, 3))
|
||||
return HT_IOT_PEER_RALINK;
|
||||
return HT_IOT_PEER_RALINK;
|
||||
else if (!memcmp(pIE->data, CISCO_OUI, 3))
|
||||
return HT_IOT_PEER_CISCO;
|
||||
return HT_IOT_PEER_CISCO;
|
||||
else if (!memcmp(pIE->data, REALTEK_OUI, 3))
|
||||
return get_realtek_assoc_AP_vender(pIE);
|
||||
return get_realtek_assoc_AP_vender(pIE);
|
||||
else if (!memcmp(pIE->data, AIRGOCAP_OUI, 3))
|
||||
return HT_IOT_PEER_AIRGO;
|
||||
return HT_IOT_PEER_AIRGO;
|
||||
else
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue