From: Michael Straube Date: Mon, 16 Jul 2018 14:23:03 +0000 (+0200) Subject: staging: rtl8188eu: use is_multicast_ether_addr X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=11790bbdf359f633cb48ba8c77f696c03505c3c7;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8188eu: use is_multicast_ether_addr 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_recv.c b/drivers/staging/rtl8188eu/core/rtw_recv.c index 2edc3a8242b1..48e12b5439eb 100644 --- a/drivers/staging/rtl8188eu/core/rtw_recv.c +++ b/drivers/staging/rtl8188eu/core/rtw_recv.c @@ -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)