diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dv.c | 2 | ||||
-rw-r--r-- | net/core/wireless.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/core/dv.c b/net/core/dv.c index 3f25f4aa4e66..c5deb3655257 100644 --- a/net/core/dv.c +++ b/net/core/dv.c | |||
@@ -457,7 +457,7 @@ void divert_frame(struct sk_buff *skb) | |||
457 | unsigned char *skb_data_end = skb->data + skb->len; | 457 | unsigned char *skb_data_end = skb->data + skb->len; |
458 | 458 | ||
459 | /* Packet is already aimed at us, return */ | 459 | /* Packet is already aimed at us, return */ |
460 | if (!memcmp(eth, skb->dev->dev_addr, ETH_ALEN)) | 460 | if (!compare_ether_addr(eth, skb->dev->dev_addr)) |
461 | return; | 461 | return; |
462 | 462 | ||
463 | /* proto is not IP, do nothing */ | 463 | /* proto is not IP, do nothing */ |
diff --git a/net/core/wireless.c b/net/core/wireless.c index 271ddb35b0b2..f88b0affb3b9 100644 --- a/net/core/wireless.c +++ b/net/core/wireless.c | |||
@@ -1506,7 +1506,7 @@ void wireless_spy_update(struct net_device * dev, | |||
1506 | 1506 | ||
1507 | /* Update all records that match */ | 1507 | /* Update all records that match */ |
1508 | for(i = 0; i < spydata->spy_number; i++) | 1508 | for(i = 0; i < spydata->spy_number; i++) |
1509 | if(!memcmp(address, spydata->spy_address[i], ETH_ALEN)) { | 1509 | if(!compare_ether_addr(address, spydata->spy_address[i])) { |
1510 | memcpy(&(spydata->spy_stat[i]), wstats, | 1510 | memcpy(&(spydata->spy_stat[i]), wstats, |
1511 | sizeof(struct iw_quality)); | 1511 | sizeof(struct iw_quality)); |
1512 | match = i; | 1512 | match = i; |