aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-08-02 11:49:06 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:49 -0400
commitac558ca2ae878bd7a77831cda684702a2fa23d95 (patch)
tree10cfbf76cc842b265a9e8f7e4850e04e8e7fb136 /drivers/net/wireless/libertas/scan.c
parentc23a24f6ae083e058ed1e9472979df09915ffdf5 (diff)
[PATCH] libertas: make more functions static & remove unused functions
Some functions where declared in header files, but used only once. They are now static functions. After doing this, I found out that some functions weren't used at all. I removed this dead code. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> 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.c35
1 files changed, 1 insertions, 34 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 790e9888ea2b..683fa1ba5cac 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -1254,7 +1254,7 @@ out:
1254 * 1254 *
1255 * @return index in BSSID list 1255 * @return index in BSSID list
1256 */ 1256 */
1257struct bss_descriptor * libertas_find_best_ssid_in_list(wlan_adapter * adapter, 1257static struct bss_descriptor * libertas_find_best_ssid_in_list(wlan_adapter * adapter,
1258 u8 mode) 1258 u8 mode)
1259{ 1259{
1260 u8 bestrssi = 0; 1260 u8 bestrssi = 0;
@@ -1386,39 +1386,6 @@ out:
1386 return ret; 1386 return ret;
1387} 1387}
1388 1388
1389/**
1390 * @brief scan an AP with specific BSSID
1391 *
1392 * @param priv A pointer to wlan_private structure
1393 * @param bssid A pointer to AP's bssid
1394 * @param keeppreviousscan Flag used to save/clear scan table before scan
1395 *
1396 * @return 0-success, otherwise fail
1397 */
1398int libertas_send_specific_bssid_scan(wlan_private * priv, u8 * bssid, u8 clear_bssid)
1399{
1400 struct wlan_ioctl_user_scan_cfg scancfg;
1401
1402 lbs_deb_enter(LBS_DEB_ASSOC);
1403
1404 if (bssid == NULL)
1405 goto out;
1406
1407 memset(&scancfg, 0x00, sizeof(scancfg));
1408 memcpy(scancfg.bssid, bssid, ETH_ALEN);
1409 scancfg.clear_bssid = clear_bssid;
1410
1411 wlan_scan_networks(priv, &scancfg, 1);
1412 if (priv->adapter->surpriseremoved)
1413 return -1;
1414 wait_event_interruptible(priv->adapter->cmd_pending,
1415 !priv->adapter->nr_cmd_pending);
1416
1417out:
1418 lbs_deb_leave(LBS_DEB_ASSOC);
1419 return 0;
1420}
1421
1422static inline char *libertas_translate_scan(wlan_private *priv, 1389static inline char *libertas_translate_scan(wlan_private *priv,
1423 char *start, char *stop, 1390 char *start, char *stop,
1424 struct bss_descriptor *bss) 1391 struct bss_descriptor *bss)