Lines Matching refs:links

278 			cr.links[0].bssid = bssid;  in cfg80211_conn_work()
387 cr.links[0].bssid = mgmt->bssid; in cfg80211_sme_rx_auth()
479 if (!wdev->links[link].client.current_bss) in cfg80211_wdev_release_bsses()
481 cfg80211_unhold_bss(wdev->links[link].client.current_bss); in cfg80211_wdev_release_bsses()
483 &wdev->links[link].client.current_bss->pub); in cfg80211_wdev_release_bsses()
484 wdev->links[link].client.current_bss = NULL; in cfg80211_wdev_release_bsses()
708 if (!cr->links[link].bss) in cfg80211_connect_result_release_bsses()
710 cfg80211_unhold_bss(bss_from_pub(cr->links[link].bss)); in cfg80211_connect_result_release_bsses()
711 cfg80211_put_bss(wdev->wiphy, cr->links[link].bss); in cfg80211_connect_result_release_bsses()
747 if (WARN_ON(!cr->links[link].addr)) in __cfg80211_connect_result()
758 connected_addr = cr->valid_links ? cr->ap_mld_addr : cr->links[0].bssid; in __cfg80211_connect_result()
790 if (WARN_ON_ONCE(!cr->links[link].bss)) in __cfg80211_connect_result()
796 if (cr->links[link].bss) in __cfg80211_connect_result()
799 cr->links[link].bss = in __cfg80211_connect_result()
801 cr->links[link].bssid, in __cfg80211_connect_result()
806 if (!cr->links[link].bss) { in __cfg80211_connect_result()
810 cfg80211_hold_bss(bss_from_pub(cr->links[link].bss)); in __cfg80211_connect_result()
831 memset(wdev->links, 0, sizeof(wdev->links)); in __cfg80211_connect_result()
834 wdev->links[link].client.current_bss = in __cfg80211_connect_result()
835 bss_from_pub(cr->links[link].bss); in __cfg80211_connect_result()
840 memcpy(wdev->links[link].addr, cr->links[link].addr, in __cfg80211_connect_result()
850 ieee80211_bss_get_elem(cr->links[link].bss, in __cfg80211_connect_result()
868 cr->links[link].bss->channel->band, in __cfg80211_connect_result()
875 cfg80211_put_bss(wdev->wiphy, cr->links[link].bss); in __cfg80211_connect_result()
934 cfg80211_update_link_bss(wdev, &params->links[link].bss); in cfg80211_connect_done()
935 link_info_size += params->links[link].bssid ? ETH_ALEN : 0; in cfg80211_connect_done()
936 link_info_size += params->links[link].addr ? ETH_ALEN : 0; in cfg80211_connect_done()
948 params->links[link].bss); in cfg80211_connect_done()
999 if (params->links[link].bss) in cfg80211_connect_done()
1001 bss_from_pub(params->links[link].bss)); in cfg80211_connect_done()
1002 ev->cr.links[link].bss = params->links[link].bss; in cfg80211_connect_done()
1004 if (params->links[link].addr) { in cfg80211_connect_done()
1005 ev->cr.links[link].addr = next; in cfg80211_connect_done()
1006 memcpy((void *)ev->cr.links[link].addr, in cfg80211_connect_done()
1007 params->links[link].addr, in cfg80211_connect_done()
1011 if (params->links[link].bssid) { in cfg80211_connect_done()
1012 ev->cr.links[link].bssid = next; in cfg80211_connect_done()
1013 memcpy((void *)ev->cr.links[link].bssid, in cfg80211_connect_done()
1014 params->links[link].bssid, in cfg80211_connect_done()
1053 if (WARN_ON(!info->links[link].addr)) in __cfg80211_roamed()
1061 if (WARN_ON(!info->links[link].bss)) in __cfg80211_roamed()
1065 memset(wdev->links, 0, sizeof(wdev->links)); in __cfg80211_roamed()
1068 cfg80211_hold_bss(bss_from_pub(info->links[link].bss)); in __cfg80211_roamed()
1069 wdev->links[link].client.current_bss = in __cfg80211_roamed()
1070 bss_from_pub(info->links[link].bss); in __cfg80211_roamed()
1075 info->links[0].bss->bssid; in __cfg80211_roamed()
1079 memcpy(wdev->links[link].addr, info->links[link].addr, in __cfg80211_roamed()
1114 cfg80211_put_bss(wdev->wiphy, info->links[link].bss); in __cfg80211_roamed()
1131 link_info_size += info->links[link].addr ? ETH_ALEN : 0; in cfg80211_roamed()
1132 link_info_size += info->links[link].bssid ? ETH_ALEN : 0; in cfg80211_roamed()
1134 if (info->links[link].bss) in cfg80211_roamed()
1137 info->links[link].bss = in cfg80211_roamed()
1139 info->links[link].channel, in cfg80211_roamed()
1140 info->links[link].bssid, in cfg80211_roamed()
1146 if (!info->links[link].bss) { in cfg80211_roamed()
1208 ev->rm.links[link].bss = info->links[link].bss; in cfg80211_roamed()
1210 if (info->links[link].addr) { in cfg80211_roamed()
1211 ev->rm.links[link].addr = next; in cfg80211_roamed()
1212 memcpy((void *)ev->rm.links[link].addr, in cfg80211_roamed()
1213 info->links[link].addr, in cfg80211_roamed()
1218 if (info->links[link].bssid) { in cfg80211_roamed()
1219 ev->rm.links[link].bssid = next; in cfg80211_roamed()
1220 memcpy((void *)ev->rm.links[link].bssid, in cfg80211_roamed()
1221 info->links[link].bssid, in cfg80211_roamed()
1235 cfg80211_put_bss(wdev->wiphy, info->links[link].bss); in cfg80211_roamed()