Staging: rtl8188eu/core: fixed code indentation warning as reported by checkpatch.pl
fixed code indentation warning as detected with checkpatch.pl. Replaced spaces with tabs. Signed-off-by: Mayank Bareja <mbareja@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
66e6d70df2
commit
4e0fa71c93
|
@ -919,7 +919,7 @@ int proc_get_best_channel(char *page, char **start,
|
||||||
/* 5G */
|
/* 5G */
|
||||||
if (pmlmeext->channel_set[i].ChannelNum >= 36 &&
|
if (pmlmeext->channel_set[i].ChannelNum >= 36 &&
|
||||||
pmlmeext->channel_set[i].ChannelNum < 140) {
|
pmlmeext->channel_set[i].ChannelNum < 140) {
|
||||||
/* Find primary channel */
|
/* Find primary channel */
|
||||||
if (((pmlmeext->channel_set[i].ChannelNum - 36) % 8 == 0) &&
|
if (((pmlmeext->channel_set[i].ChannelNum - 36) % 8 == 0) &&
|
||||||
(pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) {
|
(pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) {
|
||||||
index_5G = i;
|
index_5G = i;
|
||||||
|
@ -929,7 +929,7 @@ int proc_get_best_channel(char *page, char **start,
|
||||||
|
|
||||||
if (pmlmeext->channel_set[i].ChannelNum >= 149 &&
|
if (pmlmeext->channel_set[i].ChannelNum >= 149 &&
|
||||||
pmlmeext->channel_set[i].ChannelNum < 165) {
|
pmlmeext->channel_set[i].ChannelNum < 165) {
|
||||||
/* find primary channel */
|
/* find primary channel */
|
||||||
if (((pmlmeext->channel_set[i].ChannelNum - 149) % 8 == 0) &&
|
if (((pmlmeext->channel_set[i].ChannelNum - 149) % 8 == 0) &&
|
||||||
(pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) {
|
(pmlmeext->channel_set[i].rx_count < pmlmeext->channel_set[index_5G].rx_count)) {
|
||||||
index_5G = i;
|
index_5G = i;
|
||||||
|
|
|
@ -551,7 +551,7 @@ int Efuse_PgPacketRead(struct adapter *pAdapter, u8 offset, u8 *data)
|
||||||
bContinual = false;
|
bContinual = false;
|
||||||
}
|
}
|
||||||
} else if (ReadState & PG_STATE_DATA) {
|
} else if (ReadState & PG_STATE_DATA) {
|
||||||
/* Data section Read ------------- */
|
/* Data section Read ------------- */
|
||||||
efuse_WordEnableDataRead(hworden, tmpdata, data);
|
efuse_WordEnableDataRead(hworden, tmpdata, data);
|
||||||
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
||||||
ReadState = PG_STATE_HEADER;
|
ReadState = PG_STATE_HEADER;
|
||||||
|
|
|
@ -693,8 +693,8 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
||||||
pmlmepriv->to_join = false;
|
pmlmepriv->to_join = false;
|
||||||
s_ret = rtw_select_and_join_from_scanned_queue(pmlmepriv);
|
s_ret = rtw_select_and_join_from_scanned_queue(pmlmepriv);
|
||||||
if (_SUCCESS == s_ret) {
|
if (_SUCCESS == s_ret) {
|
||||||
mod_timer(&pmlmepriv->assoc_timer,
|
mod_timer(&pmlmepriv->assoc_timer,
|
||||||
jiffies + msecs_to_jiffies(MAX_JOIN_TIMEOUT));
|
jiffies + msecs_to_jiffies(MAX_JOIN_TIMEOUT));
|
||||||
} else if (s_ret == 2) { /* there is no need to wait for join */
|
} else if (s_ret == 2) { /* there is no need to wait for join */
|
||||||
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
|
_clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
|
||||||
rtw_indicate_connect(adapter);
|
rtw_indicate_connect(adapter);
|
||||||
|
|
|
@ -1096,7 +1096,7 @@ static void issue_assocreq(struct adapter *padapter)
|
||||||
|
|
||||||
/* Check if the AP's supported rates are also supported by STA. */
|
/* Check if the AP's supported rates are also supported by STA. */
|
||||||
for (j = 0; j < sta_bssrate_len; j++) {
|
for (j = 0; j < sta_bssrate_len; j++) {
|
||||||
/* Avoid the proprietary data rate (22Mbps) of Handlink WSG-4000 AP */
|
/* Avoid the proprietary data rate (22Mbps) of Handlink WSG-4000 AP */
|
||||||
if ((pmlmeinfo->network.SupportedRates[i]|IEEE80211_BASIC_RATE_MASK)
|
if ((pmlmeinfo->network.SupportedRates[i]|IEEE80211_BASIC_RATE_MASK)
|
||||||
== (sta_bssrate[j]|IEEE80211_BASIC_RATE_MASK))
|
== (sta_bssrate[j]|IEEE80211_BASIC_RATE_MASK))
|
||||||
break;
|
break;
|
||||||
|
@ -2932,7 +2932,7 @@ static unsigned int OnAuthClient(struct adapter *padapter,
|
||||||
|
|
||||||
if (seq == 2) {
|
if (seq == 2) {
|
||||||
if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) {
|
if (pmlmeinfo->auth_algo == dot11AuthAlgrthm_Shared) {
|
||||||
/* legendary shared system */
|
/* legendary shared system */
|
||||||
p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _AUTH_IE_OFFSET_, _CHLGETXT_IE_, (int *)&len,
|
p = rtw_get_ie(pframe + WLAN_HDR_A3_LEN + _AUTH_IE_OFFSET_, _CHLGETXT_IE_, (int *)&len,
|
||||||
pkt_len - WLAN_HDR_A3_LEN - _AUTH_IE_OFFSET_);
|
pkt_len - WLAN_HDR_A3_LEN - _AUTH_IE_OFFSET_);
|
||||||
|
|
||||||
|
@ -4155,8 +4155,8 @@ static void _mgt_dispatcher(struct adapter *padapter, struct mlme_handler *ptabl
|
||||||
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
u8 *pframe = precv_frame->rx_data;
|
u8 *pframe = precv_frame->rx_data;
|
||||||
|
|
||||||
if (ptable->func) {
|
if (ptable->func) {
|
||||||
/* receive the frames that ra(a1) is my address or ra(a1) is bc address. */
|
/* receive the frames that ra(a1) is my address or ra(a1) is bc address. */
|
||||||
if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) &&
|
if (memcmp(GetAddr1Ptr(pframe), myid(&padapter->eeprompriv), ETH_ALEN) &&
|
||||||
memcmp(GetAddr1Ptr(pframe), bc_addr, ETH_ALEN))
|
memcmp(GetAddr1Ptr(pframe), bc_addr, ETH_ALEN))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1330,7 +1330,7 @@ static int aes_decipher(u8 *key, uint hdrlen,
|
||||||
bitwise_xor(aes_out, &pframe[payload_index], chain_buffer);
|
bitwise_xor(aes_out, &pframe[payload_index], chain_buffer);
|
||||||
|
|
||||||
for (j = 0; j < 16; j++)
|
for (j = 0; j < 16; j++)
|
||||||
pframe[payload_index++] = chain_buffer[j];
|
pframe[payload_index++] = chain_buffer[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (payload_remainder > 0) { /* If there is a short final block, then pad it,*/
|
if (payload_remainder > 0) { /* If there is a short final block, then pad it,*/
|
||||||
|
|
|
@ -868,7 +868,7 @@ s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattr
|
||||||
/* check if enable ampdu */
|
/* check if enable ampdu */
|
||||||
if (pattrib->ht_en && psta->htpriv.ampdu_enable) {
|
if (pattrib->ht_en && psta->htpriv.ampdu_enable) {
|
||||||
if (psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
|
if (psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
|
||||||
pattrib->ampdu_en = true;
|
pattrib->ampdu_en = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* re-check if enable ampdu by BA_starting_seqctrl */
|
/* re-check if enable ampdu by BA_starting_seqctrl */
|
||||||
|
@ -1026,22 +1026,22 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct
|
||||||
/* adding icv, if necessary... */
|
/* adding icv, if necessary... */
|
||||||
if (pattrib->iv_len) {
|
if (pattrib->iv_len) {
|
||||||
switch (pattrib->encrypt) {
|
switch (pattrib->encrypt) {
|
||||||
case _WEP40_:
|
case _WEP40_:
|
||||||
case _WEP104_:
|
case _WEP104_:
|
||||||
WEP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
WEP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
||||||
break;
|
break;
|
||||||
case _TKIP_:
|
case _TKIP_:
|
||||||
if (bmcst)
|
if (bmcst)
|
||||||
TKIP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
TKIP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
||||||
else
|
else
|
||||||
TKIP_IV(pattrib->iv, psta->dot11txpn, 0);
|
TKIP_IV(pattrib->iv, psta->dot11txpn, 0);
|
||||||
break;
|
break;
|
||||||
case _AES_:
|
case _AES_:
|
||||||
if (bmcst)
|
if (bmcst)
|
||||||
AES_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
AES_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx);
|
||||||
else
|
else
|
||||||
AES_IV(pattrib->iv, psta->dot11txpn, 0);
|
AES_IV(pattrib->iv, psta->dot11txpn, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(pframe, pattrib->iv, pattrib->iv_len);
|
memcpy(pframe, pattrib->iv, pattrib->iv_len);
|
||||||
|
@ -1769,7 +1769,7 @@ int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_fra
|
||||||
int bmcst = IS_MCAST(pattrib->ra);
|
int bmcst = IS_MCAST(pattrib->ra);
|
||||||
|
|
||||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == false)
|
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == false)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (pattrib->psta)
|
if (pattrib->psta)
|
||||||
psta = pattrib->psta;
|
psta = pattrib->psta;
|
||||||
|
|
Loading…
Reference in a new issue