Lines Matching refs:bss_desc

131 			      struct mwifiex_bssdescriptor *bss_desc)  in mwifiex_fill_new_bss_desc()  argument
142 bss_desc->timestamp = ies->tsf; in mwifiex_fill_new_bss_desc()
151 memcpy(bss_desc->mac_address, bss->bssid, ETH_ALEN); in mwifiex_fill_new_bss_desc()
152 bss_desc->rssi = bss->signal; in mwifiex_fill_new_bss_desc()
154 bss_desc->beacon_buf = beacon_ie; in mwifiex_fill_new_bss_desc()
155 bss_desc->beacon_buf_size = beacon_ie_len; in mwifiex_fill_new_bss_desc()
156 bss_desc->beacon_period = bss->beacon_interval; in mwifiex_fill_new_bss_desc()
157 bss_desc->cap_info_bitmap = bss->capability; in mwifiex_fill_new_bss_desc()
158 bss_desc->bss_band = bss_priv->band; in mwifiex_fill_new_bss_desc()
159 bss_desc->fw_tsf = bss_priv->fw_tsf; in mwifiex_fill_new_bss_desc()
160 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_PRIVACY) { in mwifiex_fill_new_bss_desc()
163 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_8021X_WEP; in mwifiex_fill_new_bss_desc()
165 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_ACCEPT_ALL; in mwifiex_fill_new_bss_desc()
167 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_IBSS) in mwifiex_fill_new_bss_desc()
168 bss_desc->bss_mode = NL80211_IFTYPE_ADHOC; in mwifiex_fill_new_bss_desc()
170 bss_desc->bss_mode = NL80211_IFTYPE_STATION; in mwifiex_fill_new_bss_desc()
175 bss_desc->disable_11ac = true; in mwifiex_fill_new_bss_desc()
177 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_SPECTRUM_MGMT) in mwifiex_fill_new_bss_desc()
178 bss_desc->sensed_11h = true; in mwifiex_fill_new_bss_desc()
180 return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); in mwifiex_fill_new_bss_desc()
267 struct mwifiex_bssdescriptor *bss_desc = NULL; in mwifiex_bss_start() local
277 bss_desc = kzalloc(sizeof(struct mwifiex_bssdescriptor), in mwifiex_bss_start()
279 if (!bss_desc) in mwifiex_bss_start()
282 ret = mwifiex_fill_new_bss_desc(priv, bss, bss_desc); in mwifiex_bss_start()
291 if (!bss_desc) in mwifiex_bss_start()
294 if (mwifiex_band_to_radio_type(bss_desc->bss_band) == in mwifiex_bss_start()
306 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
311 (u8)bss_desc->channel) { in mwifiex_bss_start()
314 bss_desc->channel); in mwifiex_bss_start()
330 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
339 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
347 if (bss_desc && bss_desc->ssid.ssid_len && in mwifiex_bss_start()
349 ssid, &bss_desc->ssid))) { in mwifiex_bss_start()
356 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
366 ret = mwifiex_adhoc_join(priv, bss_desc); in mwifiex_bss_start()
382 if (bss_desc) in mwifiex_bss_start()
383 kfree(bss_desc->beacon_buf); in mwifiex_bss_start()
384 kfree(bss_desc); in mwifiex_bss_start()
571 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_get_bss_info() local
576 bss_desc = &priv->curr_bss_params.bss_descriptor; in mwifiex_get_bss_info()
580 memcpy(&info->ssid, &bss_desc->ssid, sizeof(struct cfg80211_ssid)); in mwifiex_get_bss_info()
582 memcpy(&info->bssid, &bss_desc->mac_address, ETH_ALEN); in mwifiex_get_bss_info()
584 info->bss_chan = bss_desc->channel; in mwifiex_get_bss_info()