Lines Matching refs:bss_desc
102 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_cmd_append_tsf_tlv() argument
122 tsf_val = cpu_to_le64(bss_desc->fw_tsf); in mwifiex_cmd_append_tsf_tlv()
126 tsf_val = cpu_to_le64(bss_desc->timestamp); in mwifiex_cmd_append_tsf_tlv()
130 __func__, bss_desc->timestamp, bss_desc->fw_tsf); in mwifiex_cmd_append_tsf_tlv()
204 struct mwifiex_bssdescriptor *bss_desc, in mwifiex_setup_rates_from_bssdesc() argument
211 memcpy(out_rates, bss_desc->supported_rates, MWIFIEX_SUPPORTED_RATES); in mwifiex_setup_rates_from_bssdesc()
389 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_cmd_802_11_associate() argument
409 priv->attempted_bss_desc = bss_desc; in mwifiex_cmd_802_11_associate()
412 bss_desc->mac_address, sizeof(assoc->peer_sta_addr)); in mwifiex_cmd_802_11_associate()
418 assoc->beacon_period = cpu_to_le16(bss_desc->beacon_period); in mwifiex_cmd_802_11_associate()
427 ssid_tlv->header.len = cpu_to_le16((u16) bss_desc->ssid.ssid_len); in mwifiex_cmd_802_11_associate()
428 memcpy(ssid_tlv->ssid, bss_desc->ssid.ssid, in mwifiex_cmd_802_11_associate()
436 &bss_desc->phy_param_set.ds_param_set.current_chan, in mwifiex_cmd_802_11_associate()
447 (priv, bss_desc, rates, &rates_size)) in mwifiex_cmd_802_11_associate()
477 (!bss_desc->disable_11n) && in mwifiex_cmd_802_11_associate()
480 (bss_desc->bcn_ht_cap) in mwifiex_cmd_802_11_associate()
493 (bss_desc->phy_param_set.ds_param_set.current_chan); in mwifiex_cmd_802_11_associate()
498 mwifiex_band_to_radio_type((u8) bss_desc->bss_band); in mwifiex_cmd_802_11_associate()
515 (!bss_desc->disable_11n) && in mwifiex_cmd_802_11_associate()
518 mwifiex_cmd_append_11n_tlv(priv, bss_desc, &pos); in mwifiex_cmd_802_11_associate()
521 !bss_desc->disable_11n && !bss_desc->disable_11ac && in mwifiex_cmd_802_11_associate()
523 mwifiex_cmd_append_11ac_tlv(priv, bss_desc, &pos); in mwifiex_cmd_802_11_associate()
528 mwifiex_wmm_process_association_req(priv, &pos, &bss_desc->wmm_ie, in mwifiex_cmd_802_11_associate()
529 bss_desc->bcn_ht_cap); in mwifiex_cmd_802_11_associate()
538 mwifiex_cmd_append_tsf_tlv(priv, &pos, bss_desc); in mwifiex_cmd_802_11_associate()
540 mwifiex_11h_process_join(priv, &pos, bss_desc); in mwifiex_cmd_802_11_associate()
545 tmp_cap = bss_desc->cap_info_bitmap; in mwifiex_cmd_802_11_associate()
644 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_ret_802_11_associate() local
710 bss_desc = priv->attempted_bss_desc; in mwifiex_ret_802_11_associate()
713 bss_desc->ssid.ssid); in mwifiex_ret_802_11_associate()
717 bss_desc, sizeof(struct mwifiex_bssdescriptor)); in mwifiex_ret_802_11_associate()
721 = bss_desc->phy_param_set.ds_param_set.current_chan; in mwifiex_ret_802_11_associate()
723 priv->curr_bss_params.band = (u8) bss_desc->bss_band; in mwifiex_ret_802_11_associate()
725 if (bss_desc->wmm_ie.vend_hdr.element_id == WLAN_EID_VENDOR_SPECIFIC) in mwifiex_ret_802_11_associate()
730 if ((priv->wmm_required || bss_desc->bcn_ht_cap) && in mwifiex_ret_802_11_associate()
740 = ((bss_desc->wmm_ie.qos_info_bitmap & in mwifiex_ret_802_11_associate()
848 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_cmd_802_11_ad_hoc_start() local
865 bss_desc = &priv->curr_bss_params.bss_descriptor; in mwifiex_cmd_802_11_ad_hoc_start()
866 priv->attempted_bss_desc = bss_desc; in mwifiex_cmd_802_11_ad_hoc_start()
885 memset(bss_desc->ssid.ssid, 0, IEEE80211_MAX_SSID_LEN); in mwifiex_cmd_802_11_ad_hoc_start()
886 memcpy(bss_desc->ssid.ssid, req_ssid->ssid, req_ssid->ssid_len); in mwifiex_cmd_802_11_ad_hoc_start()
888 bss_desc->ssid.ssid_len = req_ssid->ssid_len; in mwifiex_cmd_802_11_ad_hoc_start()
892 bss_desc->bss_mode = NL80211_IFTYPE_ADHOC; in mwifiex_cmd_802_11_ad_hoc_start()
894 bss_desc->beacon_period = priv->beacon_period; in mwifiex_cmd_802_11_ad_hoc_start()
927 bss_desc->channel = priv->adhoc_channel; in mwifiex_cmd_802_11_ad_hoc_start()
931 memcpy(&bss_desc->phy_param_set, &adhoc_start->phy_param_set, in mwifiex_cmd_802_11_ad_hoc_start()
944 memcpy(&bss_desc->ss_param_set, &adhoc_start->ss_param_set, in mwifiex_cmd_802_11_ad_hoc_start()
948 bss_desc->cap_info_bitmap |= WLAN_CAPABILITY_IBSS; in mwifiex_cmd_802_11_ad_hoc_start()
956 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_8021X_WEP; in mwifiex_cmd_802_11_ad_hoc_start()
962 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_ACCEPT_ALL; in mwifiex_cmd_802_11_ad_hoc_start()
1120 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_cmd_802_11_ad_hoc_join() argument
1136 if (bss_desc->erp_flags & USE_G_PROTECTION) { in mwifiex_cmd_802_11_ad_hoc_join()
1150 priv->attempted_bss_desc = bss_desc; in mwifiex_cmd_802_11_ad_hoc_join()
1157 = cpu_to_le16(bss_desc->beacon_period); in mwifiex_cmd_802_11_ad_hoc_join()
1160 &bss_desc->mac_address, ETH_ALEN); in mwifiex_cmd_802_11_ad_hoc_join()
1163 &bss_desc->ssid.ssid, bss_desc->ssid.ssid_len); in mwifiex_cmd_802_11_ad_hoc_join()
1166 &bss_desc->phy_param_set, in mwifiex_cmd_802_11_ad_hoc_join()
1170 &bss_desc->ss_param_set, sizeof(union ieee_types_ss_param_set)); in mwifiex_cmd_802_11_ad_hoc_join()
1172 tmp_cap = bss_desc->cap_info_bitmap; in mwifiex_cmd_802_11_ad_hoc_join()
1187 bss_desc->supported_rates[i]; i++) in mwifiex_cmd_802_11_ad_hoc_join()
1195 bss_desc->supported_rates, rates_size); in mwifiex_cmd_802_11_ad_hoc_join()
1199 memcpy(&priv->curr_bss_params.data_rates, bss_desc->supported_rates, in mwifiex_cmd_802_11_ad_hoc_join()
1203 priv->curr_bss_params.bss_descriptor.channel = bss_desc->channel; in mwifiex_cmd_802_11_ad_hoc_join()
1204 priv->curr_bss_params.band = (u8) bss_desc->bss_band; in mwifiex_cmd_802_11_ad_hoc_join()
1219 (bss_desc->phy_param_set.ds_param_set.current_chan); in mwifiex_cmd_802_11_ad_hoc_join()
1224 mwifiex_band_to_radio_type((u8) bss_desc->bss_band); in mwifiex_cmd_802_11_ad_hoc_join()
1242 bss_desc, &pos); in mwifiex_cmd_802_11_ad_hoc_join()
1274 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_ret_802_11_ad_hoc() local
1289 bss_desc = priv->attempted_bss_desc; in mwifiex_ret_802_11_ad_hoc()
1309 bss_desc->ssid.ssid); in mwifiex_ret_802_11_ad_hoc()
1312 memcpy(bss_desc->mac_address, in mwifiex_ret_802_11_ad_hoc()
1323 bss_desc->ssid.ssid); in mwifiex_ret_802_11_ad_hoc()
1331 bss_desc, sizeof(struct mwifiex_bssdescriptor)); in mwifiex_ret_802_11_ad_hoc()
1368 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_associate() argument
1374 (bss_desc->bss_mode != NL80211_IFTYPE_STATION)) in mwifiex_associate()
1378 !bss_desc->disable_11n && !bss_desc->disable_11ac && in mwifiex_associate()
1389 HostCmd_ACT_GEN_SET, 0, bss_desc, true); in mwifiex_associate()
1425 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_adhoc_join() argument
1434 bss_desc->ssid.ssid); in mwifiex_adhoc_join()
1436 bss_desc->ssid.ssid_len); in mwifiex_adhoc_join()
1440 !mwifiex_ssid_cmp(&bss_desc->ssid, in mwifiex_adhoc_join()
1451 !bss_desc->disable_11n && !bss_desc->disable_11ac && in mwifiex_adhoc_join()
1465 HostCmd_ACT_GEN_SET, 0, bss_desc, true); in mwifiex_adhoc_join()