Lines Matching refs:bss_cfg
158 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()
172 cap_info = le16_to_cpu(bss_cfg->ht_cap.cap_info); in mwifiex_set_ht_params()
173 memset(&bss_cfg->ht_cap.mcs, 0, in mwifiex_set_ht_params()
178 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
183 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
184 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params()
189 bss_cfg->ht_cap.mcs.rx_mask[0] = 0xff; in mwifiex_set_ht_params()
190 bss_cfg->ht_cap.mcs.rx_mask[1] = 0xff; in mwifiex_set_ht_params()
195 memset(&bss_cfg->ht_cap , 0, sizeof(struct ieee80211_ht_cap)); in mwifiex_set_ht_params()
196 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
197 bss_cfg->ht_cap.ampdu_params_info = MWIFIEX_DEF_AMPDU; in mwifiex_set_ht_params()
207 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_vht_params() argument
215 memcpy(&bss_cfg->vht_cap, vht_ie + 2, in mwifiex_set_vht_params()
229 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_tpc_params() argument
237 bss_cfg->power_constraint = *(tpc_ie + 2); in mwifiex_set_tpc_params()
239 bss_cfg->power_constraint = 0; in mwifiex_set_tpc_params()
278 mwifiex_set_uap_rates(struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_uap_rates() argument
291 memcpy(bss_cfg->rates, rate_ie + 1, rate_ie->len); in mwifiex_set_uap_rates()
301 memcpy(bss_cfg->rates + rate_len, rate_ie + 1, rate_ie->len); in mwifiex_set_uap_rates()
335 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wpa() local
343 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
344 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
348 if (bss_cfg->wpa_cfg.pairwise_cipher_wpa & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
355 pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa; in mwifiex_uap_bss_wpa()
360 if (bss_cfg->wpa_cfg.pairwise_cipher_wpa2 & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
367 pwk_cipher->cipher = bss_cfg->wpa_cfg.pairwise_cipher_wpa2; in mwifiex_uap_bss_wpa()
372 if (bss_cfg->wpa_cfg.group_cipher & VALID_CIPHER_BITMAP) { in mwifiex_uap_bss_wpa()
378 gwk_cipher->cipher = bss_cfg->wpa_cfg.group_cipher; in mwifiex_uap_bss_wpa()
383 if (bss_cfg->wpa_cfg.length) { in mwifiex_uap_bss_wpa()
387 passphrase->header.len = cpu_to_le16(bss_cfg->wpa_cfg.length); in mwifiex_uap_bss_wpa()
388 memcpy(passphrase->passphrase, bss_cfg->wpa_cfg.passphrase, in mwifiex_uap_bss_wpa()
389 bss_cfg->wpa_cfg.length); in mwifiex_uap_bss_wpa()
391 bss_cfg->wpa_cfg.length; in mwifiex_uap_bss_wpa()
393 bss_cfg->wpa_cfg.length; in mwifiex_uap_bss_wpa()
407 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_set_wmm_params() argument
422 memcpy(&bss_cfg->wmm_info, wmm_ie + 1, in mwifiex_set_wmm_params()
423 sizeof(bss_cfg->wmm_info)); in mwifiex_set_wmm_params()
426 memset(&bss_cfg->wmm_info, 0, sizeof(bss_cfg->wmm_info)); in mwifiex_set_wmm_params()
427 memcpy(&bss_cfg->wmm_info.oui, wmm_oui, sizeof(wmm_oui)); in mwifiex_set_wmm_params()
428 bss_cfg->wmm_info.subtype = MWIFIEX_WMM_SUBTYPE; in mwifiex_set_wmm_params()
429 bss_cfg->wmm_info.version = MWIFIEX_WMM_VERSION; in mwifiex_set_wmm_params()
433 bss_cfg->qos_info = 0x00; in mwifiex_set_wmm_params()
447 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_wep() local
450 if (bss_cfg->wep_cfg[i].length && in mwifiex_uap_bss_wep()
451 (bss_cfg->wep_cfg[i].length == WLAN_KEY_LEN_WEP40 || in mwifiex_uap_bss_wep()
452 bss_cfg->wep_cfg[i].length == WLAN_KEY_LEN_WEP104)) { in mwifiex_uap_bss_wep()
457 cpu_to_le16(bss_cfg->wep_cfg[i].length + 2); in mwifiex_uap_bss_wep()
458 wep_key->key_index = bss_cfg->wep_cfg[i].key_index; in mwifiex_uap_bss_wep()
459 wep_key->is_default = bss_cfg->wep_cfg[i].is_default; in mwifiex_uap_bss_wep()
460 memcpy(wep_key->key, bss_cfg->wep_cfg[i].key, in mwifiex_uap_bss_wep()
461 bss_cfg->wep_cfg[i].length); in mwifiex_uap_bss_wep()
463 bss_cfg->wep_cfg[i].length; in mwifiex_uap_bss_wep()
465 bss_cfg->wep_cfg[i].length; in mwifiex_uap_bss_wep()
496 struct mwifiex_uap_bss_param *bss_cfg = cmd_buf; in mwifiex_uap_bss_param_prepare() local
500 if (bss_cfg->ssid.ssid_len) { in mwifiex_uap_bss_param_prepare()
503 ssid->header.len = cpu_to_le16((u16)bss_cfg->ssid.ssid_len); in mwifiex_uap_bss_param_prepare()
504 memcpy(ssid->ssid, bss_cfg->ssid.ssid, bss_cfg->ssid.ssid_len); in mwifiex_uap_bss_param_prepare()
506 bss_cfg->ssid.ssid_len; in mwifiex_uap_bss_param_prepare()
508 bss_cfg->ssid.ssid_len; in mwifiex_uap_bss_param_prepare()
514 bcast_ssid->bcast_ctl = bss_cfg->bcast_ssid_ctl; in mwifiex_uap_bss_param_prepare()
518 if (bss_cfg->rates[0]) { in mwifiex_uap_bss_param_prepare()
522 for (i = 0; i < MWIFIEX_SUPPORTED_RATES && bss_cfg->rates[i]; in mwifiex_uap_bss_param_prepare()
524 tlv_rates->rates[i] = bss_cfg->rates[i]; in mwifiex_uap_bss_param_prepare()
530 if (bss_cfg->channel && in mwifiex_uap_bss_param_prepare()
531 ((bss_cfg->band_cfg == BAND_CONFIG_BG && in mwifiex_uap_bss_param_prepare()
532 bss_cfg->channel <= MAX_CHANNEL_BAND_BG) || in mwifiex_uap_bss_param_prepare()
533 (bss_cfg->band_cfg == BAND_CONFIG_A && in mwifiex_uap_bss_param_prepare()
534 bss_cfg->channel <= MAX_CHANNEL_BAND_A))) { in mwifiex_uap_bss_param_prepare()
540 chan_band->band_config = bss_cfg->band_cfg; in mwifiex_uap_bss_param_prepare()
541 chan_band->channel = bss_cfg->channel; in mwifiex_uap_bss_param_prepare()
545 if (bss_cfg->beacon_period >= MIN_BEACON_PERIOD && in mwifiex_uap_bss_param_prepare()
546 bss_cfg->beacon_period <= MAX_BEACON_PERIOD) { in mwifiex_uap_bss_param_prepare()
553 beacon_period->period = cpu_to_le16(bss_cfg->beacon_period); in mwifiex_uap_bss_param_prepare()
557 if (bss_cfg->dtim_period >= MIN_DTIM_PERIOD && in mwifiex_uap_bss_param_prepare()
558 bss_cfg->dtim_period <= MAX_DTIM_PERIOD) { in mwifiex_uap_bss_param_prepare()
565 dtim_period->period = bss_cfg->dtim_period; in mwifiex_uap_bss_param_prepare()
569 if (bss_cfg->rts_threshold <= MWIFIEX_RTS_MAX_VALUE) { in mwifiex_uap_bss_param_prepare()
576 rts_threshold->rts_thr = cpu_to_le16(bss_cfg->rts_threshold); in mwifiex_uap_bss_param_prepare()
580 if ((bss_cfg->frag_threshold >= MWIFIEX_FRAG_MIN_VALUE) && in mwifiex_uap_bss_param_prepare()
581 (bss_cfg->frag_threshold <= MWIFIEX_FRAG_MAX_VALUE)) { in mwifiex_uap_bss_param_prepare()
588 frag_threshold->frag_thr = cpu_to_le16(bss_cfg->frag_threshold); in mwifiex_uap_bss_param_prepare()
592 if (bss_cfg->retry_limit <= MWIFIEX_RETRY_LIMIT) { in mwifiex_uap_bss_param_prepare()
599 retry_limit->limit = (u8)bss_cfg->retry_limit; in mwifiex_uap_bss_param_prepare()
603 if ((bss_cfg->protocol & PROTOCOL_WPA) || in mwifiex_uap_bss_param_prepare()
604 (bss_cfg->protocol & PROTOCOL_WPA2) || in mwifiex_uap_bss_param_prepare()
605 (bss_cfg->protocol & PROTOCOL_EAP)) in mwifiex_uap_bss_param_prepare()
610 if ((bss_cfg->auth_mode <= WLAN_AUTH_SHARED_KEY) || in mwifiex_uap_bss_param_prepare()
611 (bss_cfg->auth_mode == MWIFIEX_AUTH_MODE_AUTO)) { in mwifiex_uap_bss_param_prepare()
617 auth_type->auth_type = (u8)bss_cfg->auth_mode; in mwifiex_uap_bss_param_prepare()
621 if (bss_cfg->protocol) { in mwifiex_uap_bss_param_prepare()
628 encrypt_protocol->proto = cpu_to_le16(bss_cfg->protocol); in mwifiex_uap_bss_param_prepare()
633 if (bss_cfg->ht_cap.cap_info) { in mwifiex_uap_bss_param_prepare()
638 htcap->ht_cap.cap_info = bss_cfg->ht_cap.cap_info; in mwifiex_uap_bss_param_prepare()
640 bss_cfg->ht_cap.ampdu_params_info; in mwifiex_uap_bss_param_prepare()
641 memcpy(&htcap->ht_cap.mcs, &bss_cfg->ht_cap.mcs, in mwifiex_uap_bss_param_prepare()
644 bss_cfg->ht_cap.extended_ht_cap_info; in mwifiex_uap_bss_param_prepare()
645 htcap->ht_cap.tx_BF_cap_info = bss_cfg->ht_cap.tx_BF_cap_info; in mwifiex_uap_bss_param_prepare()
647 bss_cfg->ht_cap.antenna_selection_info; in mwifiex_uap_bss_param_prepare()
652 if (bss_cfg->wmm_info.qos_info != 0xFF) { in mwifiex_uap_bss_param_prepare()
656 memcpy(&wmm_cap->wmm_info, &bss_cfg->wmm_info, in mwifiex_uap_bss_param_prepare()
662 if (bss_cfg->sta_ao_timer) { in mwifiex_uap_bss_param_prepare()
667 ao_timer->sta_ao_timer = cpu_to_le32(bss_cfg->sta_ao_timer); in mwifiex_uap_bss_param_prepare()
672 if (bss_cfg->power_constraint) { in mwifiex_uap_bss_param_prepare()
676 pwr_ct->constraint = bss_cfg->power_constraint; in mwifiex_uap_bss_param_prepare()
681 if (bss_cfg->ps_sta_ao_timer) { in mwifiex_uap_bss_param_prepare()
688 cpu_to_le32(bss_cfg->ps_sta_ao_timer); in mwifiex_uap_bss_param_prepare()
815 struct mwifiex_uap_bss_param *bss_cfg, in mwifiex_uap_set_channel() argument
822 bss_cfg->channel = ieee80211_frequency_to_channel( in mwifiex_uap_set_channel()
827 bss_cfg->band_cfg = BAND_CONFIG_BG; in mwifiex_uap_set_channel()
833 bss_cfg->band_cfg = BAND_CONFIG_A; in mwifiex_uap_set_channel()
852 struct mwifiex_uap_bss_param *bss_cfg) in mwifiex_config_start_uap() argument
858 UAP_BSS_PARAMS_I, bss_cfg, false)) { in mwifiex_config_start_uap()