aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Straube <[email protected]>2021-08-23 14:01:01 +0200
committerGreg Kroah-Hartman <[email protected]>2021-08-26 12:23:12 +0200
commit129f4197f22d407d47d05babb538bef7339c6cdb (patch)
tree45a615f8d327ed799e904b300ccb59fc75d90b75
parent08cff18916f5a1d918a902d1f8fe1ef76c2520d4 (diff)
staging: r8188eu: use is_multicast_ether_addr in core/rtw_mp.c
Use is_multicast_ether_addr instead of custom macro IS_MCAST, the buffer is properly aligned. Acked-by: Phillip Potter <[email protected]> Signed-off-by: Michael Straube <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/r8188eu/core/rtw_mp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_mp.c b/drivers/staging/r8188eu/core/rtw_mp.c
index 93bb683b628f..e66b7333077a 100644
--- a/drivers/staging/r8188eu/core/rtw_mp.c
+++ b/drivers/staging/r8188eu/core/rtw_mp.c
@@ -635,7 +635,7 @@ void SetPacketTx(struct adapter *padapter)
struct tx_desc *desc;
struct rtw_ieee80211_hdr *hdr;
u8 payload;
- s32 bmcast;
+ bool bmcast;
struct pkt_attrib *pattrib;
struct mp_priv *pmp_priv;
@@ -651,7 +651,7 @@ void SetPacketTx(struct adapter *padapter)
memcpy(pattrib->src, padapter->eeprompriv.mac_addr, ETH_ALEN);
memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
- bmcast = IS_MCAST(pattrib->ra);
+ bmcast = is_multicast_ether_addr(pattrib->ra);
if (bmcast) {
pattrib->mac_id = 1;
pattrib->psta = rtw_get_bcmc_stainfo(padapter);