@@ -317,7 +317,7 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p
317317 if (prxattrib -> encrypt == _TKIP_ ) {
318318 /* calculate mic code */
319319 if (stainfo ) {
320- if (IS_MCAST (prxattrib -> ra )) {
320+ if (is_multicast_ether_addr (prxattrib -> ra )) {
321321 /* mickey =&psecuritypriv->dot118021XGrprxmickey.skey[0]; */
322322 /* iv = precvframe->u.hdr.rx_data+prxattrib->hdrlen; */
323323 /* rxdata_key_idx =(((iv[3])>>6)&0x3) ; */
@@ -352,18 +352,18 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p
352352 if (bmic_err == true) {
353353 /* double check key_index for some timing issue , */
354354 /* cannot compare with psecuritypriv->dot118021XGrpKeyid also cause timing issue */
355- if ((IS_MCAST (prxattrib -> ra ) == true) && (prxattrib -> key_index != pmlmeinfo -> key_index ))
355+ if ((is_multicast_ether_addr (prxattrib -> ra ) == true) && (prxattrib -> key_index != pmlmeinfo -> key_index ))
356356 brpt_micerror = false;
357357
358358 if (prxattrib -> bdecrypted && brpt_micerror )
359- rtw_handle_tkip_mic_err (adapter , (u8 )IS_MCAST (prxattrib -> ra ));
359+ rtw_handle_tkip_mic_err (adapter , (u8 )is_multicast_ether_addr (prxattrib -> ra ));
360360
361361 res = _FAIL ;
362362
363363 } else {
364364 /* mic checked ok */
365365 if (!psecuritypriv -> bcheck_grpkey &&
366- IS_MCAST (prxattrib -> ra ))
366+ is_multicast_ether_addr (prxattrib -> ra ))
367367 psecuritypriv -> bcheck_grpkey = true;
368368 }
369369 }
@@ -625,7 +625,7 @@ static void count_rx_stats(struct adapter *padapter, union recv_frame *prframe,
625625
626626 padapter -> mlmepriv .LinkDetectInfo .NumRxOkInPeriod ++ ;
627627
628- if ((!MacAddr_isBcst (pattrib -> dst )) && (!IS_MCAST (pattrib -> dst )))
628+ if ((!is_broadcast_ether_addr (pattrib -> dst )) && (!is_multicast_ether_addr (pattrib -> dst )))
629629 padapter -> mlmepriv .LinkDetectInfo .NumRxUnicastOkInPeriod ++ ;
630630
631631 if (sta )
@@ -654,7 +654,7 @@ static signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame *
654654 u8 * mybssid = get_bssid (pmlmepriv );
655655 u8 * myhwaddr = myid (& adapter -> eeprompriv );
656656 u8 * sta_addr = NULL ;
657- signed int bmcast = IS_MCAST (pattrib -> dst );
657+ signed int bmcast = is_multicast_ether_addr (pattrib -> dst );
658658
659659 if ((check_fwstate (pmlmepriv , WIFI_ADHOC_STATE ) == true) ||
660660 (check_fwstate (pmlmepriv , WIFI_ADHOC_MASTER_STATE ) == true)) {
@@ -690,7 +690,7 @@ static signed int sta2sta_data_frame(struct adapter *adapter, union recv_frame *
690690 } else if (check_fwstate (pmlmepriv , WIFI_AP_STATE ) == true) {
691691 if (bmcast ) {
692692 /* For AP mode, if DA == MCAST, then BSSID should be also MCAST */
693- if (!IS_MCAST (pattrib -> bssid )) {
693+ if (!is_multicast_ether_addr (pattrib -> bssid )) {
694694 ret = _FAIL ;
695695 goto exit ;
696696 }
@@ -741,7 +741,7 @@ static signed int ap2sta_data_frame(struct adapter *adapter, union recv_frame *p
741741 struct mlme_priv * pmlmepriv = & adapter -> mlmepriv ;
742742 u8 * mybssid = get_bssid (pmlmepriv );
743743 u8 * myhwaddr = myid (& adapter -> eeprompriv );
744- signed int bmcast = IS_MCAST (pattrib -> dst );
744+ signed int bmcast = is_multicast_ether_addr (pattrib -> dst );
745745
746746 if ((check_fwstate (pmlmepriv , WIFI_STATION_STATE ) == true) &&
747747 (check_fwstate (pmlmepriv , _FW_LINKED ) == true ||
@@ -1329,7 +1329,7 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f
13291329 }
13301330
13311331 if (pattrib -> privacy ) {
1332- GET_ENCRY_ALGO (psecuritypriv , psta , pattrib -> encrypt , IS_MCAST (pattrib -> ra ));
1332+ GET_ENCRY_ALGO (psecuritypriv , psta , pattrib -> encrypt , is_multicast_ether_addr (pattrib -> ra ));
13331333
13341334 SET_ICE_IV_LEN (pattrib -> iv_len , pattrib -> icv_len , pattrib -> encrypt );
13351335 } else {
@@ -1354,7 +1354,7 @@ static signed int validate_80211w_mgmt(struct adapter *adapter, union recv_frame
13541354 if (check_fwstate (pmlmepriv , WIFI_STATION_STATE ) && check_fwstate (pmlmepriv , _FW_LINKED ) &&
13551355 adapter -> securitypriv .binstallBIPkey == true) {
13561356 /* unicast management frame decrypt */
1357- if (pattrib -> privacy && !(IS_MCAST (GetAddr1Ptr (ptr ))) &&
1357+ if (pattrib -> privacy && !(is_multicast_ether_addr (GetAddr1Ptr (ptr ))) &&
13581358 (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC || subtype == WIFI_ACTION )) {
13591359 u8 * mgmt_DATA ;
13601360 u32 data_len = 0 ;
@@ -1381,7 +1381,7 @@ static signed int validate_80211w_mgmt(struct adapter *adapter, union recv_frame
13811381 kfree (mgmt_DATA );
13821382 if (!precv_frame )
13831383 goto validate_80211w_fail ;
1384- } else if (IS_MCAST (GetAddr1Ptr (ptr )) &&
1384+ } else if (is_multicast_ether_addr (GetAddr1Ptr (ptr )) &&
13851385 (subtype == WIFI_DEAUTH || subtype == WIFI_DISASSOC )) {
13861386 signed int BIP_ret = _SUCCESS ;
13871387 /* verify BIP MME IE of broadcast/multicast de-auth/disassoc packet */
@@ -2041,7 +2041,7 @@ static int recv_func(struct adapter *padapter, union recv_frame *rframe)
20412041
20422042 /* check if need to enqueue into uc_swdec_pending_queue*/
20432043 if (check_fwstate (mlmepriv , WIFI_STATION_STATE ) &&
2044- !IS_MCAST (prxattrib -> ra ) && prxattrib -> encrypt > 0 &&
2044+ !is_multicast_ether_addr (prxattrib -> ra ) && prxattrib -> encrypt > 0 &&
20452045 (prxattrib -> bdecrypted == 0 || psecuritypriv -> sw_decrypt == true) &&
20462046 psecuritypriv -> ndisauthtype == Ndis802_11AuthModeWPAPSK &&
20472047 !psecuritypriv -> busetkipkey ) {
0 commit comments