Lines Matching full:pub
87 ies = (void *)rcu_access_pointer(bss->pub.beacon_ies); in bss_free()
88 if (ies && !bss->pub.hidden_beacon_bss) in bss_free()
90 ies = (void *)rcu_access_pointer(bss->pub.proberesp_ies); in bss_free()
111 if (bss->pub.hidden_beacon_bss) in bss_ref_get()
112 bss_from_pub(bss->pub.hidden_beacon_bss)->refcount++; in bss_ref_get()
114 if (bss->pub.transmitted_bss) in bss_ref_get()
115 bss_from_pub(bss->pub.transmitted_bss)->refcount++; in bss_ref_get()
123 if (bss->pub.hidden_beacon_bss) { in bss_ref_put()
126 hbss = bss_from_pub(bss->pub.hidden_beacon_bss); in bss_ref_put()
132 if (bss->pub.transmitted_bss) { in bss_ref_put()
135 tbss = bss_from_pub(bss->pub.transmitted_bss); in bss_ref_put()
156 if (!bss->pub.hidden_beacon_bss) in __cfg80211_unlink_bss()
166 list_del_init(&bss->pub.nontrans_list); in __cfg80211_unlink_bss()
477 !bss->pub.hidden_beacon_bss) in cfg80211_bss_expire_oldest()
834 struct cfg80211_bss *res = &intbss->pub; in cfg80211_scan_6ghz()
1574 if (!cfg80211_bss_type_match(bss->pub.capability, in __cfg80211_get_bss()
1575 bss->pub.channel->band, bss_type)) in __cfg80211_get_bss()
1578 bss_privacy = (bss->pub.capability & WLAN_CAPABILITY_PRIVACY); in __cfg80211_get_bss()
1582 if (channel && bss->pub.channel != channel) in __cfg80211_get_bss()
1584 if (!is_valid_ether_addr(bss->pub.bssid)) in __cfg80211_get_bss()
1586 if ((bss->pub.use_for & use_for) != use_for) in __cfg80211_get_bss()
1592 if (is_bss(&bss->pub, bssid, ssid, ssid_len)) { in __cfg80211_get_bss()
1602 trace_cfg80211_return_bss(&res->pub); in __cfg80211_get_bss()
1603 return &res->pub; in __cfg80211_get_bss()
1619 cmp = cmp_bss(&bss->pub, &tbss->pub, BSS_CMP_REGULAR); in rb_insert_bss()
1648 r = cmp_bss(&res->pub, &bss->pub, mode); in rb_find_bss()
1682 if (!list_empty(&bss->pub.nontrans_list)) in cfg80211_rehash_bss()
1683 list_del_init(&bss->pub.nontrans_list); in cfg80211_rehash_bss()
1699 ies = rcu_access_pointer(new->pub.beacon_ies); in cfg80211_combine_bsses()
1727 if (!ether_addr_equal(bss->pub.bssid, new->pub.bssid)) in cfg80211_combine_bsses()
1729 if (bss->pub.channel != new->pub.channel) in cfg80211_combine_bsses()
1731 if (rcu_access_pointer(bss->pub.beacon_ies)) in cfg80211_combine_bsses()
1733 ies = rcu_access_pointer(bss->pub.ies); in cfg80211_combine_bsses()
1741 if (WARN_ON_ONCE(bss->pub.hidden_beacon_bss)) in cfg80211_combine_bsses()
1747 bss->pub.hidden_beacon_bss = &new->pub; in cfg80211_combine_bsses()
1749 rcu_assign_pointer(bss->pub.beacon_ies, in cfg80211_combine_bsses()
1750 new->pub.beacon_ies); in cfg80211_combine_bsses()
1770 ies = rcu_access_pointer(bss->pub.beacon_ies); in cfg80211_update_hidden_bsses()
1773 rcu_assign_pointer(bss->pub.beacon_ies, new_ies); in cfg80211_update_hidden_bsses()
1785 if (known->pub.proberesp_ecsa_stuck) in cfg80211_check_stuck_ecsa()
1788 new = rcu_dereference_protected(known->pub.proberesp_ies, in cfg80211_check_stuck_ecsa()
1806 bcn = rcu_dereference_protected(known->pub.beacon_ies, in cfg80211_check_stuck_ecsa()
1826 ieee80211_frequency_to_channel(known->pub.channel->center_freq)) in cfg80211_check_stuck_ecsa()
1829 known->pub.proberesp_ecsa_stuck = 1; in cfg80211_check_stuck_ecsa()
1841 if (rcu_access_pointer(new->pub.proberesp_ies)) { in cfg80211_update_known_bss()
1844 old = rcu_access_pointer(known->pub.proberesp_ies); in cfg80211_update_known_bss()
1846 rcu_assign_pointer(known->pub.proberesp_ies, in cfg80211_update_known_bss()
1847 new->pub.proberesp_ies); in cfg80211_update_known_bss()
1849 rcu_assign_pointer(known->pub.ies, in cfg80211_update_known_bss()
1850 new->pub.proberesp_ies); in cfg80211_update_known_bss()
1857 if (rcu_access_pointer(new->pub.beacon_ies)) { in cfg80211_update_known_bss()
1860 if (known->pub.hidden_beacon_bss && in cfg80211_update_known_bss()
1873 f = rcu_access_pointer(new->pub.beacon_ies); in cfg80211_update_known_bss()
1878 old = rcu_access_pointer(known->pub.beacon_ies); in cfg80211_update_known_bss()
1880 rcu_assign_pointer(known->pub.beacon_ies, new->pub.beacon_ies); in cfg80211_update_known_bss()
1883 if (old == rcu_access_pointer(known->pub.ies)) in cfg80211_update_known_bss()
1884 rcu_assign_pointer(known->pub.ies, new->pub.beacon_ies); in cfg80211_update_known_bss()
1887 rcu_access_pointer(new->pub.beacon_ies), in cfg80211_update_known_bss()
1894 known->pub.beacon_interval = new->pub.beacon_interval; in cfg80211_update_known_bss()
1900 known->pub.signal = new->pub.signal; in cfg80211_update_known_bss()
1901 known->pub.capability = new->pub.capability; in cfg80211_update_known_bss()
1905 known->pub.chains = new->pub.chains; in cfg80211_update_known_bss()
1906 memcpy(known->pub.chain_signal, new->pub.chain_signal, in cfg80211_update_known_bss()
1909 known->pub.max_bssid_indicator = new->pub.max_bssid_indicator; in cfg80211_update_known_bss()
1910 known->pub.bssid_index = new->pub.bssid_index; in cfg80211_update_known_bss()
1911 known->pub.use_for &= new->pub.use_for; in cfg80211_update_known_bss()
1912 known->pub.cannot_use_reasons = new->pub.cannot_use_reasons; in cfg80211_update_known_bss()
1927 if (WARN_ON(!tmp->pub.channel)) in __cfg80211_bss_update()
1932 if (WARN_ON(!rcu_access_pointer(tmp->pub.ies))) in __cfg80211_bss_update()
1956 INIT_LIST_HEAD(&new->pub.nontrans_list); in __cfg80211_bss_update()
1958 new->pub.transmitted_bss = NULL; in __cfg80211_bss_update()
1960 if (rcu_access_pointer(tmp->pub.proberesp_ies)) { in __cfg80211_bss_update()
1966 new->pub.hidden_beacon_bss = &hidden->pub; in __cfg80211_bss_update()
1971 ies = (void *)rcu_access_pointer(new->pub.beacon_ies); in __cfg80211_bss_update()
1972 rcu_assign_pointer(new->pub.beacon_ies, in __cfg80211_bss_update()
1973 hidden->pub.beacon_ies); in __cfg80211_bss_update()
1997 if (tmp->pub.transmitted_bss) { in __cfg80211_bss_update()
1998 new->pub.transmitted_bss = tmp->pub.transmitted_bss; in __cfg80211_bss_update()
1999 bss_ref_get(rdev, bss_from_pub(tmp->pub.transmitted_bss)); in __cfg80211_bss_update()
2012 ies = (void *)rcu_access_pointer(tmp->pub.beacon_ies); in __cfg80211_bss_update()
2015 ies = (void *)rcu_access_pointer(tmp->pub.proberesp_ies); in __cfg80211_bss_update()
2252 memcpy(tmp.pub.bssid, data->bssid, ETH_ALEN); in cfg80211_inform_single_bss_data()
2253 tmp.pub.channel = channel; in cfg80211_inform_single_bss_data()
2255 tmp.pub.signal = drv_data->signal; in cfg80211_inform_single_bss_data()
2257 tmp.pub.signal = 0; in cfg80211_inform_single_bss_data()
2258 tmp.pub.beacon_interval = data->beacon_interval; in cfg80211_inform_single_bss_data()
2259 tmp.pub.capability = data->capability; in cfg80211_inform_single_bss_data()
2263 tmp.pub.chains = drv_data->chains; in cfg80211_inform_single_bss_data()
2264 memcpy(tmp.pub.chain_signal, drv_data->chain_signal, in cfg80211_inform_single_bss_data()
2266 tmp.pub.use_for = data->use_for; in cfg80211_inform_single_bss_data()
2267 tmp.pub.cannot_use_reasons = data->cannot_use_reasons; in cfg80211_inform_single_bss_data()
2272 tmp.pub.transmitted_bss = data->source_bss; in cfg80211_inform_single_bss_data()
2276 tmp.pub.bssid_index = data->bssid_index; in cfg80211_inform_single_bss_data()
2277 tmp.pub.max_bssid_indicator = data->max_bssid_indicator; in cfg80211_inform_single_bss_data()
2319 rcu_assign_pointer(tmp.pub.beacon_ies, ies); in cfg80211_inform_single_bss_data()
2322 rcu_assign_pointer(tmp.pub.proberesp_ies, ies); in cfg80211_inform_single_bss_data()
2325 rcu_assign_pointer(tmp.pub.ies, ies); in cfg80211_inform_single_bss_data()
2333 rdev_inform_bss(rdev, &res->pub, ies, drv_data->drv_data); in cfg80211_inform_single_bss_data()
2339 if (cfg80211_add_nontrans_list(data->source_bss, &res->pub)) { in cfg80211_inform_single_bss_data()
2351 trace_cfg80211_return_bss(&res->pub); in cfg80211_inform_single_bss_data()
2353 return &res->pub; in cfg80211_inform_single_bss_data()
3290 void cfg80211_ref_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_ref_bss() argument
3294 if (!pub) in cfg80211_ref_bss()
3298 bss_ref_get(rdev, bss_from_pub(pub)); in cfg80211_ref_bss()
3303 void cfg80211_put_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_put_bss() argument
3307 if (!pub) in cfg80211_put_bss()
3311 bss_ref_put(rdev, bss_from_pub(pub)); in cfg80211_put_bss()
3316 void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub) in cfg80211_unlink_bss() argument
3322 if (WARN_ON(!pub)) in cfg80211_unlink_bss()
3325 bss = bss_from_pub(pub); in cfg80211_unlink_bss()
3332 &pub->nontrans_list, in cfg80211_unlink_bss()
3359 if (!chandef || cfg80211_is_sub_chan(chandef, bss->pub.channel, in cfg80211_bss_iter()
3361 iter(wiphy, &bss->pub, iter_data); in cfg80211_bss_iter()
3386 if (cbss->pub.channel == chan) in cfg80211_update_assoc_bss_entry()
3390 if (cbss->pub.transmitted_bss) in cfg80211_update_assoc_bss_entry()
3391 cbss = bss_from_pub(cbss->pub.transmitted_bss); in cfg80211_update_assoc_bss_entry()
3393 cbss->pub.channel = chan; in cfg80211_update_assoc_bss_entry()
3396 if (!cfg80211_bss_type_match(bss->pub.capability, in cfg80211_update_assoc_bss_entry()
3397 bss->pub.channel->band, in cfg80211_update_assoc_bss_entry()
3404 if (!cmp_bss(&bss->pub, &cbss->pub, BSS_CMP_REGULAR)) { in cfg80211_update_assoc_bss_entry()
3413 new->pub.proberesp_ies = NULL; in cfg80211_update_assoc_bss_entry()
3414 new->pub.beacon_ies = NULL; in cfg80211_update_assoc_bss_entry()
3417 &new->pub.nontrans_list, in cfg80211_update_assoc_bss_entry()
3431 &cbss->pub.nontrans_list, in cfg80211_update_assoc_bss_entry()
3434 bss->pub.channel = chan; in cfg80211_update_assoc_bss_entry()
3666 memcpy(iwe.u.ap_addr.sa_data, bss->pub.bssid, ETH_ALEN); in ieee80211_bss()
3674 iwe.u.freq.m = ieee80211_frequency_to_channel(bss->pub.channel->center_freq); in ieee80211_bss()
3683 iwe.u.freq.m = bss->pub.channel->center_freq; in ieee80211_bss()
3698 sig = bss->pub.signal / 100; in ieee80211_bss()
3709 iwe.u.qual.level = bss->pub.signal; in ieee80211_bss()
3711 iwe.u.qual.qual = bss->pub.signal; in ieee80211_bss()
3726 if (bss->pub.capability & WLAN_CAPABILITY_PRIVACY) in ieee80211_bss()
3737 ies = rcu_dereference(bss->pub.ies); in ieee80211_bss()
3871 if (bss->pub.capability & (WLAN_CAPABILITY_ESS | WLAN_CAPABILITY_IBSS) || in ieee80211_bss()
3877 else if (bss->pub.capability & WLAN_CAPABILITY_ESS) in ieee80211_bss()