staging: rtl8188eu: use is_multicast_ether_addr
authorMichael Straube <straube.linux@gmail.com>
Mon, 16 Jul 2018 14:23:03 +0000 (16:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:53:59 +0000 (08:53 +0200)
Use is_multicast_ether_addr instead of IS_MCAST.
By definition the broadcast address is also a multicast address,
so checking for !multicast in the conditional is sufficient.

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

index 2edc3a8..48e12b5 100644 (file)
@@ -549,7 +549,7 @@ static void count_rx_stats(struct adapter *padapter,
 
        padapter->mlmepriv.LinkDetectInfo.NumRxOkInPeriod++;
 
-       if (!is_broadcast_ether_addr(pattrib->dst) && !IS_MCAST(pattrib->dst))
+       if (!is_multicast_ether_addr(pattrib->dst))
                padapter->mlmepriv.LinkDetectInfo.NumRxUnicastOkInPeriod++;
 
        if (sta)