Lines Matching refs:bss_desc
139 struct mwifiex_bssdescriptor *bss_desc) in mwifiex_fill_new_bss_desc() argument
150 bss_desc->timestamp = ies->tsf; in mwifiex_fill_new_bss_desc()
158 memcpy(bss_desc->mac_address, bss->bssid, ETH_ALEN); in mwifiex_fill_new_bss_desc()
159 bss_desc->rssi = bss->signal; in mwifiex_fill_new_bss_desc()
161 bss_desc->beacon_buf = beacon_ie; in mwifiex_fill_new_bss_desc()
162 bss_desc->beacon_buf_size = beacon_ie_len; in mwifiex_fill_new_bss_desc()
163 bss_desc->beacon_period = bss->beacon_interval; in mwifiex_fill_new_bss_desc()
164 bss_desc->cap_info_bitmap = bss->capability; in mwifiex_fill_new_bss_desc()
165 bss_desc->bss_band = bss_priv->band; in mwifiex_fill_new_bss_desc()
166 bss_desc->fw_tsf = bss_priv->fw_tsf; in mwifiex_fill_new_bss_desc()
167 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_PRIVACY) { in mwifiex_fill_new_bss_desc()
169 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_8021X_WEP; in mwifiex_fill_new_bss_desc()
171 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_ACCEPT_ALL; in mwifiex_fill_new_bss_desc()
173 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_IBSS) in mwifiex_fill_new_bss_desc()
174 bss_desc->bss_mode = NL80211_IFTYPE_ADHOC; in mwifiex_fill_new_bss_desc()
176 bss_desc->bss_mode = NL80211_IFTYPE_STATION; in mwifiex_fill_new_bss_desc()
181 bss_desc->disable_11ac = true; in mwifiex_fill_new_bss_desc()
183 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_SPECTRUM_MGMT) in mwifiex_fill_new_bss_desc()
184 bss_desc->sensed_11h = true; in mwifiex_fill_new_bss_desc()
186 return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); in mwifiex_fill_new_bss_desc()
264 struct mwifiex_bssdescriptor *bss_desc = NULL; in mwifiex_bss_start() local
272 bss_desc = kzalloc(sizeof(struct mwifiex_bssdescriptor), in mwifiex_bss_start()
274 if (!bss_desc) in mwifiex_bss_start()
277 ret = mwifiex_fill_new_bss_desc(priv, bss, bss_desc); in mwifiex_bss_start()
286 if (!bss_desc) in mwifiex_bss_start()
289 if (mwifiex_band_to_radio_type(bss_desc->bss_band) == in mwifiex_bss_start()
301 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
306 (u8)bss_desc->channel) { in mwifiex_bss_start()
309 bss_desc->channel); in mwifiex_bss_start()
323 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
332 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
340 if (bss_desc && bss_desc->ssid.ssid_len && in mwifiex_bss_start()
342 ssid, &bss_desc->ssid))) { in mwifiex_bss_start()
349 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
358 ret = mwifiex_adhoc_join(priv, bss_desc); in mwifiex_bss_start()
373 if (bss_desc) in mwifiex_bss_start()
374 kfree(bss_desc->beacon_buf); in mwifiex_bss_start()
375 kfree(bss_desc); in mwifiex_bss_start()
538 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_get_bss_info() local
543 bss_desc = &priv->curr_bss_params.bss_descriptor; in mwifiex_get_bss_info()
547 memcpy(&info->ssid, &bss_desc->ssid, sizeof(struct cfg80211_ssid)); in mwifiex_get_bss_info()
549 memcpy(&info->bssid, &bss_desc->mac_address, ETH_ALEN); in mwifiex_get_bss_info()
551 info->bss_chan = bss_desc->channel; in mwifiex_get_bss_info()