mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00: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:
parent
80d2579d86
commit
c2f8b4ab8c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue