mirror of https://gitee.com/openkylin/linux.git
Staging: rtl8188eu: core: Use __func__ instead of function name
Replace the function name from format string with the constant __func__ to avoid multiple changes in case the name of the function will be modified. Issue reported by checkpatch.pl script. Signed-off-by: Georgiana Chelu <georgiana.chelu93@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b8581077c
commit
2742a7ddda
|
@ -237,25 +237,25 @@ static int recvframe_chkmic(struct adapter *adapter,
|
|||
stainfo = rtw_get_stainfo(&adapter->stapriv, &prxattrib->ta[0]);
|
||||
|
||||
if (prxattrib->encrypt == _TKIP_) {
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n recvframe_chkmic:prxattrib->encrypt==_TKIP_\n"));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n recvframe_chkmic:da=0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x\n",
|
||||
prxattrib->ra[0], prxattrib->ra[1], prxattrib->ra[2], prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5]));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n %s: prxattrib->encrypt==_TKIP_\n", __func__));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n %s: da=0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x\n",
|
||||
__func__, prxattrib->ra[0], prxattrib->ra[1], prxattrib->ra[2], prxattrib->ra[3], prxattrib->ra[4], prxattrib->ra[5]));
|
||||
|
||||
/* calculate mic code */
|
||||
if (stainfo != NULL) {
|
||||
if (IS_MCAST(prxattrib->ra)) {
|
||||
if (!psecuritypriv) {
|
||||
res = _FAIL;
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n"));
|
||||
DBG_88E("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n");
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n %s: didn't install group key!!!!!!!!!!\n", __func__));
|
||||
DBG_88E("\n %s: didn't install group key!!!!!!!!!!\n", __func__);
|
||||
goto exit;
|
||||
}
|
||||
mickey = &psecuritypriv->dot118021XGrprxmickey[prxattrib->key_index].skey[0];
|
||||
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n recvframe_chkmic: bcmc key\n"));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("\n %s: bcmc key\n", __func__));
|
||||
} else {
|
||||
mickey = &stainfo->dot11tkiprxmickey.skey[0];
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n recvframe_chkmic: unicast key\n"));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n %s: unicast key\n", __func__));
|
||||
}
|
||||
|
||||
/* icv_len included the mic code */
|
||||
|
@ -273,8 +273,8 @@ static int recvframe_chkmic(struct adapter *adapter,
|
|||
for (i = 0; i < 8; i++) {
|
||||
if (miccode[i] != *(pframemic+i)) {
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_,
|
||||
("recvframe_chkmic:miccode[%d](%02x)!=*(pframemic+%d)(%02x) ",
|
||||
i, miccode[i], i, *(pframemic+i)));
|
||||
("%s: miccode[%d](%02x)!=*(pframemic+%d)(%02x) ",
|
||||
__func__, i, miccode[i], i, *(pframemic+i)));
|
||||
bmic_err = true;
|
||||
}
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ static int recvframe_chkmic(struct adapter *adapter,
|
|||
}
|
||||
}
|
||||
} else {
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("recvframe_chkmic: rtw_get_stainfo==NULL!!!\n"));
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("%s: rtw_get_stainfo==NULL!!!\n", __func__));
|
||||
}
|
||||
|
||||
skb_trim(precvframe->pkt, precvframe->pkt->len - 8);
|
||||
|
|
Loading…
Reference in New Issue