/net/wireless/ |
D | scan.c | 118 static void bss_free(struct cfg80211_internal_bss *bss) in bss_free() argument 122 if (WARN_ON(atomic_read(&bss->hold))) in bss_free() 125 ies = (void *)rcu_access_pointer(bss->pub.beacon_ies); in bss_free() 126 if (ies && !bss->pub.hidden_beacon_bss) in bss_free() 128 ies = (void *)rcu_access_pointer(bss->pub.proberesp_ies); in bss_free() 136 if (!list_empty(&bss->hidden_list)) in bss_free() 137 list_del(&bss->hidden_list); in bss_free() 139 kfree(bss); in bss_free() 143 struct cfg80211_internal_bss *bss) in bss_ref_get() argument 147 bss->refcount++; in bss_ref_get() [all …]
|
D | sme.c | 175 auth_req.bss = cfg80211_get_bss(&rdev->wiphy, params->channel, in cfg80211_conn_do_work() 182 cfg80211_put_bss(&rdev->wiphy, auth_req.bss); in cfg80211_conn_do_work() 204 req.bss = cfg80211_get_bss(&rdev->wiphy, params->channel, in cfg80211_conn_do_work() 209 if (!req.bss) { in cfg80211_conn_do_work() 213 cfg80211_put_bss(&rdev->wiphy, req.bss); in cfg80211_conn_do_work() 289 struct cfg80211_bss *bss) in cfg80211_step_auth_next() argument 291 memcpy(conn->bssid, bss->bssid, ETH_ALEN); in cfg80211_step_auth_next() 293 conn->params.channel = bss->channel; in cfg80211_step_auth_next() 301 struct cfg80211_bss *bss; in cfg80211_get_conn_bss() local 305 bss = cfg80211_get_bss(wdev->wiphy, wdev->conn->params.channel, in cfg80211_get_conn_bss() [all …]
|
D | mlme.c | 46 cr.links[link_id].bss = data->links[link_id].bss; in cfg80211_rx_assoc_resp() 49 (!cr.ap_mld_addr || !cr.links[link_id].bss)); in cfg80211_rx_assoc_resp() 51 if (!cr.links[link_id].bss) in cfg80211_rx_assoc_resp() 53 cr.links[link_id].bssid = data->links[link_id].bss->bssid; in cfg80211_rx_assoc_resp() 59 BUG_ON(!cr.links[link_id].bss->channel); in cfg80211_rx_assoc_resp() 61 if (cr.links[link_id].bss->channel->band == NL80211_BAND_S1GHZ) { in cfg80211_rx_assoc_resp() 83 struct cfg80211_bss *bss = data->links[link_id].bss; in cfg80211_rx_assoc_resp() local 85 if (!bss) in cfg80211_rx_assoc_resp() 88 cfg80211_unhold_bss(bss_from_pub(bss)); in cfg80211_rx_assoc_resp() 89 cfg80211_put_bss(wiphy, bss); in cfg80211_rx_assoc_resp() [all …]
|
D | core.h | 193 static inline void cfg80211_hold_bss(struct cfg80211_internal_bss *bss) in cfg80211_hold_bss() argument 195 atomic_inc(&bss->hold); in cfg80211_hold_bss() 196 if (bss->pub.transmitted_bss) { in cfg80211_hold_bss() 197 bss = container_of(bss->pub.transmitted_bss, in cfg80211_hold_bss() 199 atomic_inc(&bss->hold); in cfg80211_hold_bss() 203 static inline void cfg80211_unhold_bss(struct cfg80211_internal_bss *bss) in cfg80211_unhold_bss() argument 205 int r = atomic_dec_return(&bss->hold); in cfg80211_unhold_bss() 207 if (bss->pub.transmitted_bss) { in cfg80211_unhold_bss() 208 bss = container_of(bss->pub.transmitted_bss, in cfg80211_unhold_bss() 210 r = atomic_dec_return(&bss->hold); in cfg80211_unhold_bss()
|
D | ibss.c | 23 struct cfg80211_bss *bss; in __cfg80211_ibss_joined() local 34 bss = cfg80211_get_bss(wdev->wiphy, channel, bssid, NULL, 0, in __cfg80211_ibss_joined() 37 if (WARN_ON(!bss)) in __cfg80211_ibss_joined() 45 cfg80211_hold_bss(bss_from_pub(bss)); in __cfg80211_ibss_joined() 46 wdev->u.ibss.current_bss = bss_from_pub(bss); in __cfg80211_ibss_joined()
|
D | trace.h | 1163 TP_PROTO(struct wiphy *wiphy, struct cfg80211_bss *bss), 1164 TP_ARGS(wiphy, bss), 1172 MAC_ASSIGN(bssid, bss->bssid); 1173 CHAN_ASSIGN(bss->channel); 1253 if (req->bss) 1254 MAC_ASSIGN(bssid, req->bss->bssid); 1287 if (req->bss) 1288 MAC_ASSIGN(bssid, req->bss->bssid); 2940 data->ap_mld_addr ?: data->links[0].bss->bssid); 3023 MAC_ASSIGN(ap_addr, data->ap_mld_addr ?: data->bss[0]->bssid);
|
D | nl80211.c | 10359 struct nlattr *bss; in nl80211_send_bss() local 10379 bss = nla_nest_start_noflag(msg, NL80211_ATTR_BSS); in nl80211_send_bss() 10380 if (!bss) in nl80211_send_bss() 10492 nla_nest_end(msg, bss); in nl80211_send_bss() 10851 req.bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len, in nl80211_authenticate() 10854 if (!req.bss) in nl80211_authenticate() 10861 cfg80211_put_bss(&rdev->wiphy, req.bss); in nl80211_authenticate() 11010 struct cfg80211_bss *bss; in nl80211_assoc_bss() local 11032 bss = __cfg80211_get_bss(&rdev->wiphy, chan, bssid, in nl80211_assoc_bss() 11037 if (!bss) in nl80211_assoc_bss() [all …]
|
D | rdev-ops.h | 411 struct cfg80211_bss *bss, in rdev_inform_bss() argument 416 trace_rdev_inform_bss(&rdev->wiphy, bss); in rdev_inform_bss() 418 rdev->ops->inform_bss(&rdev->wiphy, bss, ies, drv_data); in rdev_inform_bss()
|
D | util.c | 995 const struct element *ieee80211_bss_get_elem(struct cfg80211_bss *bss, u8 id) in ieee80211_bss_get_elem() argument 999 ies = rcu_dereference(bss->ies); in ieee80211_bss_get_elem()
|
/net/mac80211/ |
D | scan.c | 33 struct ieee80211_bss *bss) in ieee80211_rx_bss_put() argument 35 if (!bss) in ieee80211_rx_bss_put() 38 container_of((void *)bss, struct cfg80211_bss, priv)); in ieee80211_rx_bss_put() 70 struct ieee80211_bss *bss = (void *)cbss->priv; in ieee80211_inform_bss() local 86 bss->device_ts_beacon = rx_status->device_timestamp; in ieee80211_inform_bss() 88 bss->device_ts_presp = rx_status->device_timestamp; in ieee80211_inform_bss() 92 bss->corrupt_data |= IEEE80211_BSS_CORRUPT_BEACON; in ieee80211_inform_bss() 94 bss->corrupt_data |= IEEE80211_BSS_CORRUPT_PROBE_RESP; in ieee80211_inform_bss() 97 bss->corrupt_data &= ~IEEE80211_BSS_CORRUPT_BEACON; in ieee80211_inform_bss() 99 bss->corrupt_data &= ~IEEE80211_BSS_CORRUPT_PROBE_RESP; in ieee80211_inform_bss() [all …]
|
D | mlme.c | 1031 struct cfg80211_bss *cbss = assoc_data->link[link_id].bss; in ieee80211_assoc_link_elems() 1328 if (!assoc_data->link[link_id].bss || in ieee80211_assoc_add_ml_elem() 1414 struct cfg80211_bss *cbss = assoc_data->link[link_id].bss; in ieee80211_send_assoc() 1483 if (WARN_ON(!assoc_data->link[assoc_data->assoc_link_id].bss)) in ieee80211_send_assoc() 1846 struct cfg80211_bss *cbss = link->u.mgd.bss; in ieee80211_sta_process_chanswitch() 1852 struct ieee80211_bss *bss; in ieee80211_sta_process_chanswitch() local 1862 bss = (void *)cbss->priv; in ieee80211_sta_process_chanswitch() 1864 bss->vht_cap_info, in ieee80211_sta_process_chanswitch() 2747 struct ieee80211_bss *bss = (void *)cbss->priv; in ieee80211_link_set_associated() local 2757 bss->has_erp_value, in ieee80211_link_set_associated() [all …]
|
D | ibss.c | 228 struct cfg80211_bss *bss; in __ieee80211_sta_join_ibss() local 385 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss() 388 cfg80211_put_bss(local->hw.wiphy, bss); in __ieee80211_sta_join_ibss() 394 struct ieee80211_bss *bss) in ieee80211_sta_join_ibss() argument 397 container_of((void *)bss, struct cfg80211_bss, priv); in ieee80211_sta_join_ibss() 446 for (i = 0; i < bss->supp_rates_len; i++) { in ieee80211_sta_join_ibss() 447 int rate = bss->supp_rates[i] & 0x7f; in ieee80211_sta_join_ibss() 448 bool is_basic = !!(bss->supp_rates[i] & 0x80); in ieee80211_sta_join_ibss() 1102 struct ieee80211_bss *bss; in ieee80211_rx_bss_info() local 1114 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info() [all …]
|
D | iface.c | 398 sdata->bss = &nsdata->u.ap; in ieee80211_check_concurrent_iface() 581 ps = &sdata->bss->ps; in ieee80211_do_stop() 670 sdata->bss = NULL; in ieee80211_do_stop() 1021 struct ieee80211_sub_if_data *bss = sdata; in ieee80211_set_vif_encap_ops() local 1025 if (!sdata->bss) in ieee80211_set_vif_encap_ops() 1028 bss = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_set_vif_encap_ops() 1032 !ieee80211_iftype_supports_hdr_offload(bss->vif.type)) in ieee80211_set_vif_encap_ops() 1035 enabled = bss->vif.offload_flags & IEEE80211_OFFLOAD_ENCAP_ENABLED; in ieee80211_set_vif_encap_ops() 1037 !(bss->vif.offload_flags & IEEE80211_OFFLOAD_ENCAP_4ADDR)) in ieee80211_set_vif_encap_ops() 1056 vsdata->bss != &sdata->u.ap) in ieee80211_recalc_sdata_offload() [all …]
|
D | ieee80211_i.h | 378 struct cfg80211_bss *bss; member 399 struct cfg80211_bss *bss; member 956 struct cfg80211_bss *bss; member 1079 struct ieee80211_if_ap *bss; member 1945 void ieee80211_inform_bss(struct wiphy *wiphy, struct cfg80211_bss *bss, 1956 struct ieee80211_bss *bss); 2306 struct cfg80211_bss *bss; member 2317 struct cfg80211_bss *bss) in ieee802_11_parse_elems_crc() argument 2325 .bss = bss, in ieee802_11_parse_elems_crc() 2334 struct cfg80211_bss *bss) in ieee802_11_parse_elems() argument [all …]
|
D | sta_info.c | 130 ps = &sdata->bss->ps; in __cleanup_single_sta() 232 (sta->sdata->bss && sta->sdata->bss == sdata->bss)) { in sta_info_get_bss() 263 (sta->sdata->bss && sta->sdata->bss == sdata->bss)) { in link_sta_info_get_bss() 1021 if (WARN_ON_ONCE(!sta->sdata->bss)) in __sta_info_recalc_tim() 1024 ps = &sta->sdata->bss->ps; in __sta_info_recalc_tim() 1202 if (!sta->sdata->bss && in sta_info_cleanup_expire_buffered() 1590 WARN_ON(vlans && !sdata->bss); in __sta_info_flush() 1595 (vlans && sdata->bss == sta->sdata->bss)) { in __sta_info_flush() 1705 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in ieee80211_sta_ps_deliver_wakeup() 1709 ps = &sdata->bss->ps; in ieee80211_sta_ps_deliver_wakeup()
|
D | tx.c | 412 if (!tx->sdata->bss) in ieee80211_tx_h_multicast_ps_buf() 415 ps = &tx->sdata->bss->ps; in ieee80211_tx_h_multicast_ps_buf() 719 txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_rate_ctrl() 1496 ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_txq_remove_vlan() 1660 sdata = container_of(sdata->bss, in ieee80211_queue_skb() 1789 sdata = container_of(sdata->bss, in __ieee80211_tx() 2641 ap_sdata = container_of(sdata->bss, in ieee80211_build_hdr() 3277 (!sta->sdata->bss || sta->sdata->bss != sdata->bss)) in ieee80211_check_fast_xmit_iface() 3605 if (!sdata->bss) in ieee80211_sdata_netdev_features() 3608 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_sdata_netdev_features() [all …]
|
D | chan.c | 250 !(sta->sdata->bss && sta->sdata->bss == sdata->bss)) in ieee80211_get_max_required_bw() 2037 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP_VLAN || !sdata->bss)) in ieee80211_link_vlan_copy_chanctx() 2040 ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_link_vlan_copy_chanctx()
|
D | tkip.c | 300 sdata = container_of(key->sdata->bss, in ieee80211_tkip_decrypt_data()
|
D | util.c | 347 ps = &sdata->bss->ps; in __ieee80211_wake_txqs() 1411 struct cfg80211_bss *bss, in ieee802_11_find_bssid_profile() argument 1418 if (!bss || !bss->transmitted_bss) in ieee802_11_find_bssid_profile() 1462 cfg80211_gen_new_bssid(bss->transmitted_bss->bssid, in ieee802_11_find_bssid_profile() 1466 if (ether_addr_equal(new_bssid, bss->bssid)) { in ieee802_11_find_bssid_profile() 1613 elems, params->bss, in ieee802_11_parse_elems_full() 4749 if (!sdata->bss) in ieee80211_recalc_dtim() 4752 ps = &sdata->bss->ps; in ieee80211_recalc_dtim()
|
D | key.c | 1151 if (sdata->bss) { in ieee80211_free_keys() 1152 master = container_of(sdata->bss, in ieee80211_free_keys()
|
D | rx.c | 1544 ps = &sdata->bss->ps; in sta_ps_start() 3184 unlikely(port_control) && sdata->bss) { in ieee80211_rx_h_data() 3185 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in ieee80211_rx_h_data() 4682 (!sta->sdata->bss || sta->sdata->bss != sdata->bss)) in __ieee80211_check_fast_rx_iface()
|
D | offchannel.c | 807 !sdata->bss->active) in ieee80211_mgmt_tx()
|
D | rate.c | 408 if (!pubsta && txrc->bss) { in rate_control_send_low()
|
D | driver-ops.h | 27 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in get_bss_sdata()
|