Commit 1cc357dd authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman

Staging: rtl8192e: Rename variable AsocRetryCount

Rename variable AsocRetryCount to asoc_retry_count to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240106055556.430948-22-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9f43ad4
...@@ -1381,7 +1381,7 @@ struct rtllib_device { ...@@ -1381,7 +1381,7 @@ struct rtllib_device {
struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM]; struct sk_buff *mgmt_queue_ring[MGMT_QUEUE_NUM];
int mgmt_queue_head; int mgmt_queue_head;
int mgmt_queue_tail; int mgmt_queue_tail;
u8 AsocRetryCount; u8 asoc_retry_count;
struct sk_buff_head skb_waitq[MAX_QUEUE_SIZE]; struct sk_buff_head skb_waitq[MAX_QUEUE_SIZE];
bool bdynamic_txpower_enable; bool bdynamic_txpower_enable;
......
...@@ -1216,7 +1216,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee, ...@@ -1216,7 +1216,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,
ieee->wmm_acm = 0; ieee->wmm_acm = 0;
if (ieee->iw_mode == IW_MODE_INFRA) { if (ieee->iw_mode == IW_MODE_INFRA) {
/* Join the network for the first time */ /* Join the network for the first time */
ieee->AsocRetryCount = 0; ieee->asoc_retry_count = 0;
if ((ieee->current_network.qos_data.supported == 1) && if ((ieee->current_network.qos_data.supported == 1) &&
ieee->current_network.bssht.bd_support_ht) ieee->current_network.bssht.bd_support_ht)
ht_reset_self_and_save_peer_setting(ieee, ht_reset_self_and_save_peer_setting(ieee,
...@@ -1319,10 +1319,10 @@ static inline u16 assoc_parse(struct rtllib_device *ieee, struct sk_buff *skb, ...@@ -1319,10 +1319,10 @@ static inline u16 assoc_parse(struct rtllib_device *ieee, struct sk_buff *skb,
status_code == WLAN_STATUS_CAPS_UNSUPPORTED) && status_code == WLAN_STATUS_CAPS_UNSUPPORTED) &&
((ieee->mode == WIRELESS_MODE_G) && ((ieee->mode == WIRELESS_MODE_G) &&
(ieee->current_network.mode == WIRELESS_MODE_N_24G) && (ieee->current_network.mode == WIRELESS_MODE_N_24G) &&
(ieee->AsocRetryCount++ < (RT_ASOC_RETRY_LIMIT - 1)))) { (ieee->asoc_retry_count++ < (RT_ASOC_RETRY_LIMIT - 1)))) {
ieee->ht_info->iot_action |= HT_IOT_ACT_PURE_N_MODE; ieee->ht_info->iot_action |= HT_IOT_ACT_PURE_N_MODE;
} else { } else {
ieee->AsocRetryCount = 0; ieee->asoc_retry_count = 0;
} }
return le16_to_cpu(response_head->status); return le16_to_cpu(response_head->status);
...@@ -1634,7 +1634,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb, ...@@ -1634,7 +1634,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,
netdev_info(ieee->dev, netdev_info(ieee->dev,
"Association response status code 0x%x\n", "Association response status code 0x%x\n",
errcode); errcode);
if (ieee->AsocRetryCount < RT_ASOC_RETRY_LIMIT) if (ieee->asoc_retry_count < RT_ASOC_RETRY_LIMIT)
schedule_delayed_work(&ieee->associate_procedure_wq, 0); schedule_delayed_work(&ieee->associate_procedure_wq, 0);
else else
rtllib_associate_abort(ieee); rtllib_associate_abort(ieee);
......
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