Lines Matching refs:sme
426 struct cfg80211_connect_params *sme) in ath6kl_cfg80211_connect() argument
447 ((sme->channel && sme->channel->center_freq == 0) || in ath6kl_cfg80211_connect()
448 (sme->bssid && is_zero_ether_addr(sme->bssid)))) { in ath6kl_cfg80211_connect()
478 status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len); in ath6kl_cfg80211_connect()
484 if (sme->ie == NULL || sme->ie_len == 0) in ath6kl_cfg80211_connect()
488 vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
489 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
501 } else if (vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
502 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
507 vif->ssid_len = sme->ssid_len; in ath6kl_cfg80211_connect()
508 memcpy(vif->ssid, sme->ssid, sme->ssid_len); in ath6kl_cfg80211_connect()
510 if (sme->channel) in ath6kl_cfg80211_connect()
511 vif->ch_hint = sme->channel->center_freq; in ath6kl_cfg80211_connect()
514 if (sme->bssid && !is_broadcast_ether_addr(sme->bssid)) in ath6kl_cfg80211_connect()
515 memcpy(vif->req_bssid, sme->bssid, sizeof(vif->req_bssid)); in ath6kl_cfg80211_connect()
517 ath6kl_set_wpa_version(vif, sme->crypto.wpa_versions); in ath6kl_cfg80211_connect()
519 status = ath6kl_set_auth_type(vif, sme->auth_type); in ath6kl_cfg80211_connect()
525 if (sme->crypto.n_ciphers_pairwise) in ath6kl_cfg80211_connect()
526 ath6kl_set_cipher(vif, sme->crypto.ciphers_pairwise[0], true); in ath6kl_cfg80211_connect()
530 ath6kl_set_cipher(vif, sme->crypto.cipher_group, false); in ath6kl_cfg80211_connect()
532 if (sme->crypto.n_akm_suites) in ath6kl_cfg80211_connect()
533 ath6kl_set_key_mgmt(vif, sme->crypto.akm_suites[0]); in ath6kl_cfg80211_connect()
535 if ((sme->key_len) && in ath6kl_cfg80211_connect()
540 if (sme->key_idx > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_connect()
542 sme->key_idx); in ath6kl_cfg80211_connect()
547 key = &vif->keys[sme->key_idx]; in ath6kl_cfg80211_connect()
548 key->key_len = sme->key_len; in ath6kl_cfg80211_connect()
549 memcpy(key->key, sme->key, key->key_len); in ath6kl_cfg80211_connect()
551 vif->def_txkey_index = sme->key_idx; in ath6kl_cfg80211_connect()
553 ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, sme->key_idx, in ath6kl_cfg80211_connect()