Lines Matching full:sme
1938 struct cfg80211_connect_params *sme) in brcmf_set_wpa_version() argument
1947 if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_1) in brcmf_set_wpa_version()
1949 else if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_2) in brcmf_set_wpa_version()
1951 else if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_3) in brcmf_set_wpa_version()
1962 sec->wpa_versions = sme->crypto.wpa_versions; in brcmf_set_wpa_version()
1967 struct cfg80211_connect_params *sme) in brcmf_set_auth_type() argument
1976 switch (sme->auth_type) { in brcmf_set_auth_type()
1991 brcmf_dbg(CONN, "automatic, auth type (%d)\n", sme->auth_type); in brcmf_set_auth_type()
2001 sec->auth_type = sme->auth_type; in brcmf_set_auth_type()
2007 struct cfg80211_connect_params *sme) in brcmf_set_wsec_mode() argument
2018 if (sme->crypto.n_ciphers_pairwise) { in brcmf_set_wsec_mode()
2019 switch (sme->crypto.ciphers_pairwise[0]) { in brcmf_set_wsec_mode()
2035 sme->crypto.ciphers_pairwise[0]); in brcmf_set_wsec_mode()
2039 if (sme->crypto.cipher_group) { in brcmf_set_wsec_mode()
2040 switch (sme->crypto.cipher_group) { in brcmf_set_wsec_mode()
2056 sme->crypto.cipher_group); in brcmf_set_wsec_mode()
2064 if (brcmf_find_wpsie(sme->ie, sme->ie_len) && !pval && !gval && in brcmf_set_wsec_mode()
2065 sme->privacy) in brcmf_set_wsec_mode()
2076 sec->cipher_pairwise = sme->crypto.ciphers_pairwise[0]; in brcmf_set_wsec_mode()
2077 sec->cipher_group = sme->crypto.cipher_group; in brcmf_set_wsec_mode()
2083 brcmf_set_key_mgmt(struct net_device *ndev, struct cfg80211_connect_params *sme) in brcmf_set_key_mgmt() argument
2101 if (!sme->crypto.n_akm_suites) in brcmf_set_key_mgmt()
2111 switch (sme->crypto.akm_suites[0]) { in brcmf_set_key_mgmt()
2114 if (sme->want_1x) in brcmf_set_key_mgmt()
2122 sme->crypto.akm_suites[0]); in brcmf_set_key_mgmt()
2126 switch (sme->crypto.akm_suites[0]) { in brcmf_set_key_mgmt()
2129 if (sme->want_1x) in brcmf_set_key_mgmt()
2134 if (sme->want_1x) in brcmf_set_key_mgmt()
2146 if (sme->want_1x) in brcmf_set_key_mgmt()
2155 sme->crypto.akm_suites[0]); in brcmf_set_key_mgmt()
2159 switch (sme->crypto.akm_suites[0]) { in brcmf_set_key_mgmt()
2162 if (sme->crypto.sae_pwd) { in brcmf_set_key_mgmt()
2170 if (sme->crypto.sae_pwd) { in brcmf_set_key_mgmt()
2177 sme->crypto.akm_suites[0]); in brcmf_set_key_mgmt()
2190 rsn_ie = brcmf_parse_tlvs((const u8 *)sme->ie, sme->ie_len, in brcmf_set_key_mgmt()
2232 struct cfg80211_connect_params *sme) in brcmf_set_sharedkey() argument
2242 brcmf_dbg(CONN, "key len (%d)\n", sme->key_len); in brcmf_set_sharedkey()
2244 if (sme->key_len == 0) in brcmf_set_sharedkey()
2260 key.len = (u32) sme->key_len; in brcmf_set_sharedkey()
2261 key.index = (u32) sme->key_idx; in brcmf_set_sharedkey()
2266 memcpy(key.data, sme->key, key.len); in brcmf_set_sharedkey()
2277 sme->crypto.ciphers_pairwise[0]); in brcmf_set_sharedkey()
2357 struct cfg80211_connect_params *sme) in brcmf_cfg80211_connect() argument
2362 struct ieee80211_channel *chan = sme->channel; in brcmf_cfg80211_connect()
2379 if (!sme->ssid) { in brcmf_cfg80211_connect()
2384 if (sme->channel_hint) in brcmf_cfg80211_connect()
2385 chan = sme->channel_hint; in brcmf_cfg80211_connect()
2387 if (sme->bssid_hint) in brcmf_cfg80211_connect()
2388 sme->bssid = sme->bssid_hint; in brcmf_cfg80211_connect()
2395 wpa_ie = brcmf_find_wpaie((u8 *)sme->ie, sme->ie_len); in brcmf_cfg80211_connect()
2401 rsn_ie = brcmf_parse_tlvs((const u8 *)sme->ie, in brcmf_cfg80211_connect()
2402 sme->ie_len, in brcmf_cfg80211_connect()
2413 sme->ie, sme->ie_len); in brcmf_cfg80211_connect()
2432 brcmf_dbg(INFO, "ie (%p), ie_len (%zd)\n", sme->ie, sme->ie_len); in brcmf_cfg80211_connect()
2434 err = brcmf_set_wpa_version(ndev, sme); in brcmf_cfg80211_connect()
2440 sme->auth_type = brcmf_war_auth_type(ifp, sme->auth_type); in brcmf_cfg80211_connect()
2441 err = brcmf_set_auth_type(ndev, sme); in brcmf_cfg80211_connect()
2447 err = brcmf_set_wsec_mode(ndev, sme); in brcmf_cfg80211_connect()
2453 err = brcmf_set_key_mgmt(ndev, sme); in brcmf_cfg80211_connect()
2459 err = brcmf_set_sharedkey(ndev, sme); in brcmf_cfg80211_connect()
2465 if (sme->crypto.psk && in brcmf_cfg80211_connect()
2485 err = brcmf_set_pmk(ifp, sme->crypto.psk, in brcmf_cfg80211_connect()
2494 err = brcmf_fwvid_set_sae_password(ifp, &sme->crypto); in brcmf_cfg80211_connect()
2495 if (!err && sme->crypto.psk) in brcmf_cfg80211_connect()
2496 err = brcmf_set_pmk(ifp, sme->crypto.psk, in brcmf_cfg80211_connect()
2514 ssid_len = min_t(u32, sme->ssid_len, IEEE80211_MAX_SSID_LEN); in brcmf_cfg80211_connect()
2516 memcpy(&ext_join_params->ssid_le.SSID, sme->ssid, ssid_len); in brcmf_cfg80211_connect()
2525 if (sme->bssid) in brcmf_cfg80211_connect()
2526 memcpy(&ext_join_params->assoc_le.bssid, sme->bssid, ETH_ALEN); in brcmf_cfg80211_connect()
2556 brcmf_set_join_pref(ifp, &sme->bss_select); in brcmf_cfg80211_connect()
2569 memcpy(&join_params.ssid_le.SSID, sme->ssid, ssid_len); in brcmf_cfg80211_connect()
2572 if (sme->bssid) in brcmf_cfg80211_connect()
2573 memcpy(join_params.params_le.bssid, sme->bssid, ETH_ALEN); in brcmf_cfg80211_connect()
5846 struct cfg80211_connect_params *sme, in brcmf_cfg80211_update_conn_params() argument
5859 sme->ie, sme->ie_len); in brcmf_cfg80211_update_conn_params()