aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 17:28:30 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:42 -0400
commit3cf20931fa8ffd765a95f72d7539ab34770684d9 (patch)
tree139a04214a99689234fa901252345f0075f878a2 /drivers/net/wireless/libertas/scan.c
parent02eb229bbded41d189f1ec57dbd264f80c93b5c6 (diff)
[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,
1238 */ 1238 */
1239 mutex_lock(&adapter->lock); 1239 mutex_lock(&adapter->lock);
1240 list_for_each_entry (iter_bss, &adapter->network_list, list) { 1240 list_for_each_entry (iter_bss, &adapter->network_list, list) {
1241 if (memcmp(iter_bss->bssid, bssid, ETH_ALEN)) 1241 if (compare_ether_addr(iter_bss->bssid, bssid))
1242 continue; /* bssid doesn't match */ 1242 continue; /* bssid doesn't match */
1243 switch (mode) { 1243 switch (mode) {
1244 case IW_MODE_INFRA: 1244 case IW_MODE_INFRA:
@@ -1284,7 +1284,7 @@ struct bss_descriptor * libertas_find_SSID_in_list(wlan_adapter * adapter,
1284 1284
1285 if (libertas_SSID_cmp(&iter_bss->ssid, ssid) != 0) 1285 if (libertas_SSID_cmp(&iter_bss->ssid, ssid) != 0)
1286 continue; /* ssid doesn't match */ 1286 continue; /* ssid doesn't match */
1287 if (bssid && memcmp(iter_bss->bssid, bssid, ETH_ALEN) != 0) 1287 if (bssid && compare_ether_addr(iter_bss->bssid, bssid) != 0)
1288 continue; /* bssid doesn't match */ 1288 continue; /* bssid doesn't match */
1289 1289
1290 switch (mode) { 1290 switch (mode) {