mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-03-31 22:49:56 +00:00
Use is_multicast_ether_addr instead of custom macro IS_MCAST, the
buffer is properly aligned. Link: https://lore.kernel.org/r/20210823120106.9633-3-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-4-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-5-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-6-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-7-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-8-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-9-straube.linux@gmail.com
This commit is contained in:
committed by
Carlos Garces
parent
3cfc5c26b4
commit
60aa279428
@@ -967,7 +967,7 @@ static s32 update_attrib_sec_info(_adapter *padapter, struct pkt_attrib *pattrib
|
||||
sint res = _SUCCESS;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
sint bmcast = IS_MCAST(pattrib->ra);
|
||||
bool bmcast = is_multicast_ether_addr(pattrib->ra);
|
||||
|
||||
memset(pattrib->dot118021x_UncstKey.skey, 0, 16);
|
||||
memset(pattrib->dot11tkiptxmickey.skey, 0, 16);
|
||||
@@ -1309,7 +1309,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
||||
struct sta_info *psta = NULL;
|
||||
struct ethhdr etherhdr;
|
||||
|
||||
sint bmcast;
|
||||
bool bmcast;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
|
||||
@@ -1354,7 +1354,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
||||
DBG_COUNTER(padapter->tx_logs.core_tx_upd_attrib_unknown);
|
||||
|
||||
get_sta_info:
|
||||
bmcast = IS_MCAST(pattrib->ra);
|
||||
bmcast = is_multicast_ether_addr(pattrib->ra);
|
||||
if (bmcast) {
|
||||
psta = rtw_get_bcmc_stainfo(padapter);
|
||||
if (psta == NULL) { /* if we cannot get psta => drop the pkt */
|
||||
@@ -1473,7 +1473,7 @@ get_sta_info:
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) &&
|
||||
pattrib->ether_type == ETH_P_ARP &&
|
||||
!IS_MCAST(pattrib->dst)) {
|
||||
!is_multicast_ether_addr(pattrib->dst)) {
|
||||
rtw_mi_set_scan_deny(padapter, 1000);
|
||||
rtw_mi_scan_abort(padapter, _FALSE); /*rtw_scan_abort_no_wait*/
|
||||
}
|
||||
@@ -1574,7 +1574,7 @@ static s32 xmitframe_addmic(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
u8 priority[4] = {0x0, 0x0, 0x0, 0x0};
|
||||
u8 hw_hdr_offset = 0;
|
||||
sint bmcst = IS_MCAST(pattrib->ra);
|
||||
bool bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
|
||||
/*
|
||||
if(pattrib->psta)
|
||||
@@ -1742,7 +1742,7 @@ s32 rtw_make_wlanhdr(_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
|
||||
|
||||
/* struct sta_info *psta; */
|
||||
|
||||
/* sint bmcst = IS_MCAST(pattrib->ra); */
|
||||
/* sint bmcst = is_multicast_ether_addr(pattrib->ra); */
|
||||
|
||||
|
||||
/*
|
||||
@@ -2184,7 +2184,7 @@ s32 rtw_xmit_tdls_coalesce(_adapter *padapter, struct xmit_frame *pxmitframe, st
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
u8 *pbuf_start;
|
||||
s32 bmcst = IS_MCAST(pattrib->ra);
|
||||
bool bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
s32 res = _SUCCESS;
|
||||
|
||||
|
||||
@@ -2311,7 +2311,7 @@ s32 check_amsdu(struct xmit_frame *pxmitframe)
|
||||
|
||||
pattrib = &pxmitframe->attrib;
|
||||
|
||||
if (IS_MCAST(pattrib->ra))
|
||||
if (is_multicast_ether_addr(pattrib->ra))
|
||||
ret = _FALSE;
|
||||
|
||||
if ((pattrib->ether_type == 0x888e) ||
|
||||
@@ -2578,7 +2578,7 @@ s32 rtw_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame *pxm
|
||||
|
||||
u8 *pbuf_start;
|
||||
|
||||
s32 bmcst = IS_MCAST(pattrib->ra);
|
||||
bool bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
s32 res = _SUCCESS;
|
||||
|
||||
|
||||
@@ -2783,7 +2783,7 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
u8 *pbuf_start;
|
||||
s32 bmcst = IS_MCAST(pattrib->ra);
|
||||
bool bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
s32 res = _FAIL;
|
||||
u8 *BIP_AAD = NULL;
|
||||
u8 *MGMT_body = NULL;
|
||||
@@ -3926,7 +3926,7 @@ __inline static struct tx_servq *rtw_get_sta_pending
|
||||
|
||||
#ifdef CONFIG_RTL8711
|
||||
|
||||
if (IS_MCAST(psta->cmn.mac_addr)) {
|
||||
if (is_multicast_ether_addr(psta->cmn.mac_addr)) {
|
||||
ptxservq = &(psta->sta_xmitpriv.be_q); /* we will use be_q to queue bc/mc frames in BCMC_stainfo */
|
||||
*ppstapending = &padapter->xmitpriv.bm_pending;
|
||||
} else
|
||||
@@ -4751,7 +4751,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
||||
struct sta_info *psta = NULL;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
sint bmcst = IS_MCAST(pattrib->ra);
|
||||
bool bmcst = is_multicast_ether_addr(pattrib->ra);
|
||||
bool update_tim = _FALSE;
|
||||
#ifdef CONFIG_TDLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user