Lines Matching refs:new
1567 struct cfg80211_internal_bss *new) in cfg80211_combine_bsses() argument
1576 ies = rcu_access_pointer(new->pub.beacon_ies); in cfg80211_combine_bsses()
1604 if (!ether_addr_equal(bss->pub.bssid, new->pub.bssid)) in cfg80211_combine_bsses()
1606 if (bss->pub.channel != new->pub.channel) in cfg80211_combine_bsses()
1608 if (bss->pub.scan_width != new->pub.scan_width) in cfg80211_combine_bsses()
1625 list_add(&bss->hidden_list, &new->hidden_list); in cfg80211_combine_bsses()
1626 bss->pub.hidden_beacon_bss = &new->pub; in cfg80211_combine_bsses()
1627 new->refcount += bss->refcount; in cfg80211_combine_bsses()
1629 new->pub.beacon_ies); in cfg80211_combine_bsses()
1665 struct cfg80211_internal_bss *new, in cfg80211_update_known_bss() argument
1671 if (rcu_access_pointer(new->pub.proberesp_ies)) { in cfg80211_update_known_bss()
1677 new->pub.proberesp_ies); in cfg80211_update_known_bss()
1680 new->pub.proberesp_ies); in cfg80211_update_known_bss()
1683 } else if (rcu_access_pointer(new->pub.beacon_ies)) { in cfg80211_update_known_bss()
1699 f = rcu_access_pointer(new->pub.beacon_ies); in cfg80211_update_known_bss()
1706 rcu_assign_pointer(known->pub.beacon_ies, new->pub.beacon_ies); in cfg80211_update_known_bss()
1710 rcu_assign_pointer(known->pub.ies, new->pub.beacon_ies); in cfg80211_update_known_bss()
1713 rcu_access_pointer(new->pub.beacon_ies), in cfg80211_update_known_bss()
1720 known->pub.beacon_interval = new->pub.beacon_interval; in cfg80211_update_known_bss()
1726 known->pub.signal = new->pub.signal; in cfg80211_update_known_bss()
1727 known->pub.capability = new->pub.capability; in cfg80211_update_known_bss()
1728 known->ts = new->ts; in cfg80211_update_known_bss()
1729 known->ts_boottime = new->ts_boottime; in cfg80211_update_known_bss()
1730 known->parent_tsf = new->parent_tsf; in cfg80211_update_known_bss()
1731 known->pub.chains = new->pub.chains; in cfg80211_update_known_bss()
1732 memcpy(known->pub.chain_signal, new->pub.chain_signal, in cfg80211_update_known_bss()
1734 ether_addr_copy(known->parent_bssid, new->parent_bssid); in cfg80211_update_known_bss()
1735 known->pub.max_bssid_indicator = new->pub.max_bssid_indicator; in cfg80211_update_known_bss()
1736 known->pub.bssid_index = new->pub.bssid_index; in cfg80211_update_known_bss()
1767 struct cfg80211_internal_bss *new; in cfg80211_bss_update() local
1776 new = kzalloc(sizeof(*new) + rdev->wiphy.bss_priv_size, in cfg80211_bss_update()
1778 if (!new) { in cfg80211_bss_update()
1787 memcpy(new, tmp, sizeof(*new)); in cfg80211_bss_update()
1788 new->refcount = 1; in cfg80211_bss_update()
1789 INIT_LIST_HEAD(&new->hidden_list); in cfg80211_bss_update()
1790 INIT_LIST_HEAD(&new->pub.nontrans_list); in cfg80211_bss_update()
1792 new->pub.transmitted_bss = NULL; in cfg80211_bss_update()
1800 new->pub.hidden_beacon_bss = &hidden->pub; in cfg80211_bss_update()
1801 list_add(&new->hidden_list, in cfg80211_bss_update()
1805 ies = (void *)rcu_access_pointer(new->pub.beacon_ies); in cfg80211_bss_update()
1806 rcu_assign_pointer(new->pub.beacon_ies, in cfg80211_bss_update()
1818 if (!cfg80211_combine_bsses(rdev, new)) { in cfg80211_bss_update()
1819 bss_ref_put(rdev, new); in cfg80211_bss_update()
1826 bss_ref_put(rdev, new); in cfg80211_bss_update()
1837 new->pub.transmitted_bss = tmp->pub.transmitted_bss; in cfg80211_bss_update()
1841 list_add_tail(&new->list, &rdev->bss_list); in cfg80211_bss_update()
1843 rb_insert_bss(rdev, new); in cfg80211_bss_update()
1844 found = new; in cfg80211_bss_update()
2648 struct cfg80211_internal_bss *new = NULL; in cfg80211_update_assoc_bss_entry() local
2680 new = bss; in cfg80211_update_assoc_bss_entry()
2685 if (new) { in cfg80211_update_assoc_bss_entry()
2687 if (cfg80211_update_known_bss(rdev, cbss, new, false)) { in cfg80211_update_assoc_bss_entry()
2688 new->pub.proberesp_ies = NULL; in cfg80211_update_assoc_bss_entry()
2689 new->pub.beacon_ies = NULL; in cfg80211_update_assoc_bss_entry()
2693 &new->pub.nontrans_list, in cfg80211_update_assoc_bss_entry()
2701 WARN_ON(atomic_read(&new->hold)); in cfg80211_update_assoc_bss_entry()
2702 if (!WARN_ON(!__cfg80211_unlink_bss(rdev, new))) in cfg80211_update_assoc_bss_entry()