mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
staging: rtl8192e: Replace memcmp() with ether_addr_equal()
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
80d2579d86
commit
c2f8b4ab8c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user