aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/scan.h
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-11-15 18:05:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:46 -0500
commit1007832103d016d1563fab71d4cf2b057a0bcceb (patch)
tree3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/scan.h
parent9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff)
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines and structures. It does: - rename libertas_XXX to lbs_XXX - rename LIBERTAS_XXX to lbs_XXX - rename wlan_XXX to lbs_XXX - rename WLAN_XXX to LBS_XXX (but only those that were defined in libertas-local *.h files, e.g. not defines from net/ieee80211.h) While passing, I fixed some checkpatch.pl errors too. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.h')
-rw-r--r--drivers/net/wireless/libertas/scan.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/drivers/net/wireless/libertas/scan.h b/drivers/net/wireless/libertas/scan.h
index c29c031bef8c..7ed66f40d181 100644
--- a/drivers/net/wireless/libertas/scan.h
+++ b/drivers/net/wireless/libertas/scan.h
@@ -2,10 +2,10 @@
2 * Interface for the wlan network scan routines 2 * Interface for the wlan network scan routines
3 * 3 *
4 * Driver interface functions and type declarations for the scan module 4 * Driver interface functions and type declarations for the scan module
5 * implemented in wlan_scan.c. 5 * implemented in scan.c.
6 */ 6 */
7#ifndef _WLAN_SCAN_H 7#ifndef _LBS_SCAN_H
8#define _WLAN_SCAN_H 8#define _LBS_SCAN_H
9 9
10#include <net/ieee80211.h> 10#include <net/ieee80211.h>
11#include "hostcmd.h" 11#include "hostcmd.h"
@@ -13,38 +13,38 @@
13/** 13/**
14 * @brief Maximum number of channels that can be sent in a setuserscan ioctl 14 * @brief Maximum number of channels that can be sent in a setuserscan ioctl
15 * 15 *
16 * @sa wlan_ioctl_user_scan_cfg 16 * @sa lbs_ioctl_user_scan_cfg
17 */ 17 */
18#define WLAN_IOCTL_USER_SCAN_CHAN_MAX 50 18#define LBS_IOCTL_USER_SCAN_CHAN_MAX 50
19 19
20//! Infrastructure BSS scan type in wlan_scan_cmd_config 20//! Infrastructure BSS scan type in lbs_scan_cmd_config
21#define WLAN_SCAN_BSS_TYPE_BSS 1 21#define LBS_SCAN_BSS_TYPE_BSS 1
22 22
23//! Adhoc BSS scan type in wlan_scan_cmd_config 23//! Adhoc BSS scan type in lbs_scan_cmd_config
24#define WLAN_SCAN_BSS_TYPE_IBSS 2 24#define LBS_SCAN_BSS_TYPE_IBSS 2
25 25
26//! Adhoc or Infrastructure BSS scan type in wlan_scan_cmd_config, no filter 26//! Adhoc or Infrastructure BSS scan type in lbs_scan_cmd_config, no filter
27#define WLAN_SCAN_BSS_TYPE_ANY 3 27#define LBS_SCAN_BSS_TYPE_ANY 3
28 28
29/** 29/**
30 * @brief Structure used internally in the wlan driver to configure a scan. 30 * @brief Structure used internally in the wlan driver to configure a scan.
31 * 31 *
32 * Sent to the command processing module to configure the firmware 32 * Sent to the command processing module to configure the firmware
33 * scan command prepared by libertas_cmd_80211_scan. 33 * scan command prepared by lbs_cmd_80211_scan.
34 * 34 *
35 * @sa wlan_scan_networks 35 * @sa lbs_scan_networks
36 * 36 *
37 */ 37 */
38struct wlan_scan_cmd_config { 38struct lbs_scan_cmd_config {
39 /** 39 /**
40 * @brief BSS type to be sent in the firmware command 40 * @brief BSS type to be sent in the firmware command
41 * 41 *
42 * Field can be used to restrict the types of networks returned in the 42 * Field can be used to restrict the types of networks returned in the
43 * scan. valid settings are: 43 * scan. valid settings are:
44 * 44 *
45 * - WLAN_SCAN_BSS_TYPE_BSS (infrastructure) 45 * - LBS_SCAN_BSS_TYPE_BSS (infrastructure)
46 * - WLAN_SCAN_BSS_TYPE_IBSS (adhoc) 46 * - LBS_SCAN_BSS_TYPE_IBSS (adhoc)
47 * - WLAN_SCAN_BSS_TYPE_ANY (unrestricted, adhoc and infrastructure) 47 * - LBS_SCAN_BSS_TYPE_ANY (unrestricted, adhoc and infrastructure)
48 */ 48 */
49 u8 bsstype; 49 u8 bsstype;
50 50
@@ -68,12 +68,12 @@ struct wlan_scan_cmd_config {
68}; 68};
69 69
70/** 70/**
71 * @brief IOCTL channel sub-structure sent in wlan_ioctl_user_scan_cfg 71 * @brief IOCTL channel sub-structure sent in lbs_ioctl_user_scan_cfg
72 * 72 *
73 * Multiple instances of this structure are included in the IOCTL command 73 * Multiple instances of this structure are included in the IOCTL command
74 * to configure a instance of a scan on the specific channel. 74 * to configure a instance of a scan on the specific channel.
75 */ 75 */
76struct wlan_ioctl_user_scan_chan { 76struct lbs_ioctl_user_scan_chan {
77 u8 channumber; //!< channel Number to scan 77 u8 channumber; //!< channel Number to scan
78 u8 radiotype; //!< Radio type: 'B/G' band = 0, 'A' band = 1 78 u8 radiotype; //!< Radio type: 'B/G' band = 0, 'A' band = 1
79 u8 scantype; //!< Scan type: Active = 0, Passive = 1 79 u8 scantype; //!< Scan type: Active = 0, Passive = 1
@@ -83,23 +83,23 @@ struct wlan_ioctl_user_scan_chan {
83/** 83/**
84 * @brief IOCTL input structure to configure an immediate scan cmd to firmware 84 * @brief IOCTL input structure to configure an immediate scan cmd to firmware
85 * 85 *
86 * Used in the setuserscan (WLAN_SET_USER_SCAN) private ioctl. Specifies 86 * Used in the setuserscan (LBS_SET_USER_SCAN) private ioctl. Specifies
87 * a number of parameters to be used in general for the scan as well 87 * a number of parameters to be used in general for the scan as well
88 * as a channel list (wlan_ioctl_user_scan_chan) for each scan period 88 * as a channel list (lbs_ioctl_user_scan_chan) for each scan period
89 * desired. 89 * desired.
90 * 90 *
91 * @sa libertas_set_user_scan_ioctl 91 * @sa lbs_set_user_scan_ioctl
92 */ 92 */
93struct wlan_ioctl_user_scan_cfg { 93struct lbs_ioctl_user_scan_cfg {
94 /** 94 /**
95 * @brief BSS type to be sent in the firmware command 95 * @brief BSS type to be sent in the firmware command
96 * 96 *
97 * Field can be used to restrict the types of networks returned in the 97 * Field can be used to restrict the types of networks returned in the
98 * scan. valid settings are: 98 * scan. valid settings are:
99 * 99 *
100 * - WLAN_SCAN_BSS_TYPE_BSS (infrastructure) 100 * - LBS_SCAN_BSS_TYPE_BSS (infrastructure)
101 * - WLAN_SCAN_BSS_TYPE_IBSS (adhoc) 101 * - LBS_SCAN_BSS_TYPE_IBSS (adhoc)
102 * - WLAN_SCAN_BSS_TYPE_ANY (unrestricted, adhoc and infrastructure) 102 * - LBS_SCAN_BSS_TYPE_ANY (unrestricted, adhoc and infrastructure)
103 */ 103 */
104 u8 bsstype; 104 u8 bsstype;
105 105
@@ -128,7 +128,7 @@ struct wlan_ioctl_user_scan_cfg {
128 /** 128 /**
129 * @brief Variable number (fixed maximum) of channels to scan up 129 * @brief Variable number (fixed maximum) of channels to scan up
130 */ 130 */
131 struct wlan_ioctl_user_scan_chan chanlist[WLAN_IOCTL_USER_SCAN_CHAN_MAX]; 131 struct lbs_ioctl_user_scan_chan chanlist[LBS_IOCTL_USER_SCAN_CHAN_MAX];
132}; 132};
133 133
134/** 134/**
@@ -174,30 +174,30 @@ struct bss_descriptor {
174 struct list_head list; 174 struct list_head list;
175}; 175};
176 176
177int libertas_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len); 177int lbs_ssid_cmp(u8 *ssid1, u8 ssid1_len, u8 *ssid2, u8 ssid2_len);
178 178
179struct bss_descriptor * libertas_find_ssid_in_list(wlan_adapter * adapter, 179struct bss_descriptor *lbs_find_ssid_in_list(lbs_adapter *adapter,
180 u8 *ssid, u8 ssid_len, u8 * bssid, u8 mode, 180 u8 *ssid, u8 ssid_len, u8 *bssid, u8 mode,
181 int channel); 181 int channel);
182 182
183struct bss_descriptor * libertas_find_bssid_in_list(wlan_adapter * adapter, 183struct bss_descriptor *lbs_find_bssid_in_list(lbs_adapter *adapter,
184 u8 * bssid, u8 mode); 184 u8 *bssid, u8 mode);
185 185
186int libertas_find_best_network_ssid(wlan_private * priv, u8 *out_ssid, 186int lbs_find_best_network_ssid(lbs_private *priv, u8 *out_ssid,
187 u8 *out_ssid_len, u8 preferred_mode, u8 *out_mode); 187 u8 *out_ssid_len, u8 preferred_mode, u8 *out_mode);
188 188
189int libertas_send_specific_ssid_scan(wlan_private * priv, u8 *ssid, 189int lbs_send_specific_ssid_scan(lbs_private *priv, u8 *ssid,
190 u8 ssid_len, u8 clear_ssid); 190 u8 ssid_len, u8 clear_ssid);
191 191
192int libertas_cmd_80211_scan(wlan_private * priv, 192int lbs_cmd_80211_scan(lbs_private *priv,
193 struct cmd_ds_command *cmd, 193 struct cmd_ds_command *cmd,
194 void *pdata_buf); 194 void *pdata_buf);
195 195
196int libertas_ret_80211_scan(wlan_private * priv, 196int lbs_ret_80211_scan(lbs_private *priv,
197 struct cmd_ds_command *resp); 197 struct cmd_ds_command *resp);
198 198
199int wlan_scan_networks(wlan_private * priv, 199int lbs_scan_networks(lbs_private *priv,
200 const struct wlan_ioctl_user_scan_cfg * puserscanin, 200 const struct lbs_ioctl_user_scan_cfg *puserscanin,
201 int full_scan); 201 int full_scan);
202 202
203struct ifreq; 203struct ifreq;
@@ -205,11 +205,11 @@ struct ifreq;
205struct iw_point; 205struct iw_point;
206struct iw_param; 206struct iw_param;
207struct iw_request_info; 207struct iw_request_info;
208int libertas_get_scan(struct net_device *dev, struct iw_request_info *info, 208int lbs_get_scan(struct net_device *dev, struct iw_request_info *info,
209 struct iw_point *dwrq, char *extra); 209 struct iw_point *dwrq, char *extra);
210int libertas_set_scan(struct net_device *dev, struct iw_request_info *info, 210int lbs_set_scan(struct net_device *dev, struct iw_request_info *info,
211 struct iw_param *vwrq, char *extra); 211 struct iw_param *vwrq, char *extra);
212 212
213void libertas_scan_worker(struct work_struct *work); 213void lbs_scan_worker(struct work_struct *work);
214 214
215#endif /* _WLAN_SCAN_H */ 215#endif