staging: rtl8188eu: cleanup style issues in rtw_xmit.c
cover staging: rtl8188eu: cleanup style issues in rtw_xmit.c
Cleanup style/checkpatch issues in the file core/rtw_xmit.c.
Michael Straube (8):
staging: rtl8188eu: cleanup missing spaces around operators
staging: rtl8188eu: use __func__ in qos_acm()
staging: rtl8188eu: cleanup alignment issue
staging: rtl8188eu: remove commented code
staging: rtl8188eu: cleanup block comments
staging: rtl8188eu: cleanup long lines in rtw_get_sta_pending()
staging: rtl8188eu: cleanup long lines in stop_sta_xmit()
staging: rtl8188eu: remove whitespace in qos_acm()
drivers/staging/rtl8188eu/core/rtw_xmit.c | 148 ++++++++++++---------- 1 file changed, 79 insertions(+), 69 deletions(-)
Signature · 1 line
2.19.1
PATCH 1/8 staging: rtl8188eu: cleanup missing spaces around operators
Clear all missing spaces around operators checkpatch issues in the file core/rtw_xmit.c. Use '+=' or '-=' where possible.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 60 ++++++++++++++--------- 1 file changed, 36 insertions(+), 24 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +36 -24
@@ -494,7 +494,8 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p pattrib->subtype =WIFI_DATA_TYPE ; pattrib->priority =0 ; -if (check_fwstate (pmlmepriv,WIFI_AP_STATE |WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE )) { +if (check_fwstate (pmlmepriv,WIFI_AP_STATE | +WIFI_ADHOC_STATE |WIFI_ADHOC_MASTER_STATE )) {if (psta->qos_option)set_qos (pkt, pattrib); }else {
@@ -628,15 +629,15 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfrrtw_secmicsetkey (&micdata, &stainfo->dot11tkiptxmickey.skey[0 ]); } -if (pframe[1 ]&1 ) {/* ToDS == 1 */ +if (pframe[1 ] &1 ) {/* ToDS == 1 */ rtw_secmicappend (&micdata, &pframe[16 ],6 );/* DA */ -if (pframe[1 ]&2 )/* From Ds == 1 */ +if (pframe[1 ] &2 )/* From Ds == 1 */ rtw_secmicappend (&micdata, &pframe[24 ],6 );else rtw_secmicappend (&micdata, &pframe[10 ],6 ); }else {/* ToDS == 0 */ rtw_secmicappend (&micdata, &pframe[4 ],6 );/* DA */ -if (pframe[1 ]&2 )/* From Ds == 1 */ +if (pframe[1 ] &2 )/* From Ds == 1 */ rtw_secmicappend (&micdata, &pframe[16 ],6 );else rtw_secmicappend (&micdata, &pframe[10 ],6 );
@@ -653,23 +654,31 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr payload = (u8 *)round_up ((size_t )(payload),4 );RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("=== curfragnum=%d, pframe = 0x%.2x, 0x%.2x, 0x%.2x, 0x%.2x, 0x%.2x, 0x%.2x, 0x%.2x, 0x%.2x,!!!\n" , - curfragnum, *payload, *(payload+1 ), - *(payload+2 ), *(payload+3 ), - *(payload+4 ), *(payload+5 ), - *(payload+6 ), *(payload+7 ))); + curfragnum, *payload, *(payload +1 ), + *(payload +2 ), *(payload +3 ), + *(payload +4 ), *(payload +5 ), + *(payload +6 ), *(payload +7 ))); - payload = payload+pattrib->hdrlen+pattrib->iv_len; + payload += pattrib->hdrlen + pattrib->iv_len;RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("curfragnum=%d pattrib->hdrlen=%d pattrib->iv_len=%d" , curfragnum, pattrib->hdrlen, pattrib->iv_len)); -if ((curfragnum+1 ) == pattrib->nr_frags) { - length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len :0 ); +if (curfragnum +1 == pattrib->nr_frags) { + length = pattrib->last_txcmdsz - + pattrib->hdrlen - + pattrib->iv_len - + ((pattrib->bswenc) ? + pattrib->icv_len :0 );rtw_secmicappend (&micdata, payload, length); - payload = payload+length; + payload += length; }else { - length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-((pattrib->bswenc) ? pattrib->icv_len :0 ); + length = pxmitpriv->frag_len - + pattrib->hdrlen - + pattrib->iv_len - + ((pattrib->bswenc) ? + pattrib->icv_len :0 );rtw_secmicappend (&micdata, payload, length); - payload = payload+length+pattrib->icv_len; + payload += length + pattrib->icv_len;RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("curfragnum=%d length=%d pattrib->icv_len=%d" , curfragnum, length, pattrib->icv_len)); } }
@@ -685,8 +694,8 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr pattrib->last_txcmdsz +=8 ;RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, ("\n ======== last pkt ========\n" )); - payload = payload-pattrib->last_txcmdsz+8 ; -for (curfragnum =0 ; curfragnum < pattrib->last_txcmdsz; curfragnum = curfragnum+8 ) + payload -= pattrib->last_txcmdsz +8 ; +for (curfragnum =0 ; curfragnum < pattrib->last_txcmdsz; curfragnum +=8 ) RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_, (" %.2x, %.2x, %.2x, %.2x, %.2x, %.2x, %.2x, %.2x ", *(payload + curfragnum), *(payload + curfragnum + 1),
@@ -833,11 +842,11 @@ s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattrif (SN_LESS (pattrib->seqnum, tx_seq)) { pattrib->ampdu_en = false;/* AGG BK */ }else if (SN_EQUAL (pattrib->seqnum, tx_seq)) { - psta->BA_starting_seqctrl[pattrib->priority &0x0f ] = (tx_seq+1 )&0xfff ; + psta->BA_starting_seqctrl[pattrib->priority &0x0f ] = (tx_seq +1 ) &0xfff ; pattrib->ampdu_en = true;/* AGG EN */ }else { - psta->BA_starting_seqctrl[pattrib->priority &0x0f ] = (pattrib->seqnum+1 )&0xfff ; + psta->BA_starting_seqctrl[pattrib->priority &0x0f ] = (pattrib->seqnum +1 ) &0xfff ; pattrib->ampdu_en = true;/* AGG EN */ } }
@@ -978,7 +987,10 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, structRT_TRACE (_module_rtl871x_xmit_c_, _drv_notice_, ("%s: keyid=%d pattrib->iv[3]=%.2x pframe=%.2x %.2x %.2x %.2x\n" , - __func__, padapter->securitypriv.dot11PrivacyKeyIndex, pattrib->iv[3 ], *pframe, *(pframe+1 ), *(pframe+2 ), *(pframe+3 ))); + __func__, + padapter->securitypriv.dot11PrivacyKeyIndex, + pattrib->iv[3 ], *pframe, *(pframe +1 ), + *(pframe +2 ), *(pframe +3 ))); pframe += pattrib->iv_len;
@@ -1118,7 +1130,7 @@ void rtw_count_tx_stats(struct adapter *padapter, struct xmit_frame *pxmitframe,struct xmit_priv *pxmitpriv = &padapter->xmitpriv;struct mlme_priv *pmlmepriv = &padapter->mlmepriv; -if ((pxmitframe->frame_tag&0x0f ) ==DATA_FRAMETAG ) { +if ((pxmitframe->frame_tag &0x0f ) ==DATA_FRAMETAG ) { pxmitpriv->tx_bytes += sz; pmlmepriv->LinkDetectInfo.NumTxOkInPeriod += pxmitframe->agg_num;
@@ -1673,10 +1685,10 @@ int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_fraspin_lock_bh (&psta->sleep_q.lock); -if (psta->state&WIFI_SLEEP_STATE ) { +if (psta->state &WIFI_SLEEP_STATE ) {u8 wmmps_ac =0 ; -if (pstapriv->sta_dz_bitmap&BIT (psta->aid)) { +if (pstapriv->sta_dz_bitmap &BIT (psta->aid)) {list_del_init (&pxmitframe->list);list_add_tail (&pxmitframe->list,get_list_head (&psta->sleep_q));
@@ -1860,7 +1872,7 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta) update_mask =BIT (0 ); -if (psta->state&WIFI_SLEEP_STATE ) +if (psta->state &WIFI_SLEEP_STATE ) psta->state ^=WIFI_SLEEP_STATE ;if (psta->state &WIFI_STA_ALIVE_CHK_STATE ) {
@@ -1878,7 +1890,7 @@ void wakeup_sta_to_xmit(struct adapter *padapter, struct sta_info *psta)if (!psta_bmc)return ; -if ((pstapriv->sta_dz_bitmap&0xfffe ) ==0x0 ) {/* no any sta in ps mode */ +if ((pstapriv->sta_dz_bitmap &0xfffe ) ==0x0 ) {/* no any sta in ps mode */ spin_lock_bh (&psta_bmc->sleep_q.lock); xmitframe_phead =get_list_head (&psta_bmc->sleep_q);
Signature · 1 line
2.19.1
PATCH 3/8 staging: rtl8188eu: cleanup alignment issue
In reply to Michael StraubeClear a 'Alignment should match open parenthesis'
checkpatch issue.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +3 -3
@@ -863,9 +863,9 @@ s32 rtw_txframes_pending(struct adapter *padapter)struct xmit_priv *pxmitpriv = &padapter->xmitpriv;return (!list_empty (&pxmitpriv->be_pending.queue) || - !list_empty (&pxmitpriv->bk_pending.queue) || - !list_empty (&pxmitpriv->vi_pending.queue) || - !list_empty (&pxmitpriv->vo_pending.queue)); + !list_empty (&pxmitpriv->bk_pending.queue) || + !list_empty (&pxmitpriv->vi_pending.queue) || + !list_empty (&pxmitpriv->vo_pending.queue)); }s32 rtw_txframes_sta_ac_pending (struct adapter *padapter,struct pkt_attrib *pattrib)
Signature · 1 line
2.19.1
PATCH 4/8 staging: rtl8188eu: remove commented code
In reply to Michael StraubeRemove unused commented code in the file core/rte_xmit.c. Clears 'please, no space before tabs' and 'line over 80 characters' checkpatch warnings.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +2 -21
@@ -77,8 +77,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) goto exit; } pxmitpriv->pxmit_frame_buf =PTR_ALIGN (pxmitpriv->pallocated_frame_buf,4 ); -/* pxmitpriv->pxmit_frame_buf = pxmitpriv->pallocated_frame_buf + 4 - */ -/* ((size_t) (pxmitpriv->pallocated_frame_buf) &3); */ pxframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf;
@@ -115,8 +113,6 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter) } pxmitpriv->pxmitbuf =PTR_ALIGN (pxmitpriv->pallocated_xmitbuf,4 ); -/* pxmitpriv->pxmitbuf = pxmitpriv->pallocated_xmitbuf + 4 - */ -/* ((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */ pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf;
@@ -321,13 +317,6 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *static void update_attrib_phy_info (struct pkt_attrib *pattrib,struct sta_info *psta) { -/*if (psta->rtsen) -pattrib->vcs_mode = RTS_CTS; -else if (psta->cts2self) -pattrib->vcs_mode = CTS_TO_SELF; -else -pattrib->vcs_mode = NONE_VCS;*/ - pattrib->mdata =0 ; pattrib->eosp =0 ; pattrib->triggered =0 ;
@@ -606,7 +595,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr hw_hdr_offset =TXDESC_SIZE + (pxmitframe->pkt_offset *PACKET_OFFSET_SZ ); -if (pattrib->encrypt == _TKIP_) {/* if (psecuritypriv->dot11PrivacyAlgrthm == _TKIP_PRIVACY_) */ +if (pattrib->encrypt == _TKIP_) {/* encode mic code */ if (stainfo) { u8 null_key[16] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
@@ -621,11 +610,8 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr/* start to calculate the mic code */ rtw_secmicsetkey (&micdata, psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey); }else { -if (!memcmp (&stainfo->dot11tkiptxmickey.skey[0 ], null_key,16 )) { -/* DbgPrint("\nxmitframe_addmic:stainfo->dot11tkiptxmickey == 0\n"); */ -/* msleep(10); */ +if (!memcmp (&stainfo->dot11tkiptxmickey.skey[0 ], null_key,16 ))return _FAIL; - }/* start to calculate the mic code */ rtw_secmicsetkey (&micdata, &stainfo->dot11tkiptxmickey.skey[0 ]); }
@@ -1157,7 +1143,6 @@ struct xmit_buf *rtw_alloc_xmitbuf_ext(struct xmit_priv *pxmitpriv)list_del_init (&pxmitbuf->list); pxmitpriv->free_xmit_extbuf_cnt--; pxmitbuf->priv_data =NULL ; -/* pxmitbuf->ext_tag = true; */ if (pxmitbuf->sctx) {DBG_88E ("%s pxmitbuf->sctx is not NULL\n" , __func__);rtw_sctx_done_err (&pxmitbuf->sctx,RTW_SCTX_DONE_BUF_ALLOC );
@@ -1194,8 +1179,6 @@ struct xmit_buf *rtw_alloc_xmitbuf(struct xmit_priv *pxmitpriv)struct xmit_buf *pxmitbuf;struct __queue *pfree_xmitbuf_queue = &pxmitpriv->free_xmitbuf_queue; -/* DBG_88E("+rtw_alloc_xmitbuf\n"); */ -spin_lock_irqsave (&pfree_xmitbuf_queue->lock, irql); pxmitbuf =list_first_entry_or_null (&pfree_xmitbuf_queue->queue, struct xmit_buf, list);
@@ -1286,7 +1269,6 @@ struct xmit_frame *rtw_alloc_xmitframe(struct xmit_priv *pxmitpriv) pxframe->pxmitbuf =NULL ;memset (&pxframe->attrib,0 ,sizeof (struct pkt_attrib )); -/* pxframe->attrib.psta = NULL; */ pxframe->frame_tag =DATA_FRAMETAG ;
@@ -1360,7 +1342,6 @@ s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitframif (rtw_xmit_classifier (padapter, pxmitframe) == _FAIL) {RT_TRACE (_module_rtl871x_xmit_c_, _drv_err_, ("%s: drop xmit pkt for classifier fail\n" , __func__)); -/* pxmitframe->pkt = NULL; */ return _FAIL; }
Signature · 1 line
2.19.1
PATCH 6/8 staging: rtl8188eu: cleanup long lines in rtw_get_sta_pending()
In reply to Michael StraubeLine break lines over 80 characters in rtw_get_sta_pending() to clear checkpatch warnings.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +10 -5
@@ -1426,7 +1426,8 @@ struct xmit_frame *rtw_dequeue_xframe(struct xmit_priv *pxmitpriv, struct hw_xmireturn pxmitframe; } -struct tx_servq *rtw_get_sta_pending (struct adapter *padapter,struct sta_info *psta,int up,u8 *ac) +struct tx_servq *rtw_get_sta_pending (struct adapter *padapter, +struct sta_info *psta,int up,u8 *ac) {struct tx_servq *ptxservq;
@@ -1435,26 +1436,30 @@ struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *case 2 : ptxservq = &psta->sta_xmitpriv.bk_q; *(ac) =3 ; -RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, ("%s : BK\n" , __func__)); +RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, + ("%s : BK\n" , __func__));break ;case 4 :case 5 : ptxservq = &psta->sta_xmitpriv.vi_q; *(ac) =1 ; -RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, ("%s : VI\n" , __func__)); +RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, + ("%s : VI\n" , __func__));break ;case 6 :case 7 : ptxservq = &psta->sta_xmitpriv.vo_q; *(ac) =0 ; -RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, ("%s : VO\n" , __func__)); +RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, + ("%s : VO\n" , __func__));break ;case 0 :case 3 :default : ptxservq = &psta->sta_xmitpriv.be_q; *(ac) =2 ; -RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, ("%s : BE\n" , __func__)); +RT_TRACE (_module_rtl871x_xmit_c_, _drv_info_, + ("%s : BE\n" , __func__));break ; }
Signature · 1 line
2.19.1
PATCH 7/8 staging: rtl8188eu: cleanup long lines in stop_sta_xmit()
In reply to Michael StraubeLine break lines over 80 characters in stop_sta_xmit() to clear checkpatch warnings.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +10 -5
@@ -1775,21 +1775,26 @@ void stop_sta_xmit(struct adapter *padapter, struct sta_info *psta) pstapriv->sta_dz_bitmap |=BIT (psta->aid); -dequeue_xmitframes_to_sleeping_queue (padapter, psta, &pstaxmitpriv->vo_q.sta_pending); +dequeue_xmitframes_to_sleeping_queue (padapter, psta, + &pstaxmitpriv->vo_q.sta_pending);list_del_init (&pstaxmitpriv->vo_q.tx_pending); -dequeue_xmitframes_to_sleeping_queue (padapter, psta, &pstaxmitpriv->vi_q.sta_pending); +dequeue_xmitframes_to_sleeping_queue (padapter, psta, + &pstaxmitpriv->vi_q.sta_pending);list_del_init (&pstaxmitpriv->vi_q.tx_pending); -dequeue_xmitframes_to_sleeping_queue (padapter, psta, &pstaxmitpriv->be_q.sta_pending); +dequeue_xmitframes_to_sleeping_queue (padapter, psta, + &pstaxmitpriv->be_q.sta_pending);list_del_init (&pstaxmitpriv->be_q.tx_pending); -dequeue_xmitframes_to_sleeping_queue (padapter, psta, &pstaxmitpriv->bk_q.sta_pending); +dequeue_xmitframes_to_sleeping_queue (padapter, psta, + &pstaxmitpriv->bk_q.sta_pending);list_del_init (&pstaxmitpriv->bk_q.tx_pending);/* for BC/MC Frames */ pstaxmitpriv = &psta_bmc->sta_xmitpriv; -dequeue_xmitframes_to_sleeping_queue (padapter, psta_bmc, &pstaxmitpriv->be_q.sta_pending); +dequeue_xmitframes_to_sleeping_queue (padapter, psta_bmc, + &pstaxmitpriv->be_q.sta_pending);list_del_init (&pstaxmitpriv->be_q.tx_pending);spin_unlock_bh (&pxmitpriv->lock);
Signature · 1 line
2.19.1
PATCH 8/8 staging: rtl8188eu: remove whitespace in qos_acm()
In reply to Michael StraubeRemove whitespace in qos_acm() to improve readability.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +2 -2
@@ -335,9 +335,9 @@ static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info * pattrib->retry_ctrl = false; } -u8 qos_acm (u8 acm_mask,u8 priority) +u8 qos_acm (u8 acm_mask,u8 priority) { -u8 change_priority = priority; +u8 change_priority = priority;switch (priority) {case 0 :
Signature · 1 line
2.19.1
PATCH 5/8 staging: rtl8188eu: cleanup block comments
In reply to Michael StraubeCleanup block comments to clear 'please, no space before tabs' and 'line over 80 characters' checkpatch warnings.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +14 -8
@@ -250,10 +250,12 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *else /* no frag */ sz = pattrib->last_txcmdsz; -/* (1) RTS_Threshold is compared to the MPDU, not MSDU. */ -/* (2) If there are more than one frag in this MSDU, only the first frag uses protection frame. */ -/* Other fragments are protected by previous fragment. */ -/* So we only need to check the length of first fragment. */ +/* (1) RTS_Threshold is compared to the MPDU, not MSDU. +* (2) If there are more than one frag in this MSDU, +* only the first frag uses protection frame. +* Other fragments are protected by previous fragment. +* So we only need to check the length of first fragment. +*/ if (pmlmeext->cur_wireless_mode <WIRELESS_11_24N || padapter->registrypriv.wifi_spec) {if (sz > padapter->registrypriv.rts_thresh) { pattrib->vcs_mode =RTS_CTS ;
@@ -373,8 +375,10 @@ static void set_qos(struct sk_buff *skb, struct pkt_attrib *pattrib)skb_copy_bits (skb,ETH_HLEN , &ip_hdr,sizeof (ip_hdr)); pattrib->priority = ip_hdr.tos >>5 ; }else if (pattrib->ether_type ==ETH_P_PAE ) { -/* "When priority processing of data frames is supported, */ -/* a STA's SME should send EAPOL-Key frames at the highest priority." */ +/* When priority processing of data frames is supported, +* a STA's SME should send EAPOL-Key frames at the highest +* priority. +*/ pattrib->priority =7 ; }else { pattrib->priority =0 ;
@@ -420,8 +424,10 @@ static s32 update_attrib(struct adapter *padapter, struct sk_buff *pkt, struct p pattrib->pktlen = pkt->len -ETH_HLEN ;if (pattrib->ether_type ==ETH_P_IP ) { -/* The following is for DHCP and ARP packet, we use cck1M to tx these packets and let LPS awake some time */ -/* to prevent DHCP protocol fail */ +/* The following is for DHCP and ARP packet, we use +* cck1M to tx these packets and let LPS awake some +* time to prevent DHCP protocol fail. +*/ u8 tmp[24 ];skb_copy_bits (pkt,ETH_HLEN , tmp,24 );
Signature · 1 line
2.19.1
PATCH 2/8 staging: rtl8188eu: use __func__ in qos_acm()
In reply to Michael StraubeUse __func__ instead of hardcoded name in qos_acm(). Reported by checkpatch.
--- drivers/staging/rtl8188eu/core/rtw_xmit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +2 -1
@@ -368,7 +368,8 @@ u8 qos_acm(u8 acm_mask, u8 priority) change_priority =5 ;break ;default : -DBG_88E ("qos_acm(): invalid pattrib->priority: %d!!!\n" , priority); +DBG_88E ("%s(): invalid pattrib->priority: %d!!!\n" , + __func__, priority);break ; }
Signature · 1 line
2.19.1