Lines Matching refs:wl_linfo

821 	struct rtw89_btc_wl_link_info *wl_linfo;  in _reset_btc_var()  local
845 wl_linfo = &wl->rlink_info[i][0]; in _reset_btc_var()
847 wl_linfo = &wl->link_info[i]; in _reset_btc_var()
848 memset(wl_linfo->rssi_state, 0, sizeof(wl_linfo->rssi_state)); in _reset_btc_var()
5704 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info() local
5716 if (!wl_linfo[i].active) in _update_wl_info()
5720 wl_rinfo->active_role[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info()
5721 wl_rinfo->active_role[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info()
5722 wl_rinfo->active_role[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info()
5723 wl_rinfo->active_role[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info()
5724 wl_rinfo->active_role[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info()
5727 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info()
5729 phy = wl_linfo[i].phy; in _update_wl_info()
5733 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info()
5734 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info()
5739 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info()
5741 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info()
5745 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info()
5746 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info()
5747 wl_linfo[i].client_cnt > 1) in _update_wl_info()
5751 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info()
5752 wl_rinfo->active_role[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info()
5753 wl_rinfo->active_role[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info()
5757 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info()
5759 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info()
5764 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info()
5855 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info_v1() local
5867 if (!wl_linfo[i].active) in _update_wl_info_v1()
5871 wl_rinfo->active_role_v1[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info_v1()
5872 wl_rinfo->active_role_v1[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info_v1()
5873 wl_rinfo->active_role_v1[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info_v1()
5874 wl_rinfo->active_role_v1[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info_v1()
5875 wl_rinfo->active_role_v1[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info_v1()
5878 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info_v1()
5880 phy = wl_linfo[i].phy; in _update_wl_info_v1()
5883 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info_v1()
5884 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info_v1()
5889 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info_v1()
5891 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info_v1()
5895 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v1()
5896 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info_v1()
5897 wl_linfo[i].client_cnt > 1) in _update_wl_info_v1()
5901 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info_v1()
5902 wl_rinfo->active_role_v1[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info_v1()
5903 wl_rinfo->active_role_v1[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info_v1()
5907 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info_v1()
5909 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info_v1()
5914 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info_v1()
6005 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info_v2() local
6017 if (!wl_linfo[i].active) in _update_wl_info_v2()
6021 wl_rinfo->active_role_v2[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info_v2()
6022 wl_rinfo->active_role_v2[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info_v2()
6023 wl_rinfo->active_role_v2[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info_v2()
6024 wl_rinfo->active_role_v2[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info_v2()
6025 wl_rinfo->active_role_v2[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info_v2()
6028 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info_v2()
6030 phy = wl_linfo[i].phy; in _update_wl_info_v2()
6033 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info_v2()
6034 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info_v2()
6039 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info_v2()
6041 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info_v2()
6045 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v2()
6046 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info_v2()
6047 wl_linfo[i].client_cnt > 1) in _update_wl_info_v2()
6051 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info_v2()
6052 wl_rinfo->active_role_v2[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info_v2()
6053 wl_rinfo->active_role_v2[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info_v2()
6057 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info_v2()
6059 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info_v2()
6064 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info_v2()
6321 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info_v7() local
6334 if (!wl_linfo[i].active || wl_linfo[i].phy >= RTW89_PHY_MAX) in _update_wl_info_v7()
6338 act_role->role = wl_linfo[i].role; in _update_wl_info_v7()
6341 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info_v7()
6344 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info_v7()
6350 act_role->pid = wl_linfo[i].pid; in _update_wl_info_v7()
6351 act_role->phy = wl_linfo[i].phy; in _update_wl_info_v7()
6352 act_role->band = wl_linfo[i].band; in _update_wl_info_v7()
6353 act_role->ch = wl_linfo[i].ch; in _update_wl_info_v7()
6354 act_role->bw = wl_linfo[i].bw; in _update_wl_info_v7()
6355 act_role->noa = wl_linfo[i].noa; in _update_wl_info_v7()
6356 act_role->noa_dur = wl_linfo[i].noa_duration; in _update_wl_info_v7()
6357 cid_ch[cnt - 1] = wl_linfo[i].chdef; in _update_wl_info_v7()
6358 cid_phy[cnt - 1] = wl_linfo[i].phy; in _update_wl_info_v7()
6359 cid_role[cnt - 1] = wl_linfo[i].role; in _update_wl_info_v7()
6360 wl_rinfo->role_map |= BIT(wl_linfo[i].role); in _update_wl_info_v7()
6365 if (wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v7()
6366 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) { in _update_wl_info_v7()
6367 if (wl_linfo[i].client_cnt > 1) in _update_wl_info_v7()
6369 if (client_cnt_last[i] < wl_linfo[i].client_cnt && in _update_wl_info_v7()
6370 wl_linfo[i].chdef.band == RTW89_BAND_2G) in _update_wl_info_v7()
6372 act_role->client_cnt = wl_linfo[i].client_cnt; in _update_wl_info_v7()
6381 phy_dbcc = wl_linfo[i].phy; in _update_wl_info_v7()
6382 wl_dinfo->role[phy_dbcc] |= BIT(wl_linfo[i].role); in _update_wl_info_v7()
6383 wl_dinfo->op_band[phy_dbcc] = wl_linfo[i].chdef.band; in _update_wl_info_v7()
6386 if (wl_linfo[i].chdef.band != RTW89_BAND_2G) { in _update_wl_info_v7()
6390 if (((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v7()
6391 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info_v7()
6393 wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_CLIENT) in _update_wl_info_v7()
6396 if ((wl_linfo[i].mode & BIT(BTC_WL_MODE_11B)) || in _update_wl_info_v7()
6397 (wl_linfo[i].mode & BIT(BTC_WL_MODE_11G))) in _update_wl_info_v7()
6399 else if (wl_linfo[i].mode & BIT(BTC_WL_MODE_HE)) in _update_wl_info_v7()
6483 struct rtw89_btc_wl_link_info *wl_linfo; in _update_wl_info_v8() local
6498 wl_linfo = &wl->rlink_info[role_id][rlink_id]; in _update_wl_info_v8()
6499 if (wl_linfo->connected == MLME_LINKING) in _update_wl_info_v8()
6503 rlink->role = wl_linfo->role; in _update_wl_info_v8()
6504 rlink->active = wl_linfo->active; /* Doze or not */ in _update_wl_info_v8()
6505 rlink->pid = wl_linfo->pid; in _update_wl_info_v8()
6506 rlink->phy = wl_linfo->phy; in _update_wl_info_v8()
6507 rlink->rf_band = wl_linfo->band; in _update_wl_info_v8()
6508 rlink->ch = wl_linfo->ch; in _update_wl_info_v8()
6509 rlink->bw = wl_linfo->bw; in _update_wl_info_v8()
6510 rlink->noa = wl_linfo->noa; in _update_wl_info_v8()
6511 rlink->noa_dur = wl_linfo->noa_duration / 1000; in _update_wl_info_v8()
6512 rlink->client_cnt = wl_linfo->client_cnt; in _update_wl_info_v8()
6513 rlink->mode = wl_linfo->mode; in _update_wl_info_v8()
6515 switch (wl_linfo->connected) { in _update_wl_info_v8()
6570 cid_ch[cnt - 1] = wl_linfo->chdef; in _update_wl_info_v8()