diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-29 00:03:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:46 -0400 |
commit | 717c9339202a42ae7bec7d3c4b84deecdcae9f81 (patch) | |
tree | 5c2e770dfd36e59e9a3a0d4a4d316f8c707b25fb /drivers/net/wireless/libertas/scan.c | |
parent | 8cf1dc098fda226a0c3baa27ec737ce041acbb46 (diff) |
[PATCH] libertas: reduce SSID and BSSID mixed-case abuse
Kill mixed case function names from scan.c/scan.h.
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.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 5790e8bc1aec..606af50fa09b 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -1197,7 +1197,7 @@ done: | |||
1197 | * | 1197 | * |
1198 | * @return 0--ssid is same, otherwise is different | 1198 | * @return 0--ssid is same, otherwise is different |
1199 | */ | 1199 | */ |
1200 | int libertas_SSID_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len) | 1200 | int libertas_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len) |
1201 | { | 1201 | { |
1202 | if (ssid1_len != ssid2_len) | 1202 | if (ssid1_len != ssid2_len) |
1203 | return -1; | 1203 | return -1; |
@@ -1214,7 +1214,7 @@ int libertas_SSID_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len) | |||
1214 | * | 1214 | * |
1215 | * @return index in BSSID list, or error return code (< 0) | 1215 | * @return index in BSSID list, or error return code (< 0) |
1216 | */ | 1216 | */ |
1217 | struct bss_descriptor * libertas_find_BSSID_in_list(wlan_adapter * adapter, | 1217 | struct bss_descriptor * libertas_find_bssid_in_list(wlan_adapter * adapter, |
1218 | u8 * bssid, u8 mode) | 1218 | u8 * bssid, u8 mode) |
1219 | { | 1219 | { |
1220 | struct bss_descriptor * iter_bss; | 1220 | struct bss_descriptor * iter_bss; |
@@ -1261,7 +1261,7 @@ struct bss_descriptor * libertas_find_BSSID_in_list(wlan_adapter * adapter, | |||
1261 | * | 1261 | * |
1262 | * @return index in BSSID list | 1262 | * @return index in BSSID list |
1263 | */ | 1263 | */ |
1264 | struct bss_descriptor * libertas_find_SSID_in_list(wlan_adapter * adapter, | 1264 | struct bss_descriptor * libertas_find_ssid_in_list(wlan_adapter * adapter, |
1265 | u8 *ssid, u8 ssid_len, u8 * bssid, u8 mode, | 1265 | u8 *ssid, u8 ssid_len, u8 * bssid, u8 mode, |
1266 | int channel) | 1266 | int channel) |
1267 | { | 1267 | { |
@@ -1277,7 +1277,7 @@ struct bss_descriptor * libertas_find_SSID_in_list(wlan_adapter * adapter, | |||
1277 | || (iter_bss->last_scanned < tmp_oldest->last_scanned)) | 1277 | || (iter_bss->last_scanned < tmp_oldest->last_scanned)) |
1278 | tmp_oldest = iter_bss; | 1278 | tmp_oldest = iter_bss; |
1279 | 1279 | ||
1280 | if (libertas_SSID_cmp(iter_bss->ssid, iter_bss->ssid_len, | 1280 | if (libertas_ssid_cmp(iter_bss->ssid, iter_bss->ssid_len, |
1281 | ssid, ssid_len) != 0) | 1281 | ssid, ssid_len) != 0) |
1282 | continue; /* ssid doesn't match */ | 1282 | continue; /* ssid doesn't match */ |
1283 | if (bssid && compare_ether_addr(iter_bss->bssid, bssid) != 0) | 1283 | if (bssid && compare_ether_addr(iter_bss->bssid, bssid) != 0) |
@@ -1327,7 +1327,7 @@ out: | |||
1327 | * | 1327 | * |
1328 | * @return index in BSSID list | 1328 | * @return index in BSSID list |
1329 | */ | 1329 | */ |
1330 | struct bss_descriptor * libertas_find_best_SSID_in_list(wlan_adapter * adapter, | 1330 | struct bss_descriptor * libertas_find_best_ssid_in_list(wlan_adapter * adapter, |
1331 | u8 mode) | 1331 | u8 mode) |
1332 | { | 1332 | { |
1333 | u8 bestrssi = 0; | 1333 | u8 bestrssi = 0; |
@@ -1369,7 +1369,7 @@ struct bss_descriptor * libertas_find_best_SSID_in_list(wlan_adapter * adapter, | |||
1369 | * | 1369 | * |
1370 | * @return 0--success, otherwise--fail | 1370 | * @return 0--success, otherwise--fail |
1371 | */ | 1371 | */ |
1372 | int libertas_find_best_network_SSID(wlan_private * priv, | 1372 | int libertas_find_best_network_ssid(wlan_private * priv, |
1373 | u8 *out_ssid, u8 *out_ssid_len, u8 preferred_mode, u8 *out_mode) | 1373 | u8 *out_ssid, u8 *out_ssid_len, u8 preferred_mode, u8 *out_mode) |
1374 | { | 1374 | { |
1375 | wlan_adapter *adapter = priv->adapter; | 1375 | wlan_adapter *adapter = priv->adapter; |
@@ -1384,7 +1384,7 @@ int libertas_find_best_network_SSID(wlan_private * priv, | |||
1384 | 1384 | ||
1385 | wait_event_interruptible(adapter->cmd_pending, !adapter->nr_cmd_pending); | 1385 | wait_event_interruptible(adapter->cmd_pending, !adapter->nr_cmd_pending); |
1386 | 1386 | ||
1387 | found = libertas_find_best_SSID_in_list(adapter, preferred_mode); | 1387 | found = libertas_find_best_ssid_in_list(adapter, preferred_mode); |
1388 | if (found && (found->ssid_len > 0)) { | 1388 | if (found && (found->ssid_len > 0)) { |
1389 | memcpy(out_ssid, &found->ssid, IW_ESSID_MAX_SIZE); | 1389 | memcpy(out_ssid, &found->ssid, IW_ESSID_MAX_SIZE); |
1390 | *out_ssid_len = found->ssid_len; | 1390 | *out_ssid_len = found->ssid_len; |
@@ -1432,7 +1432,7 @@ int libertas_set_scan(struct net_device *dev, struct iw_request_info *info, | |||
1432 | * | 1432 | * |
1433 | * @return 0-success, otherwise fail | 1433 | * @return 0-success, otherwise fail |
1434 | */ | 1434 | */ |
1435 | int libertas_send_specific_SSID_scan(wlan_private * priv, | 1435 | int libertas_send_specific_ssid_scan(wlan_private * priv, |
1436 | u8 *ssid, u8 ssid_len, u8 clear_ssid) | 1436 | u8 *ssid, u8 ssid_len, u8 clear_ssid) |
1437 | { | 1437 | { |
1438 | wlan_adapter *adapter = priv->adapter; | 1438 | wlan_adapter *adapter = priv->adapter; |
@@ -1468,7 +1468,7 @@ out: | |||
1468 | * | 1468 | * |
1469 | * @return 0-success, otherwise fail | 1469 | * @return 0-success, otherwise fail |
1470 | */ | 1470 | */ |
1471 | int libertas_send_specific_BSSID_scan(wlan_private * priv, u8 * bssid, u8 clear_bssid) | 1471 | int libertas_send_specific_bssid_scan(wlan_private * priv, u8 * bssid, u8 clear_bssid) |
1472 | { | 1472 | { |
1473 | struct wlan_ioctl_user_scan_cfg scancfg; | 1473 | struct wlan_ioctl_user_scan_cfg scancfg; |
1474 | 1474 | ||
@@ -1561,7 +1561,7 @@ static inline char *libertas_translate_scan(wlan_private *priv, | |||
1561 | */ | 1561 | */ |
1562 | if ((adapter->mode == IW_MODE_ADHOC) | 1562 | if ((adapter->mode == IW_MODE_ADHOC) |
1563 | && adapter->adhoccreate | 1563 | && adapter->adhoccreate |
1564 | && !libertas_SSID_cmp(adapter->curbssparams.ssid, | 1564 | && !libertas_ssid_cmp(adapter->curbssparams.ssid, |
1565 | adapter->curbssparams.ssid_len, | 1565 | adapter->curbssparams.ssid_len, |
1566 | bss->ssid, bss->ssid_len)) { | 1566 | bss->ssid, bss->ssid_len)) { |
1567 | int snr, nf; | 1567 | int snr, nf; |
@@ -1598,7 +1598,7 @@ static inline char *libertas_translate_scan(wlan_private *priv, | |||
1598 | stop, &iwe, IW_EV_PARAM_LEN); | 1598 | stop, &iwe, IW_EV_PARAM_LEN); |
1599 | } | 1599 | } |
1600 | if ((bss->mode == IW_MODE_ADHOC) | 1600 | if ((bss->mode == IW_MODE_ADHOC) |
1601 | && !libertas_SSID_cmp(adapter->curbssparams.ssid, | 1601 | && !libertas_ssid_cmp(adapter->curbssparams.ssid, |
1602 | adapter->curbssparams.ssid_len, | 1602 | adapter->curbssparams.ssid_len, |
1603 | bss->ssid, bss->ssid_len) | 1603 | bss->ssid, bss->ssid_len) |
1604 | && adapter->adhoccreate) { | 1604 | && adapter->adhoccreate) { |