Staging: rtl8192e: Various checkpatch fixes related to rtllib_softmac.c
cover Staging: rtl8192e: Various checkpatch fixes related to rtllib_softmac.c
This series fixes various small checkpatch warnings and checks. Thank you in advance to reviewers.
regards,
Tree
Tree Davies (20):
Staging: rtl8192e: Remove unnecessary braces from
MgntQuery_MgntFrameTxRate()
Staging: rtl8192e: Remove unnecessary parenthesis in
rtllib_softmac_new_net()
Staging: rtl8192e: Remove unnecessary parenthesis in
rtllib_association_req()
Staging: rtl8192e: Remove unnecessary parenthesis in
rtllib_rx_assoc_resp()
Staging: rtl8192e: Remove unnecessary parenthesis in
rtllib_ap_sec_type()
Staging: rtl8192e: Remove unnecessary parenthesis in
rtllib_association_req()
Staging: rtl8192e: Fixup multiple assinment in init_mgmt_queue()
Staging: rtl8192e: Fix statement broken across 2 lines in
rtllib_rx_assoc_resp()
Staging: rtl8192e: Fix function definition broken across multiple
lines
Staging: rtl8192e: Fixup statement broken across 2 lines in
rtllib_softmac_xmit()
Staging: rtl8192e: Fixup statement broken across 2 lines in
rtllib_softmac_new_net()
Staging: rtl8192e: Rename function rtllib_MFIE_Brate()
Staging: rtl8192e: Rename function rtllib_MFIE_Grate()
Staging: rtl8192e: Rename function rtllib_WMM_Info()
Staging: rtl8192e: Rename function rtllib_TURBO_Info()
Staging: rtl8192e: Rename variable QueryRate
Staging: rtl8192e: Rename variable BasicRate
Staging: rtl8192e: Rename variable skb_waitQ
Staging: rtl8192e: Rename variable bInitState
Staging: rtl8192e: Rename function rtllib_DisableNetMonitorMode()
.../staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 4 +- .../staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 +- drivers/staging/rtl8192e/rtllib.h | 6 +- drivers/staging/rtl8192e/rtllib_softmac.c | 90 +++++++++---------- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- 6 files changed, 52 insertions(+), 58 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/20 Staging: rtl8192e: Remove unnecessary braces from MgntQuery_MgntFrameTxRate()
Remove braces from if statement to fix checkpatch WARNING:
'braces {} are not necessary for single statement blocks'
--- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -2
@@ -172,9 +172,8 @@ static u8 MgntQuery_MgntFrameTxRate(struct rtllib_device *ieee)else rate = ieee->basic_rate &0x7f ; -if (rate ==0 ) { +if (rate ==0 ) rate =0x02 ; - }return rate; }
Signature · 1 line
2.39.2
PATCH 2/20 Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_softmac_new_net()
In reply to Tree DaviesRemove parentheses to fix checkpatch Warning:
Unnecessary parentheses around ieee->current_network
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -1219,7 +1219,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee,if ((ieee->current_network.qos_data.supported ==1 ) && ieee->current_network.bssht.bd_support_ht)HTResetSelfAndSavePeerSetting (ieee, - &(ieee->current_network)); + &ieee->current_network);else ieee->ht_info->current_ht_support = false;
Signature · 1 line
2.39.2
PATCH 3/20 Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()
In reply to Tree DaviesRemove parentheses to fix checkpatch Warning:
Unnecessary parentheses around hdr->info_element[0].id
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -917,7 +917,7 @@ rtllib_association_req(struct rtllib_network *beacon,kfree (ieee->assocreq_ies); ieee->assocreq_ies =NULL ; - ies = &(hdr->info_element[0 ].id); + ies = &hdr->info_element[0 ].id; ieee->assocreq_ies_len = (skb->data + skb->len) - ies; ieee->assocreq_ies =kmemdup (ies, ieee->assocreq_ies_len,GFP_ATOMIC );if (!ieee->assocreq_ies)
Signature · 1 line
2.39.2
PATCH 4/20 Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_rx_assoc_resp()
In reply to Tree DaviesRemove parentheses to fix checkpatch Warning:
Unnecessary parentheses around resp->info_element[0].id
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -1619,7 +1619,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,kfree (ieee->assocresp_ies); ieee->assocresp_ies =NULL ; - ies = &(assoc_resp->info_element[0 ].id); + ies = &assoc_resp->info_element[0 ].id; ieee->assocresp_ies_len = (skb->data + skb->len) - ies; ieee->assocresp_ies = kmemdup(ies, ieee->assocresp_ies_len,
Signature · 1 line
2.39.2
PATCH 5/20 Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_ap_sec_type()
In reply to Tree DaviesRemove parnthesis to fix checkpatch Warning:
Unnecessary parentheses around ieee->wpa_ie[14]
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -2231,7 +2231,7 @@ u8 rtllib_ap_sec_type(struct rtllib_device *ieee)return SEC_ALG_WEP ; }else if ((wpa_ie_len !=0 )) {if (((ieee->wpa_ie[0 ] ==0xdd ) && - (!memcmp (&(ieee->wpa_ie[14 ]), ccmp_ie,4 ))) || + (!memcmp (&ieee->wpa_ie[14 ], ccmp_ie,4 ))) || ((ieee->wpa_ie[0 ] ==0x30 ) && (!memcmp (&ieee->wpa_ie[10 ], ccmp_rsn_ie,4 ))))return SEC_ALG_CCMP ;
Signature · 1 line
2.39.2
PATCH 6/20 Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_association_req()
In reply to Tree DaviesRemove parnthesis to fix checkpatch Warning:
Unnecessary parentheses around ieee->ht_info->SelfHTCap
--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -727,7 +727,7 @@ rtllib_association_req(struct rtllib_network *beacon, }if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) { - ht_cap_buf = (u8 *)&(ieee->ht_info->SelfHTCap); + ht_cap_buf = (u8 *)&ieee->ht_info->SelfHTCap; ht_cap_len =sizeof (ieee->ht_info->SelfHTCap);ht_construct_capability_element (ieee, ht_cap_buf, &ht_cap_len, encrypt, true);
Signature · 1 line
2.39.2
PATCH 7/20 Staging: rtl8192e: Fixup multiple assinment in init_mgmt_queue()
In reply to Tree DaviesBreak multiple assignment into 2 assignment statements to fix checkpatch
Warning: multiple assignments should be avoided.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_softmac.c +3 -1
@@ -134,7 +134,8 @@ static void enqueue_mgmt(struct rtllib_device *ieee, struct sk_buff *skb)static void init_mgmt_queue (struct rtllib_device *ieee) { - ieee->mgmt_queue_tail = ieee->mgmt_queue_head =0 ; + ieee->mgmt_queue_tail =0 ; + ieee->mgmt_queue_head =0 ; }u8 MgntQuery_TxRateExcludeCCKRates (struct rtllib_device *ieee)
@@ -1911,6 +1912,7 @@ static void rtllib_link_change_wq(void *data) struct rtllib_device, link_change_wq); ieee->link_change (ieee->dev); } +/* called only in userspace context */ void rtllib_disassociate (struct rtllib_device *ieee) {
Signature · 1 line
2.39.2
PATCH 8/20 Staging: rtl8192e: Fix statement broken across 2 lines in rtllib_rx_assoc_resp()
In reply to Tree DaviesJoin 2 lines, so that statment resides on one line, to fix Warning: Lines should not end with a '('
--- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -2
@@ -1636,8 +1636,7 @@ rtllib_rx_assoc_resp(struct rtllib_device *ieee, struct sk_buff *skb,"Association response status code 0x%x\n" , errcode);if (ieee->AsocRetryCount <RT_ASOC_RETRY_LIMIT ) -schedule_delayed_work ( - &ieee->associate_procedure_wq,0 ); +schedule_delayed_work (&ieee->associate_procedure_wq,0 );else rtllib_associate_abort (ieee); }
Signature · 1 line
2.39.2
PATCH 9/20 Staging: rtl8192e: Fix function definition broken across multiple lines
In reply to Tree DaviesJoin 4 lines, so that function definition resides on a single line, to fix
Warning: Lines should not end with a '('
--- drivers/staging/rtl8192e/rtllib_softmac.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -5
@@ -2267,11 +2267,7 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib, } } -static void -rtllib_MgntDisconnectAP ( -struct rtllib_device *rtllib, -u8 asRsn -) +static void rtllib_MgntDisconnectAP (struct rtllib_device *rtllib,u8 asRsn) {bool bFilterOutNonAssociatedBSSID = false;
Signature · 1 line
2.39.2
PATCH 10/20 Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_xmit()
In reply to Tree DaviesJoin 2 lines to fix Warning: Lines should not end with a '('
--- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -2
@@ -1838,8 +1838,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)else kfree_skb (txb->fragments[i]); }else { - ieee->softmac_data_hard_start_xmit ( - txb->fragments[i], + ieee->softmac_data_hard_start_xmit (txb->fragments[i], ieee->dev, ieee->rate); } }
Signature · 1 line
2.39.2
PATCH 11/20 Staging: rtl8192e: Fixup statement broken across 2 lines in rtllib_softmac_new_net()
In reply to Tree DaviesJoin 2 lines to fix Warning: Lines should not end with a '('
--- drivers/staging/rtl8192e/rtllib_softmac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +1 -2
@@ -1225,8 +1225,7 @@ inline void rtllib_softmac_new_net(struct rtllib_device *ieee, ieee->ht_info->current_ht_support = false; ieee->link_state =RTLLIB_ASSOCIATING ; -schedule_delayed_work ( - &ieee->associate_procedure_wq,0 ); +schedule_delayed_work (&ieee->associate_procedure_wq,0 ); }else {if (rtllib_is_54g (&ieee->current_network)) { ieee->rate =108 ;
Signature · 1 line
2.39.2
PATCH 12/20 Staging: rtl8192e: Rename function rtllib_MFIE_Brate()
In reply to Tree DaviesRename function rtllib_MFIE_Brate to rtllib_mfie_brate to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +2 -2
@@ -44,7 +44,7 @@ static unsigned int rtllib_MFIE_rate_len(struct rtllib_device *ieee)* Then it updates the pointer so that * it points after the new MFIE tag added. */ -static void rtllib_MFIE_Brate (struct rtllib_device *ieee,u8 **tag_p) +static void rtllib_mfie_brate (struct rtllib_device *ieee,u8 **tag_p) {u8 *tag = *tag_p;
@@ -341,7 +341,7 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)memcpy (tag, ieee->current_network.ssid, len); tag += len; -rtllib_MFIE_Brate (ieee, &tag); +rtllib_mfie_brate (ieee, &tag);rtllib_MFIE_Grate (ieee, &tag);return skb;
Signature · 1 line
2.39.2
PATCH 13/20 Staging: rtl8192e: Rename function rtllib_MFIE_Grate()
In reply to Tree DaviesRename function rtllib_MFIE_Grate to rtllib_mfie_grate to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +2 -2
@@ -61,7 +61,7 @@ static void rtllib_mfie_brate(struct rtllib_device *ieee, u8 **tag_p) *tag_p = tag; } -static void rtllib_MFIE_Grate (struct rtllib_device *ieee,u8 **tag_p) +static void rtllib_mfie_grate (struct rtllib_device *ieee,u8 **tag_p) {u8 *tag = *tag_p;
@@ -342,7 +342,7 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee) tag += len;rtllib_mfie_brate (ieee, &tag); -rtllib_MFIE_Grate (ieee, &tag); +rtllib_mfie_grate (ieee, &tag);return skb; }
Signature · 1 line
2.39.2
PATCH 14/20 Staging: rtl8192e: Rename function rtllib_WMM_Info()
In reply to Tree DaviesRename function rtllib_WMM_Info to rtllib_wmm_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +2 -2
@@ -82,7 +82,7 @@ static void rtllib_mfie_grate(struct rtllib_device *ieee, u8 **tag_p) *tag_p = tag; } -static void rtllib_WMM_Info (struct rtllib_device *ieee,u8 **tag_p) +static void rtllib_wmm_info (struct rtllib_device *ieee,u8 **tag_p) {u8 *tag = *tag_p;
@@ -888,7 +888,7 @@ rtllib_association_req(struct rtllib_network *beacon, }if (wmm_info_len) { tag =skb_put (skb, wmm_info_len); -rtllib_WMM_Info (ieee, &tag); +rtllib_wmm_info (ieee, &tag); }if (wps_ie_len && ieee->wps_ie)
Signature · 1 line
2.39.2
PATCH 15/20 Staging: rtl8192e: Rename function rtllib_TURBO_Info()
In reply to Tree DaviesRename function rtllib_TURBO_Info to rtllib_turbo_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +2 -2
@@ -98,7 +98,7 @@ static void rtllib_wmm_info(struct rtllib_device *ieee, u8 **tag_p) *tag_p = tag; } -static void rtllib_TURBO_Info (struct rtllib_device *ieee,u8 **tag_p) +static void rtllib_turbo_info (struct rtllib_device *ieee,u8 **tag_p) {u8 *tag = *tag_p;
@@ -896,7 +896,7 @@ rtllib_association_req(struct rtllib_network *beacon,if (turbo_info_len) { tag =skb_put (skb, turbo_info_len); -rtllib_TURBO_Info (ieee, &tag); +rtllib_turbo_info (ieee, &tag); }if (ieee->ht_info->current_ht_support && ieee->ht_info->enable_ht) {
Signature · 1 line
2.39.2
PATCH 16/20 Staging: rtl8192e: Rename variable QueryRate
In reply to Tree DaviesRename variable QueryRate to query_rate to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +8 -8
@@ -141,26 +141,26 @@ static void init_mgmt_queue(struct rtllib_device *ieee)u8 MgntQuery_TxRateExcludeCCKRates (struct rtllib_device *ieee) {u16 i; -u8 QueryRate =0 ; +u8 query_rate =0 ;u8 BasicRate;for (i =0 ; i < ieee->current_network.rates_len; i++) { BasicRate = ieee->current_network.rates[i] &0x7F ;if (!rtllib_is_cck_rate (BasicRate)) { -if (QueryRate ==0 ) { - QueryRate = BasicRate; +if (query_rate ==0 ) { + query_rate = BasicRate; }else { -if (BasicRate < QueryRate) - QueryRate = BasicRate; +if (BasicRate < query_rate) + query_rate = BasicRate; } } } -if (QueryRate ==0 ) { - QueryRate =12 ; +if (query_rate ==0 ) { + query_rate =12 ;netdev_info (ieee->dev,"No BasicRate found!!\n" ); } -return QueryRate; +return query_rate; }static u8 MgntQuery_MgntFrameTxRate (struct rtllib_device *ieee)
Signature · 1 line
2.39.2
PATCH 17/20 Staging: rtl8192e: Rename variable BasicRate
In reply to Tree DaviesRename variable BasicRate to basic_rate to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib_softmac.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtllib_softmac.c +7 -7
@@ -142,23 +142,23 @@ u8 MgntQuery_TxRateExcludeCCKRates(struct rtllib_device *ieee) {u16 i;u8 query_rate =0 ; -u8 BasicRate; +u8 basic_rate;for (i =0 ; i < ieee->current_network.rates_len; i++) { - BasicRate = ieee->current_network.rates[i] &0x7F ; -if (!rtllib_is_cck_rate (BasicRate)) { + basic_rate = ieee->current_network.rates[i] &0x7F ; +if (!rtllib_is_cck_rate (basic_rate)) {if (query_rate ==0 ) { - query_rate = BasicRate; + query_rate = basic_rate; }else { -if (BasicRate < query_rate) - query_rate = BasicRate; +if (basic_rate < query_rate) + query_rate = basic_rate; } } }if (query_rate ==0 ) { query_rate =12 ; -netdev_info (ieee->dev,"No BasicRate found!!\n" ); +netdev_info (ieee->dev,"No basic_rate found!!\n" ); }return query_rate; }
Signature · 1 line
2.39.2
PATCH 18/20 Staging: rtl8192e: Rename variable skb_waitQ
In reply to Tree DaviesRename variable skb_waitQ to skb_waitq to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 4 ++-- drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 2 +- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 +++--- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c +2 -2
@@ -63,9 +63,9 @@ bool rtl92e_send_cmd_pkt(struct net_device *dev, u32 type, const void *data,if (type ==DESC_PACKET_TYPE_INIT && (!priv->rtllib->check_nic_enough_desc (dev,TXCMD_QUEUE ) || - (!skb_queue_empty (&priv->rtllib->skb_waitQ[TXCMD_QUEUE ])) || + (!skb_queue_empty (&priv->rtllib->skb_waitq[TXCMD_QUEUE ])) || (priv->rtllib->queue_stop))) { -skb_queue_tail (&priv->rtllib->skb_waitQ[TXCMD_QUEUE ], +skb_queue_tail (&priv->rtllib->skb_waitq[TXCMD_QUEUE ], skb); }else { priv->rtllib->softmac_hard_start_xmit (skb, dev);
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +1 -1
@@ -1728,7 +1728,7 @@ void rtl92e_stop_adapter(struct net_device *dev, bool reset) }for (i =0 ; i <MAX_QUEUE_SIZE ; i++) -skb_queue_purge (&priv->rtllib->skb_waitQ[i]); +skb_queue_purge (&priv->rtllib->skb_waitq[i]);skb_queue_purge (&priv->skb_queue); }
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +3 -3
@@ -723,7 +723,7 @@ static void _rtl92e_init_priv_variable(struct net_device *dev)skb_queue_head_init (&priv->skb_queue);for (i =0 ; i <MAX_QUEUE_SIZE ; i++) -skb_queue_head_init (&priv->rtllib->skb_waitQ[i]); +skb_queue_head_init (&priv->rtllib->skb_waitq[i]); }static void _rtl92e_init_priv_lock (struct r8192_priv *priv)
@@ -1574,9 +1574,9 @@ static void _rtl92e_tx_resume(struct net_device *dev)for (queue_index =BK_QUEUE ; queue_index <MAX_QUEUE_SIZE ; queue_index++) { -while ((!skb_queue_empty (&ieee->skb_waitQ[queue_index])) && +while ((!skb_queue_empty (&ieee->skb_waitq[queue_index])) && (priv->rtllib->check_nic_enough_desc (dev, queue_index) >0 )) { - skb =skb_dequeue (&ieee->skb_waitQ[queue_index]); + skb =skb_dequeue (&ieee->skb_waitq[queue_index]); ieee->softmac_data_hard_start_xmit (skb, dev,0 ); } }
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1382,7 +1382,7 @@ struct rtllib_device {int mgmt_queue_head;int mgmt_queue_tail;u8 AsocRetryCount; -struct sk_buff_head skb_waitQ[MAX_QUEUE_SIZE ]; +struct sk_buff_head skb_waitq[MAX_QUEUE_SIZE ];bool bdynamic_txpower_enable;
drivers/staging/rtl8192e/rtllib_softmac.c +4 -4
@@ -236,7 +236,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee)/* check whether the managed packet queued greater than 5 */ if (!ieee->check_nic_enough_desc (ieee->dev, tcb_desc->queue_index) || -skb_queue_len (&ieee->skb_waitQ[tcb_desc->queue_index]) || +skb_queue_len (&ieee->skb_waitq[tcb_desc->queue_index]) || ieee->queue_stop) {/* insert the skb packet to the management queue *
@@ -246,7 +246,7 @@ inline void softmac_mgmt_xmit(struct sk_buff *skb, struct rtllib_device *ieee)netdev_info (ieee->dev,"%s():insert to waitqueue, queue_index:%d!\n" , __func__, tcb_desc->queue_index); -skb_queue_tail (&ieee->skb_waitQ[tcb_desc->queue_index], +skb_queue_tail (&ieee->skb_waitq[tcb_desc->queue_index], skb); }else { ieee->softmac_hard_start_xmit (skb, ieee->dev);
@@ -1823,7 +1823,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)* the wait queue */ for (i =0 ; i < txb->nr_frags; i++) { - queue_len =skb_queue_len (&ieee->skb_waitQ[queue_index]); + queue_len =skb_queue_len (&ieee->skb_waitq[queue_index]);if ((queue_len !=0 ) || (!ieee->check_nic_enough_desc (ieee->dev, queue_index)) || (ieee->queue_stop)) {
@@ -1832,7 +1832,7 @@ void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee)* to check it any more. */ if (queue_len <200 ) -skb_queue_tail (&ieee->skb_waitQ[queue_index], +skb_queue_tail (&ieee->skb_waitq[queue_index], txb->fragments[i]);else kfree_skb (txb->fragments[i]);
Signature · 1 line
2.39.2
PATCH 19/20 Staging: rtl8192e: Rename variable bInitState
In reply to Tree DaviesRename variable bInitState to init_state to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib.h | 4 ++-- drivers/staging/rtl8192e/rtllib_softmac.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8192e/rtllib.h +2 -2
@@ -1677,8 +1677,8 @@ void rtllib_sta_ps_send_pspoll_frame(struct rtllib_device *ieee);void rtllib_start_protocol (struct rtllib_device *ieee);void rtllib_stop_protocol (struct rtllib_device *ieee); -void rtllib_EnableNetMonitorMode (struct net_device *dev,bool bInitState); -void rtllib_DisableNetMonitorMode (struct net_device *dev,bool bInitState); +void rtllib_EnableNetMonitorMode (struct net_device *dev,bool init_state); +void rtllib_DisableNetMonitorMode (struct net_device *dev,bool init_state);void rtllib_softmac_stop_protocol (struct rtllib_device *ieee);void rtllib_softmac_start_protocol (struct rtllib_device *ieee);
drivers/staging/rtl8192e/rtllib_softmac.c +4 -4
@@ -349,26 +349,26 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)/* Enables network monitor mode, all rx packets will be received. */ void rtllib_EnableNetMonitorMode (struct net_device *dev, -bool bInitState) +bool init_state) {struct rtllib_device *ieee =netdev_priv_rsl (dev);netdev_info (dev,"========>Enter Monitor Mode\n" ); - ieee->AllowAllDestAddrHandler (dev, true, !bInitState); + ieee->AllowAllDestAddrHandler (dev, true, !init_state); }/* Disables network monitor mode. Only packets destinated to * us will be received. */ void rtllib_DisableNetMonitorMode (struct net_device *dev, -bool bInitState) +bool init_state) {struct rtllib_device *ieee =netdev_priv_rsl (dev);netdev_info (dev,"========>Exit Monitor Mode\n" ); - ieee->AllowAllDestAddrHandler (dev, false, !bInitState); + ieee->AllowAllDestAddrHandler (dev, false, !init_state); }static void rtllib_send_probe (struct rtllib_device *ieee)
Signature · 1 line
2.39.2
PATCH 20/20 Staging: rtl8192e: Rename function rtllib_DisableNetMonitorMode()
In reply to Tree DaviesRename function rtllib_DisableNetMonitorMode to rtllib_disable_net_monitor_mode to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1678,7 +1678,7 @@ void rtllib_start_protocol(struct rtllib_device *ieee);void rtllib_stop_protocol (struct rtllib_device *ieee);void rtllib_EnableNetMonitorMode (struct net_device *dev,bool init_state); -void rtllib_DisableNetMonitorMode (struct net_device *dev,bool init_state); +void rtllib_disable_net_monitor_mode (struct net_device *dev,bool init_state);void rtllib_softmac_stop_protocol (struct rtllib_device *ieee);void rtllib_softmac_start_protocol (struct rtllib_device *ieee);
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -361,7 +361,7 @@ void rtllib_EnableNetMonitorMode(struct net_device *dev,/* Disables network monitor mode. Only packets destinated to * us will be received. */ -void rtllib_DisableNetMonitorMode (struct net_device *dev, +void rtllib_disable_net_monitor_mode (struct net_device *dev,bool init_state) {struct rtllib_device *ieee =netdev_priv_rsl (dev);
drivers/staging/rtl8192e/rtllib_softmac_wx.c +1 -1
@@ -270,7 +270,7 @@ int rtllib_wx_set_mode(struct rtllib_device *ieee, struct iw_request_info *a, }else { ieee->dev->type =ARPHRD_ETHER ;if (ieee->iw_mode ==IW_MODE_MONITOR ) -rtllib_DisableNetMonitorMode (ieee->dev, false); +rtllib_disable_net_monitor_mode (ieee->dev, false); }if (!ieee->proto_started) {
Signature · 1 line
2.39.2