Lines Matching refs:bss
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()
311 if (!bss) in cfg80211_get_conn_bss()
314 cfg80211_step_auth_next(wdev->conn, bss); in cfg80211_get_conn_bss()
317 return bss; in cfg80211_get_conn_bss()
324 struct cfg80211_bss *bss; in __cfg80211_sme_scan_done() local
335 bss = cfg80211_get_conn_bss(wdev); in __cfg80211_sme_scan_done()
336 if (bss) in __cfg80211_sme_scan_done()
337 cfg80211_put_bss(&rdev->wiphy, bss); in __cfg80211_sme_scan_done()
570 struct cfg80211_bss *bss; in cfg80211_sme_connect() local
621 bss = cfg80211_get_bss(wdev->wiphy, wdev->conn->params.channel, in cfg80211_sme_connect()
634 if (bss) { in cfg80211_sme_connect()
637 cfg80211_step_auth_next(wdev->conn, bss); in cfg80211_sme_connect()
639 cfg80211_put_bss(wdev->wiphy, bss); in cfg80211_sme_connect()
735 if (!cr->links[link].bss) in cfg80211_connect_result_release_bsses()
737 cfg80211_unhold_bss(bss_from_pub(cr->links[link].bss)); in cfg80211_connect_result_release_bsses()
738 cfg80211_put_bss(wdev->wiphy, cr->links[link].bss); in cfg80211_connect_result_release_bsses()
818 if (WARN_ON_ONCE(!cr->links[link].bss)) in __cfg80211_connect_result()
828 if (cr->links[link].bss) in __cfg80211_connect_result()
831 cr->links[link].bss = in __cfg80211_connect_result()
838 if (!cr->links[link].bss) { in __cfg80211_connect_result()
842 cfg80211_hold_bss(bss_from_pub(cr->links[link].bss)); in __cfg80211_connect_result()
869 if (!cr->links[link].bss) in __cfg80211_connect_result()
871 cfg80211_unhold_bss(bss_from_pub(cr->links[link].bss)); in __cfg80211_connect_result()
872 cfg80211_put_bss(wdev->wiphy, cr->links[link].bss); in __cfg80211_connect_result()
877 bss_from_pub(cr->links[link].bss); in __cfg80211_connect_result()
891 ieee80211_bss_get_elem(cr->links[link].bss, in __cfg80211_connect_result()
909 cr->links[link].bss->channel->band, in __cfg80211_connect_result()
916 ssid = ieee80211_bss_get_elem(cr->links[link].bss, in __cfg80211_connect_result()
932 cfg80211_put_bss(wdev->wiphy, cr->links[link].bss); in __cfg80211_connect_result()
936 struct cfg80211_bss **bss) in cfg80211_update_link_bss() argument
941 if (!*bss) in cfg80211_update_link_bss()
944 ibss = bss_from_pub(*bss); in cfg80211_update_link_bss()
946 struct cfg80211_bss *found = NULL, *tmp = *bss; in cfg80211_update_link_bss()
949 (*bss)->bssid, in cfg80211_update_link_bss()
958 *bss = found; in cfg80211_update_link_bss()
991 cfg80211_update_link_bss(wdev, ¶ms->links[link].bss); in cfg80211_connect_done()
1005 params->links[link].bss); in cfg80211_connect_done()
1056 if (params->links[link].bss) in cfg80211_connect_done()
1058 bss_from_pub(params->links[link].bss)); in cfg80211_connect_done()
1059 ev->cr.links[link].bss = params->links[link].bss; in cfg80211_connect_done()
1119 if (WARN_ON(!info->links[link].bss)) in __cfg80211_roamed()
1126 cfg80211_hold_bss(bss_from_pub(info->links[link].bss)); in __cfg80211_roamed()
1128 bss_from_pub(info->links[link].bss); in __cfg80211_roamed()
1133 info->links[0].bss->bssid; in __cfg80211_roamed()
1172 cfg80211_put_bss(wdev->wiphy, info->links[link].bss); in __cfg80211_roamed()
1192 if (info->links[link].bss) in cfg80211_roamed()
1195 info->links[link].bss = in cfg80211_roamed()
1204 if (!info->links[link].bss) { in cfg80211_roamed()
1266 ev->rm.links[link].bss = info->links[link].bss; in cfg80211_roamed()
1293 cfg80211_put_bss(wdev->wiphy, info->links[link].bss); in cfg80211_roamed()