Lines Matching full:sme
455 struct cfg80211_connect_params *sme) in ath6kl_cfg80211_connect() argument
476 ((sme->channel && sme->channel->center_freq == 0) || in ath6kl_cfg80211_connect()
477 (sme->bssid && is_zero_ether_addr(sme->bssid)))) { in ath6kl_cfg80211_connect()
507 status = ath6kl_set_assoc_req_ies(vif, sme->ie, sme->ie_len); in ath6kl_cfg80211_connect()
513 if (sme->ie == NULL || sme->ie_len == 0) in ath6kl_cfg80211_connect()
517 vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
518 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
530 } else if (vif->ssid_len == sme->ssid_len && in ath6kl_cfg80211_connect()
531 !memcmp(vif->ssid, sme->ssid, vif->ssid_len)) { in ath6kl_cfg80211_connect()
536 vif->ssid_len = sme->ssid_len; in ath6kl_cfg80211_connect()
537 memcpy(vif->ssid, sme->ssid, sme->ssid_len); in ath6kl_cfg80211_connect()
539 if (sme->channel) in ath6kl_cfg80211_connect()
540 vif->ch_hint = sme->channel->center_freq; in ath6kl_cfg80211_connect()
543 if (sme->bssid && !is_broadcast_ether_addr(sme->bssid)) in ath6kl_cfg80211_connect()
544 memcpy(vif->req_bssid, sme->bssid, sizeof(vif->req_bssid)); in ath6kl_cfg80211_connect()
546 ath6kl_set_wpa_version(vif, sme->crypto.wpa_versions); in ath6kl_cfg80211_connect()
548 status = ath6kl_set_auth_type(vif, sme->auth_type); in ath6kl_cfg80211_connect()
554 if (sme->crypto.n_ciphers_pairwise) in ath6kl_cfg80211_connect()
555 ath6kl_set_cipher(vif, sme->crypto.ciphers_pairwise[0], true); in ath6kl_cfg80211_connect()
559 ath6kl_set_cipher(vif, sme->crypto.cipher_group, false); in ath6kl_cfg80211_connect()
561 if (sme->crypto.n_akm_suites) in ath6kl_cfg80211_connect()
562 ath6kl_set_key_mgmt(vif, sme->crypto.akm_suites[0]); in ath6kl_cfg80211_connect()
564 if ((sme->key_len) && in ath6kl_cfg80211_connect()
569 if (sme->key_idx > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_connect()
571 sme->key_idx); in ath6kl_cfg80211_connect()
576 key = &vif->keys[sme->key_idx]; in ath6kl_cfg80211_connect()
577 key->key_len = sme->key_len; in ath6kl_cfg80211_connect()
578 memcpy(key->key, sme->key, key->key_len); in ath6kl_cfg80211_connect()
580 vif->def_txkey_index = sme->key_idx; in ath6kl_cfg80211_connect()
582 ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, sme->key_idx, in ath6kl_cfg80211_connect()
642 if (sme->bg_scan_period == 0) { in ath6kl_cfg80211_connect()
644 sme->bg_scan_period = 0xffff; in ath6kl_cfg80211_connect()
645 } else if (sme->bg_scan_period == -1) { in ath6kl_cfg80211_connect()
647 sme->bg_scan_period = DEFAULT_BG_SCAN_PERIOD; in ath6kl_cfg80211_connect()
651 sme->bg_scan_period, 0, 0, 0, 3, 0, 0, 0); in ath6kl_cfg80211_connect()