]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: r8188eu: use is_multicast_ether_addr in core/rtw_mp.c
authorMichael Straube <straube.linux@gmail.com>
Mon, 23 Aug 2021 12:01:01 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:23:12 +0000 (12:23 +0200)
Use is_multicast_ether_addr instead of custom macro IS_MCAST, the
buffer is properly aligned.

Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210823120106.9633-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mp.c

index 93bb683b628f33dc7b2875e7409eafd5ac5c9504..e66b7333077a24ea7434d215b62e1db4cd0d224f 100644 (file)
@@ -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);