aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
index 97f36d329456..374680072c16 100644
--- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
@@ -125,6 +125,7 @@ do { \
125#define WL_ESCAN_ACTION_ABORT 3 125#define WL_ESCAN_ACTION_ABORT 3
126 126
127#define WL_AUTH_SHARED_KEY 1 /* d11 shared authentication */ 127#define WL_AUTH_SHARED_KEY 1 /* d11 shared authentication */
128#define IE_MAX_LEN 512
128 129
129/* dongle status */ 130/* dongle status */
130enum wl_status { 131enum wl_status {
@@ -132,7 +133,9 @@ enum wl_status {
132 WL_STATUS_SCANNING, 133 WL_STATUS_SCANNING,
133 WL_STATUS_SCAN_ABORTING, 134 WL_STATUS_SCAN_ABORTING,
134 WL_STATUS_CONNECTING, 135 WL_STATUS_CONNECTING,
135 WL_STATUS_CONNECTED 136 WL_STATUS_CONNECTED,
137 WL_STATUS_AP_CREATING,
138 WL_STATUS_AP_CREATED
136}; 139};
137 140
138/* wi-fi mode */ 141/* wi-fi mode */
@@ -285,6 +288,17 @@ struct escan_info {
285 struct net_device *ndev; 288 struct net_device *ndev;
286}; 289};
287 290
291/* Structure to hold WPS, WPA IEs for a AP */
292struct ap_info {
293 u8 probe_res_ie[IE_MAX_LEN];
294 u8 beacon_ie[IE_MAX_LEN];
295 u32 probe_res_ie_len;
296 u32 beacon_ie_len;
297 u8 *wpa_ie;
298 u8 *rsn_ie;
299 bool security_mode;
300};
301
288/** 302/**
289 * struct brcmf_pno_param_le - PNO scan configuration parameters 303 * struct brcmf_pno_param_le - PNO scan configuration parameters
290 * 304 *
@@ -407,6 +421,7 @@ struct brcmf_pno_scanresults_le {
407 * @escan_timeout: Timer for catch scan timeout. 421 * @escan_timeout: Timer for catch scan timeout.
408 * @escan_timeout_work: scan timeout worker. 422 * @escan_timeout_work: scan timeout worker.
409 * @escan_ioctl_buf: dongle command buffer for escan commands. 423 * @escan_ioctl_buf: dongle command buffer for escan commands.
424 * @ap_info: host ap information.
410 * @ci: used to link this structure to netdev private data. 425 * @ci: used to link this structure to netdev private data.
411 */ 426 */
412struct brcmf_cfg80211_priv { 427struct brcmf_cfg80211_priv {
@@ -448,6 +463,7 @@ struct brcmf_cfg80211_priv {
448 struct timer_list escan_timeout; 463 struct timer_list escan_timeout;
449 struct work_struct escan_timeout_work; 464 struct work_struct escan_timeout_work;
450 u8 *escan_ioctl_buf; 465 u8 *escan_ioctl_buf;
466 struct ap_info *ap_info;
451}; 467};
452 468
453static inline struct wiphy *cfg_to_wiphy(struct brcmf_cfg80211_priv *w) 469static inline struct wiphy *cfg_to_wiphy(struct brcmf_cfg80211_priv *w)