staging: rtl8192e: Replace memcmp() with ether_addr_equal()
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Sun, 31 May 2015 18:19:24 +0000 (20:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 21:31:59 +0000 (06:31 +0900)
Use dedicated macro to compare ethernet addresses in probe_rq_parse().

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c

index 2f562de10071b1111e88d68564d86bb53b1a683b..5d69f98bf35569af6cbde1644e5980025cf1fed9 100644 (file)
@@ -1853,7 +1853,7 @@ static short probe_rq_parse(struct rtllib_device *ieee, struct sk_buff *skb,
                return -1; /* corrupted */
 
        bssid_match =
-         (memcmp(header->addr3, ieee->current_network.bssid, ETH_ALEN) != 0) &&
+         (!ether_addr_equal(header->addr3, ieee->current_network.bssid)) &&
          (!is_broadcast_ether_addr(header->addr3));
        if (bssid_match)
                return -1;