summaryrefslogtreecommitdiff
path: root/net/wireless/wext-spy.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/wext-spy.c')
-rw-r--r--net/wireless/wext-spy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/wext-spy.c b/net/wireless/wext-spy.c
index 5d643a548feb..33bef22e44e9 100644
--- a/net/wireless/wext-spy.c
+++ b/net/wireless/wext-spy.c
@@ -203,7 +203,7 @@ void wireless_spy_update(struct net_device * dev,
/* Update all records that match */
for (i = 0; i < spydata->spy_number; i++)
- if (!compare_ether_addr(address, spydata->spy_address[i])) {
+ if (ether_addr_equal(address, spydata->spy_address[i])) {
memcpy(&(spydata->spy_stat[i]), wstats,
sizeof(struct iw_quality));
match = i;