diff options
-rw-r--r-- | net/wireless/scan.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c index 1442bb68a3f3..9dee87c0358c 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c | |||
@@ -378,7 +378,11 @@ static int cmp_bss_core(struct cfg80211_bss *a, | |||
378 | b->len_information_elements); | 378 | b->len_information_elements); |
379 | } | 379 | } |
380 | 380 | ||
381 | return compare_ether_addr(a->bssid, b->bssid); | 381 | /* |
382 | * we can't use compare_ether_addr here since we need a < > operator. | ||
383 | * The binary return value of compare_ether_addr isn't enough | ||
384 | */ | ||
385 | return memcmp(a->bssid, b->bssid, sizeof(a->bssid)); | ||
382 | } | 386 | } |
383 | 387 | ||
384 | static int cmp_bss(struct cfg80211_bss *a, | 388 | static int cmp_bss(struct cfg80211_bss *a, |