Lines Matching refs:wl_linfo

706 	struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info;  in _reset_btc_var()  local
727 memset(wl_linfo[i].rssi_state, 0, in _reset_btc_var()
728 sizeof(wl_linfo[i].rssi_state)); in _reset_btc_var()
4481 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info() local
4493 if (!wl_linfo[i].active) in _update_wl_info()
4497 wl_rinfo->active_role[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info()
4498 wl_rinfo->active_role[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info()
4499 wl_rinfo->active_role[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info()
4500 wl_rinfo->active_role[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info()
4501 wl_rinfo->active_role[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info()
4504 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info()
4506 phy = wl_linfo[i].phy; in _update_wl_info()
4510 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info()
4511 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info()
4516 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info()
4518 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info()
4522 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info()
4523 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info()
4524 wl_linfo[i].client_cnt > 1) in _update_wl_info()
4528 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info()
4529 wl_rinfo->active_role[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info()
4530 wl_rinfo->active_role[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info()
4534 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info()
4536 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info()
4541 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info()
4632 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info_v1() local
4644 if (!wl_linfo[i].active) in _update_wl_info_v1()
4648 wl_rinfo->active_role_v1[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info_v1()
4649 wl_rinfo->active_role_v1[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info_v1()
4650 wl_rinfo->active_role_v1[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info_v1()
4651 wl_rinfo->active_role_v1[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info_v1()
4652 wl_rinfo->active_role_v1[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info_v1()
4655 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info_v1()
4657 phy = wl_linfo[i].phy; in _update_wl_info_v1()
4660 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info_v1()
4661 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info_v1()
4666 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info_v1()
4668 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info_v1()
4672 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v1()
4673 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info_v1()
4674 wl_linfo[i].client_cnt > 1) in _update_wl_info_v1()
4678 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info_v1()
4679 wl_rinfo->active_role_v1[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info_v1()
4680 wl_rinfo->active_role_v1[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info_v1()
4684 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info_v1()
4686 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info_v1()
4691 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info_v1()
4782 struct rtw89_btc_wl_link_info *wl_linfo = wl->link_info; in _update_wl_info_v2() local
4794 if (!wl_linfo[i].active) in _update_wl_info_v2()
4798 wl_rinfo->active_role_v2[cnt_active - 1].role = wl_linfo[i].role; in _update_wl_info_v2()
4799 wl_rinfo->active_role_v2[cnt_active - 1].pid = wl_linfo[i].pid; in _update_wl_info_v2()
4800 wl_rinfo->active_role_v2[cnt_active - 1].phy = wl_linfo[i].phy; in _update_wl_info_v2()
4801 wl_rinfo->active_role_v2[cnt_active - 1].band = wl_linfo[i].band; in _update_wl_info_v2()
4802 wl_rinfo->active_role_v2[cnt_active - 1].noa = (u8)wl_linfo[i].noa; in _update_wl_info_v2()
4805 wl->port_id[wl_linfo[i].role] = wl_linfo[i].pid; in _update_wl_info_v2()
4807 phy = wl_linfo[i].phy; in _update_wl_info_v2()
4810 wl_dinfo->role[phy] = wl_linfo[i].role; in _update_wl_info_v2()
4811 wl_dinfo->op_band[phy] = wl_linfo[i].band; in _update_wl_info_v2()
4816 if (wl_linfo[i].connected == MLME_NO_LINK) { in _update_wl_info_v2()
4818 } else if (wl_linfo[i].connected == MLME_LINKING) { in _update_wl_info_v2()
4822 if ((wl_linfo[i].role == RTW89_WIFI_ROLE_P2P_GO || in _update_wl_info_v2()
4823 wl_linfo[i].role == RTW89_WIFI_ROLE_AP) && in _update_wl_info_v2()
4824 wl_linfo[i].client_cnt > 1) in _update_wl_info_v2()
4828 wl_rinfo->role_map.val |= BIT(wl_linfo[i].role); in _update_wl_info_v2()
4829 wl_rinfo->active_role_v2[cnt_active - 1].ch = wl_linfo[i].ch; in _update_wl_info_v2()
4830 wl_rinfo->active_role_v2[cnt_active - 1].bw = wl_linfo[i].bw; in _update_wl_info_v2()
4834 if (wl_linfo[i].band != RTW89_BAND_2G) { in _update_wl_info_v2()
4836 wl_5g_ch[cnt_5g] = wl_linfo[i].ch; in _update_wl_info_v2()
4841 wl_2g_ch[cnt_2g] = wl_linfo[i].ch; in _update_wl_info_v2()