]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8188eu: use is_multicast_ether_addr in recv_linux.c
authorMichael Straube <straube.linux@gmail.com>
Sun, 5 Aug 2018 19:05:11 +0000 (21:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2018 12:23:15 +0000 (14:23 +0200)
Use is_multicast_ether_addr instead of custom IS_MCAST in
os_dep/recv_linux.c.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/recv_linux.c

index deadf26ea2aa85e2a8b5065d7b495b1c96284bf6..6f74f49bf3ab89d1d8e58ca2c5cc5aaa8ed8b752 100644 (file)
@@ -84,11 +84,11 @@ 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 mcast = is_multicast_ether_addr(pattrib->dst);
 
                if (memcmp(pattrib->dst, myid(&padapter->eeprompriv),
                           ETH_ALEN)) {
-                       if (bmcast) {
+                       if (mcast) {
                                psta = rtw_get_bcmc_stainfo(padapter);
                                pskb2 = skb_clone(skb, GFP_ATOMIC);
                        } else {
@@ -104,7 +104,7 @@ int rtw_recv_indicatepkt(struct adapter *padapter,
 
                                rtw_xmit_entry(skb, pnetdev);
 
-                               if (bmcast)
+                               if (mcast)
                                        skb = pskb2;
                                else
                                        goto _recv_indicatepkt_end;