Home
last modified time | relevance | path

Searched refs:bss (Results 1 – 24 of 24) sorted by relevance

/net/wireless/
Dscan.c77 static void bss_free(struct cfg80211_internal_bss *bss) in bss_free() argument
81 if (WARN_ON(atomic_read(&bss->hold))) in bss_free()
84 ies = (void *)rcu_access_pointer(bss->pub.beacon_ies); in bss_free()
85 if (ies && !bss->pub.hidden_beacon_bss) in bss_free()
87 ies = (void *)rcu_access_pointer(bss->pub.proberesp_ies); in bss_free()
95 if (!list_empty(&bss->hidden_list)) in bss_free()
96 list_del(&bss->hidden_list); in bss_free()
98 kfree(bss); in bss_free()
102 struct cfg80211_internal_bss *bss) in bss_ref_get() argument
106 bss->refcount++; in bss_ref_get()
[all …]
Dsme.c273 struct cfg80211_bss *bss) in cfg80211_step_auth_next() argument
275 memcpy(conn->bssid, bss->bssid, ETH_ALEN); in cfg80211_step_auth_next()
277 conn->params.channel = bss->channel; in cfg80211_step_auth_next()
285 struct cfg80211_bss *bss; in cfg80211_get_conn_bss() local
289 bss = cfg80211_get_bss(wdev->wiphy, wdev->conn->params.channel, in cfg80211_get_conn_bss()
295 if (!bss) in cfg80211_get_conn_bss()
298 cfg80211_step_auth_next(wdev->conn, bss); in cfg80211_get_conn_bss()
301 return bss; in cfg80211_get_conn_bss()
308 struct cfg80211_bss *bss; in __cfg80211_sme_scan_done() local
319 bss = cfg80211_get_conn_bss(wdev); in __cfg80211_sme_scan_done()
[all …]
Dmlme.c23 void cfg80211_rx_assoc_resp(struct net_device *dev, struct cfg80211_bss *bss, in cfg80211_rx_assoc_resp() argument
36 cr.bss = bss; in cfg80211_rx_assoc_resp()
44 trace_cfg80211_send_rx_assoc(dev, bss); in cfg80211_rx_assoc_resp()
53 cfg80211_unhold_bss(bss_from_pub(bss)); in cfg80211_rx_assoc_resp()
54 cfg80211_put_bss(wiphy, bss); in cfg80211_rx_assoc_resp()
146 void cfg80211_assoc_timeout(struct net_device *dev, struct cfg80211_bss *bss) in cfg80211_assoc_timeout() argument
152 trace_cfg80211_send_assoc_timeout(dev, bss->bssid); in cfg80211_assoc_timeout()
154 nl80211_send_assoc_timeout(rdev, dev, bss->bssid, GFP_KERNEL); in cfg80211_assoc_timeout()
157 cfg80211_unhold_bss(bss_from_pub(bss)); in cfg80211_assoc_timeout()
158 cfg80211_put_bss(wiphy, bss); in cfg80211_assoc_timeout()
[all …]
Dcore.h182 static inline void cfg80211_hold_bss(struct cfg80211_internal_bss *bss) in cfg80211_hold_bss() argument
184 atomic_inc(&bss->hold); in cfg80211_hold_bss()
185 if (bss->pub.transmitted_bss) { in cfg80211_hold_bss()
186 bss = container_of(bss->pub.transmitted_bss, in cfg80211_hold_bss()
188 atomic_inc(&bss->hold); in cfg80211_hold_bss()
192 static inline void cfg80211_unhold_bss(struct cfg80211_internal_bss *bss) in cfg80211_unhold_bss() argument
194 int r = atomic_dec_return(&bss->hold); in cfg80211_unhold_bss()
196 if (bss->pub.transmitted_bss) { in cfg80211_unhold_bss()
197 bss = container_of(bss->pub.transmitted_bss, in cfg80211_unhold_bss()
199 r = atomic_dec_return(&bss->hold); in cfg80211_unhold_bss()
Dibss.c22 struct cfg80211_bss *bss; in __cfg80211_ibss_joined() local
33 bss = cfg80211_get_bss(wdev->wiphy, channel, bssid, NULL, 0, in __cfg80211_ibss_joined()
36 if (WARN_ON(!bss)) in __cfg80211_ibss_joined()
44 cfg80211_hold_bss(bss_from_pub(bss)); in __cfg80211_ibss_joined()
45 wdev->current_bss = bss_from_pub(bss); in __cfg80211_ibss_joined()
Dtrace.h1188 if (req->bss)
1189 MAC_ASSIGN(bssid, req->bss->bssid);
1214 if (req->bss)
1215 MAC_ASSIGN(bssid, req->bss->bssid);
1264 if (req->bss)
1265 MAC_ASSIGN(bssid, req->bss->bssid);
2642 TP_PROTO(struct net_device *netdev, struct cfg80211_bss *bss),
2643 TP_ARGS(netdev, bss),
2651 MAC_ASSIGN(bssid, bss->bssid);
2652 CHAN_ASSIGN(bss->channel);
Dutil.c877 const struct element *ieee80211_bss_get_elem(struct cfg80211_bss *bss, u8 id) in ieee80211_bss_get_elem() argument
881 ies = rcu_dereference(bss->ies); in ieee80211_bss_get_elem()
Dnl80211.c8840 struct nlattr *bss; in nl80211_send_bss() local
8860 bss = nla_nest_start_noflag(msg, NL80211_ATTR_BSS); in nl80211_send_bss()
8861 if (!bss) in nl80211_send_bss()
8956 nla_nest_end(msg, bss); in nl80211_send_bss()
15645 const u8 *bssid = info->bss ? info->bss->bssid : info->bssid; in nl80211_send_roamed()
/net/mac80211/
Dscan.c33 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()
60 struct ieee80211_bss *bss, in ieee80211_update_bss_from_elems() argument
68 bss->device_ts_beacon = rx_status->device_timestamp; in ieee80211_update_bss_from_elems()
70 bss->device_ts_presp = rx_status->device_timestamp; in ieee80211_update_bss_from_elems()
74 bss->corrupt_data |= IEEE80211_BSS_CORRUPT_BEACON; in ieee80211_update_bss_from_elems()
76 bss->corrupt_data |= IEEE80211_BSS_CORRUPT_PROBE_RESP; in ieee80211_update_bss_from_elems()
79 bss->corrupt_data &= ~IEEE80211_BSS_CORRUPT_BEACON; in ieee80211_update_bss_from_elems()
81 bss->corrupt_data &= ~IEEE80211_BSS_CORRUPT_PROBE_RESP; in ieee80211_update_bss_from_elems()
[all …]
Dmlme.c732 memcpy(mgmt->da, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
734 memcpy(mgmt->bssid, assoc_data->bss->bssid, ETH_ALEN); in ieee80211_send_assoc()
2137 struct ieee80211_bss *bss = (void *)cbss->priv; in ieee80211_set_associated() local
2143 bss_conf->assoc_capability, bss->has_erp_value, bss->erp_value); in ieee80211_set_associated()
2191 bss_conf->beacon_rate = bss->beacon_rate; in ieee80211_set_associated()
2634 cbss = ifmgd->auth_data->bss; in ieee80211_ap_probereq_get()
2636 cbss = ifmgd->assoc_data->bss; in ieee80211_ap_probereq_get()
2782 sta_info_destroy_addr(sdata, auth_data->bss->bssid); in ieee80211_destroy_auth_data()
2792 cfg80211_put_bss(sdata->local->hw.wiphy, auth_data->bss); in ieee80211_destroy_auth_data()
2811 sta_info_destroy_addr(sdata, assoc_data->bss->bssid); in ieee80211_destroy_assoc_data()
[all …]
Dibss.c228 struct cfg80211_bss *bss; in __ieee80211_sta_join_ibss() local
389 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss()
392 cfg80211_put_bss(local->hw.wiphy, bss); in __ieee80211_sta_join_ibss()
398 struct ieee80211_bss *bss) in ieee80211_sta_join_ibss() argument
401 container_of((void *)bss, struct cfg80211_bss, priv); in ieee80211_sta_join_ibss()
450 for (i = 0; i < bss->supp_rates_len; i++) { in ieee80211_sta_join_ibss()
451 int rate = bss->supp_rates[i] & 0x7f; in ieee80211_sta_join_ibss()
452 bool is_basic = !!(bss->supp_rates[i] & 0x80); in ieee80211_sta_join_ibss()
1117 struct ieee80211_bss *bss; in ieee80211_rx_bss_info() local
1129 bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, channel); in ieee80211_rx_bss_info()
[all …]
Dsta_info.c97 ps = &sdata->bss->ps; in __cleanup_single_sta()
201 (sta->sdata->bss && sta->sdata->bss == sdata->bss)) { in sta_info_get_bss()
788 if (WARN_ON_ONCE(!sta->sdata->bss)) in __sta_info_recalc_tim()
791 ps = &sta->sdata->bss->ps; in __sta_info_recalc_tim()
969 if (!sta->sdata->bss && in sta_info_cleanup_expire_buffered()
1194 WARN_ON(vlans && !sdata->bss); in __sta_info_flush()
1199 (vlans && sdata->bss == sta->sdata->bss)) { in __sta_info_flush()
1300 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in ieee80211_sta_ps_deliver_wakeup()
1304 ps = &sdata->bss->ps; in ieee80211_sta_ps_deliver_wakeup()
1366 sta->known_smps_mode != sdata->bss->req_smps && in ieee80211_sta_ps_deliver_wakeup()
[all …]
Diface.c304 sdata->bss = &nsdata->u.ap; in ieee80211_check_concurrent_iface()
507 if (!sdata->bss) in ieee80211_do_open()
511 list_add(&sdata->u.vlan.list, &sdata->bss->vlans); in ieee80211_do_open()
514 master = container_of(sdata->bss, in ieee80211_do_open()
535 sdata->bss = &sdata->u.ap; in ieee80211_do_open()
585 if (rtnl_dereference(sdata->bss->beacon)) { in ieee80211_do_open()
766 sdata->bss = NULL; in ieee80211_do_open()
922 ps = &sdata->bss->ps; in ieee80211_do_stop()
1011 sdata->bss = NULL; in ieee80211_do_stop()
Dchan.c232 !(sta->sdata->bss && sta->sdata->bss == sdata->bss)) in ieee80211_get_max_required_bw()
1765 if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_AP_VLAN || !sdata->bss)) in ieee80211_vif_vlan_copy_chanctx()
1768 ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_vif_vlan_copy_chanctx()
Dtx.c418 if (!tx->sdata->bss) in ieee80211_tx_h_multicast_ps_buf()
421 ps = &tx->sdata->bss->ps; in ieee80211_tx_h_multicast_ps_buf()
699 txrc.bss = (tx->sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_tx_h_rate_ctrl()
1437 ap = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); in ieee80211_txq_remove_vlan()
1609 sdata = container_of(sdata->bss, in ieee80211_queue_skb()
1746 sdata = container_of(sdata->bss, in __ieee80211_tx()
2526 ap_sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in ieee80211_build_hdr()
3139 (!sta->sdata->bss || sta->sdata->bss != sdata->bss)) in ieee80211_check_fast_xmit_iface()
3569 sdata = container_of(sdata->bss, in ieee80211_xmit_fast()
3712 tx.sdata = container_of(tx.sdata->bss, in ieee80211_tx_dequeue()
[all …]
Dieee80211_i.h358 struct cfg80211_bss *bss; member
375 struct cfg80211_bss *bss; member
962 struct ieee80211_if_ap *bss; member
1704 struct ieee80211_bss *bss);
Dtkip.c300 sdata = container_of(key->sdata->bss, in ieee80211_tkip_decrypt_data()
Dkey.c1014 if (sdata->bss) { in ieee80211_free_keys()
1015 master = container_of(sdata->bss, in ieee80211_free_keys()
Drx.c1570 ps = &sdata->bss->ps; in sta_ps_start()
2974 unlikely(port_control) && sdata->bss) { in ieee80211_rx_h_data()
2975 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in ieee80211_rx_h_data()
4228 (!sta->sdata->bss || sta->sdata->bss != sdata->bss)) in __ieee80211_check_fast_rx_iface()
Doffchannel.c819 !rcu_access_pointer(sdata->bss->beacon)) in ieee80211_mgmt_tx()
Drate.c377 if (!pubsta && txrc->bss) { in rate_control_send_low()
Dutil.c254 ps = &sdata->bss->ps; in __ieee80211_wake_txqs()
3860 if (!sdata->bss) in ieee80211_recalc_dtim()
3863 ps = &sdata->bss->ps; in ieee80211_recalc_dtim()
Dcfg.c1698 sta->known_smps_mode != sta->sdata->bss->req_smps && in ieee80211_change_station()
1705 sta->sdata->bss->req_smps, in ieee80211_change_station()
2673 if (sta->sdata->bss != &sdata->u.ap) in __ieee80211_request_smps_ap()
Ddriver-ops.h26 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in get_bss_sdata()