Lines Matching refs:bss_cfg

159 		      struct mwifiex_uap_bss_param *bss_cfg,  in mwifiex_set_ht_params()  argument
170 memcpy(&bss_cfg->ht_cap, ht_ie + 2, in mwifiex_set_ht_params()
174 memset(&bss_cfg->ht_cap, 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params()
175 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
176 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params()
186 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_vht_params() argument
194 memcpy(&bss_cfg->vht_cap, vht_ie + 2, in mwifiex_set_vht_params()
208 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_tpc_params() argument
216 bss_cfg->power_constraint = *(tpc_ie + 2); in mwifiex_set_tpc_params()
218 bss_cfg->power_constraint = 0; in mwifiex_set_tpc_params()
257 mwifiex_set_uap_rates(struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_uap_rates() argument
270 memcpy(bss_cfg->rates, rate_ie + 1, rate_ie->len); in mwifiex_set_uap_rates()
280 memcpy(bss_cfg->rates + rate_len, rate_ie + 1, rate_ie->len); in mwifiex_set_uap_rates()
314 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wpa() local
322 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
323 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
327 if (bss_cfg->wpa_cfg.pairwise_cipher_wpa & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
334 pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa; in mwifiex_uap_bss_wpa()
339 if (bss_cfg->wpa_cfg.pairwise_cipher_wpa2 & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
346 pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa2; in mwifiex_uap_bss_wpa()
351 if (bss_cfg->wpa_cfg.group_cipher & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
357 gwk_cipher->cipher = bss_cfg->wpa_cfg.group_cipher; in mwifiex_uap_bss_wpa()
362 if (bss_cfg->wpa_cfg.length) { in mwifiex_uap_bss_wpa()
366 passphrase->header.len = cpu_to_le16(bss_cfg->wpa_cfg.length); in mwifiex_uap_bss_wpa()
367 memcpy(passphrase->passphrase, bss_cfg->wpa_cfg.passphrase, in mwifiex_uap_bss_wpa()
368 bss_cfg->wpa_cfg.length); in mwifiex_uap_bss_wpa()
370 bss_cfg->wpa_cfg.length; in mwifiex_uap_bss_wpa()
372 bss_cfg->wpa_cfg.length; in mwifiex_uap_bss_wpa()
386 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_wmm_params() argument
401 memcpy(&bss_cfg->wmm_info, wmm_ie + in mwifiex_set_wmm_params()
405 memset(&bss_cfg->wmm_info, 0, sizeof(bss_cfg->wmm_info)); in mwifiex_set_wmm_params()
406 memcpy(&bss_cfg->wmm_info.oui, wmm_oui, sizeof(wmm_oui)); in mwifiex_set_wmm_params()
407 bss_cfg->wmm_info.subtype = MWIFIEX_WMM_SUBTYPE; in mwifiex_set_wmm_params()
408 bss_cfg->wmm_info.version = MWIFIEX_WMM_VERSION; in mwifiex_set_wmm_params()
412 bss_cfg->qos_info = 0x00; in mwifiex_set_wmm_params()
426 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wep() local
429 if (bss_cfg->wep_cfg[i].length && in mwifiex_uap_bss_wep()
430 (bss_cfg->wep_cfg[i].length == WLAN_KEY_LEN_WEP40 || in mwifiex_uap_bss_wep()
431 bss_cfg->wep_cfg[i].length == WLAN_KEY_LEN_WEP104)) { in mwifiex_uap_bss_wep()
436 cpu_to_le16(bss_cfg->wep_cfg[i].length + 2); in mwifiex_uap_bss_wep()
437 wep_key->key_index = bss_cfg->wep_cfg[i].key_index; in mwifiex_uap_bss_wep()
438 wep_key->is_default = bss_cfg->wep_cfg[i].is_default; in mwifiex_uap_bss_wep()
439 memcpy(wep_key->key, bss_cfg->wep_cfg[i].key, in mwifiex_uap_bss_wep()
440 bss_cfg->wep_cfg[i].length); in mwifiex_uap_bss_wep()
442 bss_cfg->wep_cfg[i].length; in mwifiex_uap_bss_wep()
444 bss_cfg->wep_cfg[i].length; in mwifiex_uap_bss_wep()
497 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare() local
501 if (bss_cfg->ssid.ssid_len) { in mwifiex_uap_bss_param_prepare()
504 ssid->header.len = cpu_to_le16((u16)bss_cfg->ssid.ssid_len); in mwifiex_uap_bss_param_prepare()
505 memcpy(ssid->ssid, bss_cfg->ssid.ssid, bss_cfg->ssid.ssid_len); in mwifiex_uap_bss_param_prepare()
507 bss_cfg->ssid.ssid_len; in mwifiex_uap_bss_param_prepare()
509 bss_cfg->ssid.ssid_len; in mwifiex_uap_bss_param_prepare()
515 bcast_ssid->bcast_ctl = bss_cfg->bcast_ssid_ctl; in mwifiex_uap_bss_param_prepare()
519 if (bss_cfg->rates[0]) { in mwifiex_uap_bss_param_prepare()
523 for (i = 0; i < MWIFIEX_SUPPORTED_RATES && bss_cfg->rates[i]; in mwifiex_uap_bss_param_prepare()
525 tlv_rates->rates[i] = bss_cfg->rates[i]; in mwifiex_uap_bss_param_prepare()
531 if (bss_cfg->channel && in mwifiex_uap_bss_param_prepare()
532 (((bss_cfg->band_cfg & BIT(0)) == BAND_CONFIG_BG && in mwifiex_uap_bss_param_prepare()
533 bss_cfg->channel <= MAX_CHANNEL_BAND_BG) || in mwifiex_uap_bss_param_prepare()
534 ((bss_cfg->band_cfg & BIT(0)) == BAND_CONFIG_A && in mwifiex_uap_bss_param_prepare()
535 bss_cfg->channel <= MAX_CHANNEL_BAND_A))) { in mwifiex_uap_bss_param_prepare()
541 chan_band->band_config = bss_cfg->band_cfg; in mwifiex_uap_bss_param_prepare()
542 chan_band->channel = bss_cfg->channel; in mwifiex_uap_bss_param_prepare()
546 if (bss_cfg->beacon_period >= MIN_BEACON_PERIOD && in mwifiex_uap_bss_param_prepare()
547 bss_cfg->beacon_period <= MAX_BEACON_PERIOD) { in mwifiex_uap_bss_param_prepare()
554 beacon_period->period = cpu_to_le16(bss_cfg->beacon_period); in mwifiex_uap_bss_param_prepare()
558 if (bss_cfg->dtim_period >= MIN_DTIM_PERIOD && in mwifiex_uap_bss_param_prepare()
559 bss_cfg->dtim_period <= MAX_DTIM_PERIOD) { in mwifiex_uap_bss_param_prepare()
566 dtim_period->period = bss_cfg->dtim_period; in mwifiex_uap_bss_param_prepare()
570 if (bss_cfg->rts_threshold <= MWIFIEX_RTS_MAX_VALUE) { in mwifiex_uap_bss_param_prepare()
577 rts_threshold->rts_thr = cpu_to_le16(bss_cfg->rts_threshold); in mwifiex_uap_bss_param_prepare()
581 if ((bss_cfg->frag_threshold >= MWIFIEX_FRAG_MIN_VALUE) && in mwifiex_uap_bss_param_prepare()
582 (bss_cfg->frag_threshold <= MWIFIEX_FRAG_MAX_VALUE)) { in mwifiex_uap_bss_param_prepare()
589 frag_threshold->frag_thr = cpu_to_le16(bss_cfg->frag_threshold); in mwifiex_uap_bss_param_prepare()
593 if (bss_cfg->retry_limit <= MWIFIEX_RETRY_LIMIT) { in mwifiex_uap_bss_param_prepare()
600 retry_limit->limit = (u8)bss_cfg->retry_limit; in mwifiex_uap_bss_param_prepare()
604 if ((bss_cfg->protocol & PROTOCOL_WPA) || in mwifiex_uap_bss_param_prepare()
605 (bss_cfg->protocol & PROTOCOL_WPA2) || in mwifiex_uap_bss_param_prepare()
606 (bss_cfg->protocol & PROTOCOL_EAP)) in mwifiex_uap_bss_param_prepare()
611 if ((bss_cfg->auth_mode <= WLAN_AUTH_SHARED_KEY) || in mwifiex_uap_bss_param_prepare()
612 (bss_cfg->auth_mode == MWIFIEX_AUTH_MODE_AUTO)) { in mwifiex_uap_bss_param_prepare()
618 auth_type->auth_type = (u8)bss_cfg->auth_mode; in mwifiex_uap_bss_param_prepare()
622 if (bss_cfg->protocol) { in mwifiex_uap_bss_param_prepare()
629 encrypt_protocol->proto = cpu_to_le16(bss_cfg->protocol); in mwifiex_uap_bss_param_prepare()
634 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare()
639 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare()
641 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare()
642 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare()
645 bss_cfg->ht_cap.extended_ht_cap_info; in mwifiex_uap_bss_param_prepare()
646 htcap->ht_cap.tx_BF_cap_info = bss_cfg->ht_cap.tx_BF_cap_info; in mwifiex_uap_bss_param_prepare()
648 bss_cfg->ht_cap.antenna_selection_info; in mwifiex_uap_bss_param_prepare()
653 if (bss_cfg->wmm_info.qos_info != 0xFF) { in mwifiex_uap_bss_param_prepare()
657 memcpy(&wmm_cap->wmm_info, &bss_cfg->wmm_info, in mwifiex_uap_bss_param_prepare()
663 if (bss_cfg->sta_ao_timer) { in mwifiex_uap_bss_param_prepare()
668 ao_timer->sta_ao_timer = cpu_to_le32(bss_cfg->sta_ao_timer); in mwifiex_uap_bss_param_prepare()
673 if (bss_cfg->power_constraint) { in mwifiex_uap_bss_param_prepare()
677 pwr_ct->constraint = bss_cfg->power_constraint; in mwifiex_uap_bss_param_prepare()
682 if (bss_cfg->ps_sta_ao_timer) { in mwifiex_uap_bss_param_prepare()
689 cpu_to_le32(bss_cfg->ps_sta_ao_timer); in mwifiex_uap_bss_param_prepare()
816 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_uap_set_channel() argument
823 bss_cfg->channel = ieee80211_frequency_to_channel( in mwifiex_uap_set_channel()
828 bss_cfg->band_cfg = BAND_CONFIG_BG; in mwifiex_uap_set_channel()
834 bss_cfg->band_cfg = BAND_CONFIG_A; in mwifiex_uap_set_channel()
852 bss_cfg->band_cfg |= MWIFIEX_SEC_CHAN_BELOW; in mwifiex_uap_set_channel()
854 bss_cfg->band_cfg |= MWIFIEX_SEC_CHAN_ABOVE; in mwifiex_uap_set_channel()
859 bss_cfg->band_cfg |= in mwifiex_uap_set_channel()
860 mwifiex_get_sec_chan_offset(bss_cfg->channel) << 4; in mwifiex_uap_set_channel()
878 struct mwifiex_uap_bss_param *bss_cfg) in mwifiex_config_start_uap() argument
882 UAP_BSS_PARAMS_I, bss_cfg, true)) { in mwifiex_config_start_uap()