summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 23:28:30 +0200
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 20:28:42 +0200
commit3cf20931fa8ffd765a95f72d7539ab34770684d9 (patch)
tree139a04214a99689234fa901252345f0075f878a2 /drivers/net/wireless/libertas/scan.c
parent[PATCH] libertas: use MAC_FMT and MAC_ARG where appropriate (diff)
downloadlinux-3cf20931fa8ffd765a95f72d7539ab34770684d9.tar.xz
linux-3cf20931fa8ffd765a95f72d7539ab34770684d9.zip
[PATCH] libertas: use compare_ether_addr() rather than memcmp() where appropriate
Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r--drivers/net/wireless/libertas/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 133be93d608e..abc9d563ce46 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -1238,7 +1238,7 @@ struct bss_descriptor * libertas_find_BSSID_in_list(wlan_adapter * adapter,
*/
mutex_lock(&adapter->lock);
list_for_each_entry (iter_bss, &adapter->network_list, list) {
- if (memcmp(iter_bss->bssid, bssid, ETH_ALEN))
+ if (compare_ether_addr(iter_bss->bssid, bssid))
continue; /* bssid doesn't match */
switch (mode) {
case IW_MODE_INFRA:
@@ -1284,7 +1284,7 @@ struct bss_descriptor * libertas_find_SSID_in_list(wlan_adapter * adapter,
if (libertas_SSID_cmp(&iter_bss->ssid, ssid) != 0)
continue; /* ssid doesn't match */
- if (bssid && memcmp(iter_bss->bssid, bssid, ETH_ALEN) != 0)
+ if (bssid && compare_ether_addr(iter_bss->bssid, bssid) != 0)
continue; /* bssid doesn't match */
switch (mode) {