staging: r8188eu: use is_multicast_ether_addr in os_dep/recv_linux.c
authorMichael Straube <straube.linux@gmail.com>
Mon, 23 Aug 2021 12:01:06 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Aug 2021 10:23:13 +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-9-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/recv_linux.c

index b4c5333bfff064bba276034d26c88c3acead50b0..dd3113b6d4f387c176408809cd2bf17fc3f181fc 100644 (file)
@@ -132,7 +132,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
                struct sta_info *psta = NULL;
                struct sta_priv *pstapriv = &padapter->stapriv;
                struct rx_pkt_attrib *pattrib = &precv_frame->attrib;
-               int bmcast = IS_MCAST(pattrib->dst);
+               bool bmcast = is_multicast_ether_addr(pattrib->dst);
 
                if (memcmp(pattrib->dst, myid(&padapter->eeprompriv),
                                 ETH_ALEN)) {