Lines Matching defs:sme
302 struct cfg80211_connect_params *sme)
319 cipher_group = sme->crypto.cipher_group;
321 if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_2) {
326 } else if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_1) {
339 if ((sme->crypto.wpa_versions & NL80211_WPA_VERSION_1) ||
340 (sme->crypto.wpa_versions & NL80211_WPA_VERSION_2)) {
341 for (i = 0; i < sme->crypto.n_ciphers_pairwise; i++) {
342 u32 ciphers_pairwise = sme->crypto.ciphers_pairwise[i];
351 switch (sme->auth_type) {
358 if (sme->ssid_len) {
359 memcpy(vif->auth.ssid.ssid, sme->ssid, sme->ssid_len);
360 vif->auth.ssid.ssid_len = sme->ssid_len;
362 vif->auth.key_mgmt_suite = cpu_to_be32(sme->crypto.akm_suites[0]);
363 ether_addr_copy(vif->auth.bssid, sme->bssid);
370 if (sme->crypto.n_akm_suites) {
371 if (sme->crypto.akm_suites[0] == WLAN_AKM_SUITE_8021X)
373 else if (sme->crypto.akm_suites[0] == WLAN_AKM_SUITE_PSK_SHA256)
375 else if (sme->crypto.akm_suites[0] == WLAN_AKM_SUITE_8021X_SHA256)
385 bss = cfg80211_get_bss(wiphy, sme->channel, sme->bssid, sme->ssid,
386 sme->ssid_len, IEEE80211_BSS_TYPE_ANY,
387 IEEE80211_PRIVACY(sme->privacy));
398 join_params = wilc_parse_join_bss_param(bss, &sme->crypto);
420 if (sme->mfp == NL80211_MFP_OPTIONAL)
422 else if (sme->mfp == NL80211_MFP_REQUIRED)
427 ret = wilc_set_join_req(vif, bss->bssid, sme->ie, sme->ie_len);