Lines Matching refs:bss_desc

143 			      struct mwifiex_bssdescriptor *bss_desc)  in mwifiex_fill_new_bss_desc()  argument
154 bss_desc->timestamp = ies->tsf; in mwifiex_fill_new_bss_desc()
163 memcpy(bss_desc->mac_address, bss->bssid, ETH_ALEN); in mwifiex_fill_new_bss_desc()
164 bss_desc->rssi = bss->signal; in mwifiex_fill_new_bss_desc()
166 bss_desc->beacon_buf = beacon_ie; in mwifiex_fill_new_bss_desc()
167 bss_desc->beacon_buf_size = beacon_ie_len; in mwifiex_fill_new_bss_desc()
168 bss_desc->beacon_period = bss->beacon_interval; in mwifiex_fill_new_bss_desc()
169 bss_desc->cap_info_bitmap = bss->capability; in mwifiex_fill_new_bss_desc()
170 bss_desc->bss_band = bss_priv->band; in mwifiex_fill_new_bss_desc()
171 bss_desc->fw_tsf = bss_priv->fw_tsf; in mwifiex_fill_new_bss_desc()
172 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_PRIVACY) { in mwifiex_fill_new_bss_desc()
175 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_8021X_WEP; in mwifiex_fill_new_bss_desc()
177 bss_desc->privacy = MWIFIEX_802_11_PRIV_FILTER_ACCEPT_ALL; in mwifiex_fill_new_bss_desc()
179 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_IBSS) in mwifiex_fill_new_bss_desc()
180 bss_desc->bss_mode = NL80211_IFTYPE_ADHOC; in mwifiex_fill_new_bss_desc()
182 bss_desc->bss_mode = NL80211_IFTYPE_STATION; in mwifiex_fill_new_bss_desc()
187 bss_desc->disable_11ac = true; in mwifiex_fill_new_bss_desc()
189 if (bss_desc->cap_info_bitmap & WLAN_CAPABILITY_SPECTRUM_MGMT) in mwifiex_fill_new_bss_desc()
190 bss_desc->sensed_11h = true; in mwifiex_fill_new_bss_desc()
192 return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); in mwifiex_fill_new_bss_desc()
279 struct mwifiex_bssdescriptor *bss_desc = NULL; in mwifiex_bss_start() local
289 bss_desc = kzalloc(sizeof(struct mwifiex_bssdescriptor), in mwifiex_bss_start()
291 if (!bss_desc) in mwifiex_bss_start()
294 ret = mwifiex_fill_new_bss_desc(priv, bss, bss_desc); in mwifiex_bss_start()
303 if (!bss_desc) in mwifiex_bss_start()
306 if (mwifiex_band_to_radio_type(bss_desc->bss_band) == in mwifiex_bss_start()
318 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
323 (u8)bss_desc->channel) { in mwifiex_bss_start()
326 bss_desc->channel); in mwifiex_bss_start()
342 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
351 ret = mwifiex_associate(priv, bss_desc); in mwifiex_bss_start()
359 if (bss_desc && bss_desc->ssid.ssid_len && in mwifiex_bss_start()
361 ssid, &bss_desc->ssid))) { in mwifiex_bss_start()
368 ret = mwifiex_check_network_compatibility(priv, bss_desc); in mwifiex_bss_start()
378 ret = mwifiex_adhoc_join(priv, bss_desc); in mwifiex_bss_start()
394 if (bss_desc) in mwifiex_bss_start()
395 kfree(bss_desc->beacon_buf); in mwifiex_bss_start()
396 kfree(bss_desc); in mwifiex_bss_start()
583 struct mwifiex_bssdescriptor *bss_desc; in mwifiex_get_bss_info() local
588 bss_desc = &priv->curr_bss_params.bss_descriptor; in mwifiex_get_bss_info()
592 memcpy(&info->ssid, &bss_desc->ssid, sizeof(struct cfg80211_ssid)); in mwifiex_get_bss_info()
594 memcpy(&info->bssid, &bss_desc->mac_address, ETH_ALEN); in mwifiex_get_bss_info()
596 info->bss_chan = bss_desc->channel; in mwifiex_get_bss_info()