1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct cfg80211_connect_params</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The 802.11 subsystems &#8211; for kernel developers"><link rel="up" href="bk01ch02.html" title="Chapter&#160;2.&#160;Actions and configuration"><link rel="prev" href="API-struct-cfg80211-ibss-params.html" title="struct cfg80211_ibss_params"><link rel="next" href="API-struct-cfg80211-pmksa.html" title="struct cfg80211_pmksa"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct cfg80211_connect_params</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-cfg80211-ibss-params.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;2.&#160;Actions and configuration</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-cfg80211-pmksa.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-cfg80211-connect-params"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct cfg80211_connect_params &#8212; 
2  Connection parameters
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct cfg80211_connect_params {
5  struct ieee80211_channel * channel;
6  struct ieee80211_channel * channel_hint;
7  const u8 * bssid;
8  const u8 * bssid_hint;
9  const u8 * ssid;
10  size_t ssid_len;
11  enum nl80211_auth_type auth_type;
12  const u8 * ie;
13  size_t ie_len;
14  bool privacy;
15  enum nl80211_mfp mfp;
16  struct cfg80211_crypto_settings crypto;
17  const u8 * key;
18  u8 key_len;
19  u8 key_idx;
20  u32 flags;
21  int bg_scan_period;
22  struct ieee80211_ht_cap ht_capa;
23  struct ieee80211_ht_cap ht_capa_mask;
24  struct ieee80211_vht_cap vht_capa;
25  struct ieee80211_vht_cap vht_capa_mask;
26};  </pre></div><div class="refsect1"><a name="idp1112721700"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">channel</span></dt><dd><p>
27The channel to use or <code class="constant">NULL</code> if not specified (auto-select based
28on scan results)
29      </p></dd><dt><span class="term">channel_hint</span></dt><dd><p>
30The channel of the recommended BSS for initial connection or
31<code class="constant">NULL</code> if not specified
32      </p></dd><dt><span class="term">bssid</span></dt><dd><p>
33The AP BSSID or <code class="constant">NULL</code> if not specified (auto-select based on scan
34results)
35      </p></dd><dt><span class="term">bssid_hint</span></dt><dd><p>
36The recommended AP BSSID for initial connection to the BSS or
37<code class="constant">NULL</code> if not specified. Unlike the <em class="parameter"><code>bssid</code></em> parameter, the driver is
38allowed to ignore this <em class="parameter"><code>bssid_hint</code></em> if it has knowledge of a better BSS
39to use.
40      </p></dd><dt><span class="term">ssid</span></dt><dd><p>
41SSID
42      </p></dd><dt><span class="term">ssid_len</span></dt><dd><p>
43Length of ssid in octets
44      </p></dd><dt><span class="term">auth_type</span></dt><dd><p>
45Authentication type (algorithm)
46      </p></dd><dt><span class="term">ie</span></dt><dd><p>
47IEs for association request
48      </p></dd><dt><span class="term">ie_len</span></dt><dd><p>
49Length of assoc_ie in octets
50      </p></dd><dt><span class="term">privacy</span></dt><dd><p>
51indicates whether privacy-enabled APs should be used
52      </p></dd><dt><span class="term">mfp</span></dt><dd><p>
53indicate whether management frame protection is used
54      </p></dd><dt><span class="term">crypto</span></dt><dd><p>
55crypto settings
56      </p></dd><dt><span class="term">key</span></dt><dd><p>
57WEP key for shared key authentication
58      </p></dd><dt><span class="term">key_len</span></dt><dd><p>
59length of WEP key for shared key authentication
60      </p></dd><dt><span class="term">key_idx</span></dt><dd><p>
61index of WEP key for shared key authentication
62      </p></dd><dt><span class="term">flags</span></dt><dd><p>
63See <span class="structname">enum</span> cfg80211_assoc_req_flags
64      </p></dd><dt><span class="term">bg_scan_period</span></dt><dd><p>
65Background scan period in seconds
66or -1 to indicate that default value is to be used.
67      </p></dd><dt><span class="term">ht_capa</span></dt><dd><p>
68HT Capabilities over-rides.  Values set in ht_capa_mask
69will be used in ht_capa.  Un-supported values will be ignored.
70      </p></dd><dt><span class="term">ht_capa_mask</span></dt><dd><p>
71The bits of ht_capa which are to be used.
72      </p></dd><dt><span class="term">vht_capa</span></dt><dd><p>
73VHT Capability overrides
74      </p></dd><dt><span class="term">vht_capa_mask</span></dt><dd><p>
75The bits of vht_capa which are to be used.
76      </p></dd></dl></div></div><div class="refsect1"><a name="idp1112738676"></a><h2>Description</h2><p>
77   </p><p>
78
79   This structure provides information needed to complete IEEE 802.11
80   authentication and association.
81</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-cfg80211-ibss-params.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="bk01ch02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-cfg80211-pmksa.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct cfg80211_ibss_params</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct cfg80211_pmksa</span></td></tr></table></div></body></html>
82