---
name: "struct_cfg80211_connect_params"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_cfg80211_connect_params"
---

# struct\_cfg80211\_connect\_params(9)

Connection parameters

## NAME

struct\_cfg80211\_connect\_params - Connection parameters

## SYNOPSIS

```
struct cfg80211_connect_params {
  struct ieee80211_channel * channel;
  struct ieee80211_channel * channel_hint;
  const u8 * bssid;
  const u8 * bssid_hint;
  const u8 * ssid;
  size_t ssid_len;
  enum nl80211_auth_type auth_type;
  const u8 * ie;
  size_t ie_len;
  bool privacy;
  enum nl80211_mfp mfp;
  struct cfg80211_crypto_settings crypto;
  const u8 * key;
  u8 key_len;
  u8 key_idx;
  u32 flags;
  int bg_scan_period;
  struct ieee80211_ht_cap ht_capa;
  struct ieee80211_ht_cap ht_capa_mask;
  struct ieee80211_vht_cap vht_capa;
  struct ieee80211_vht_cap vht_capa_mask;
};
```

## MEMBERS

channel

The channel to use or **NULL** if not specified (auto-select based on scan results)

channel\_hint

The channel of the recommended BSS for initial connection or **NULL** if not specified

bssid

The AP BSSID or **NULL** if not specified (auto-select based on scan results)

bssid\_hint

The recommended AP BSSID for initial connection to the BSS or **NULL** if not specified. Unlike the *bssid* parameter, the driver is allowed to ignore this *bssid\_hint* if it has knowledge of a better BSS to use.

ssid

SSID

ssid\_len

Length of ssid in octets

auth\_type

Authentication type (algorithm)

ie

IEs for association request

ie\_len

Length of assoc\_ie in octets

privacy

indicates whether privacy-enabled APs should be used

mfp

indicate whether management frame protection is used

crypto

crypto settings

key

WEP key for shared key authentication

key\_len

length of WEP key for shared key authentication

key\_idx

index of WEP key for shared key authentication

flags

See enum cfg80211\_assoc\_req\_flags

bg\_scan\_period

Background scan period in seconds or -1 to indicate that default value is to be used.

ht\_capa

HT Capabilities over-rides. Values set in ht\_capa\_mask will be used in ht\_capa. Un-supported values will be ignored.

ht\_capa\_mask

The bits of ht\_capa which are to be used.

vht\_capa

VHT Capability overrides

vht\_capa\_mask

The bits of vht\_capa which are to be used.

## DESCRIPTION

This structure provides information needed to complete IEEE 802.11 authentication and association.

## AUTHOR

**Johannes Berg** \<johannes@sipsolutions.net\>

Author.

## COPYRIGHT
