Lines Matching full:role
61 PHL_INFO("\t[CH-CTX] role num:%d map:0x%02x, DFS enable:%s\n", in phl_mr_dump_chctx_info()
89 PHL_INFO("\t[BAND-%d] op_mode:%s port map:0x%02x, role num:%d map:0x%02x\n", in phl_mr_dump_band_info()
217 PHL_ERR("%s wifi role(%d) chan ctx is null\n", __func__, wrole->id); in _search_ld_sta_wrole()
234 PHL_INFO("search Linked STA wifi role (%d)\n", wr->id); in _search_ld_sta_wrole()
330 PHL_ERR("%s role notify failed\n", __func__); in _phl_mrc_module_connect_start_hdlr()
376 PHL_ERR("%s role notify failed\n", __func__); in _phl_mrc_module_connect_end_hdlr()
423 /* disable NoA for this role */ in _phl_mrc_module_disconnect_pre_hdlr()
461 RTW_ERR("%s - change to phl role type = %d fail with error = %d\n", __func__, rtype, psts); in _phl_mrc_module_disconnect_hdlr()
470 PHL_ERR("%s role notify failed\n", __func__); in _phl_mrc_module_disconnect_hdlr()
547 PHL_ERR("%s role notify failed\n", __func__); in _phl_mrc_module_ap_started_hdlr()
589 /* disable NoA for this role */ in _phl_mrc_module_ap_stop_pre_hdlr()
622 PHL_ERR("%s role notify failed\n", __func__); in _phl_mrc_module_ap_stop_hdlr()
660 struct rtw_wifi_role_t *role = NULL; in _phl_mrc_module_swch_start_hdlr() local
691 "Query wifi role fail!\n"); in _phl_mrc_module_swch_start_hdlr()
694 role = (struct rtw_wifi_role_t *)op_info.outbuf; in _phl_mrc_module_swch_start_hdlr()
696 if(role == NULL){ in _phl_mrc_module_swch_start_hdlr()
698 "%s: role is NULL\n", __FUNCTION__); in _phl_mrc_module_swch_start_hdlr()
709 chandef = mr_ctl->hal_com->band[role->hw_band].cur_chandef; in _phl_mrc_module_swch_start_hdlr()
711 if(role->chandef.chan == chandef.chan){ in _phl_mrc_module_swch_start_hdlr()
748 role, in _phl_mrc_module_swch_start_hdlr()
767 struct rtw_wifi_role_t *role = NULL; in _phl_mrc_module_swch_done_hdlr() local
793 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _phl_mrc_module_swch_done_hdlr()
812 role, in _phl_mrc_module_swch_done_hdlr()
958 PHL_ERR("%s role notify failed\n", __func__); in _mrc_module_chg_op_chdef_end_hdlr()
1038 struct rtw_wifi_role_t *role = NULL; in _mrc_module_msg_post_hdl() local
1075 role = (struct rtw_wifi_role_t *)msg->inbuf; in _mrc_module_msg_post_hdl()
1076 if (role == NULL) { in _mrc_module_msg_post_hdl()
1078 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1081 if (_phl_mrc_module_tsf_sync_done_hdlr(phl_info, role) != RTW_PHL_STATUS_SUCCESS) { in _mrc_module_msg_post_hdl()
1099 role = (struct rtw_wifi_role_t *)msg->inbuf; in _mrc_module_msg_post_hdl()
1101 if (role == NULL) { in _mrc_module_msg_post_hdl()
1103 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1107 if (phl_mr_info_upt(phl_info, role) != RTW_PHL_STATUS_SUCCESS) { in _mrc_module_msg_post_hdl()
1120 * MR resume the tx of the role in remain chanctx in _mrc_module_msg_post_hdl()
1124 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1125 if (role == NULL) { in _mrc_module_msg_post_hdl()
1127 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1133 role, in _mrc_module_msg_post_hdl()
1152 "Query wifi role fail!\n"); in _mrc_module_msg_post_hdl()
1155 role = (struct rtw_wifi_role_t *)op_info.outbuf; in _mrc_module_msg_post_hdl()
1156 if (role == NULL) { in _mrc_module_msg_post_hdl()
1158 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1162 if (_phl_mrc_module_connect_start_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1167 role->hw_band); in _mrc_module_msg_post_hdl()
1182 "Query wifi role fail!\n"); in _mrc_module_msg_post_hdl()
1185 role = (struct rtw_wifi_role_t *)op_info.outbuf; in _mrc_module_msg_post_hdl()
1186 if (role == NULL) { in _mrc_module_msg_post_hdl()
1188 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1191 if (_phl_mrc_module_connect_end_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1196 role->hw_band); in _mrc_module_msg_post_hdl()
1208 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1209 if (role == NULL) { in _mrc_module_msg_post_hdl()
1211 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1214 if (_phl_mrc_module_disconnect_pre_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1219 rtw_phl_twt_disable_all_twt_by_role(phl_info, role); in _mrc_module_msg_post_hdl()
1233 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1234 if (role == NULL) { in _mrc_module_msg_post_hdl()
1236 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1239 if (_phl_mrc_module_disconnect_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1257 "Query wifi role fail!\n"); in _mrc_module_msg_post_hdl()
1260 role = (struct rtw_wifi_role_t *)op_info.outbuf; in _mrc_module_msg_post_hdl()
1261 if (role == NULL){ in _mrc_module_msg_post_hdl()
1263 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1266 if (_phl_mrc_module_ap_start_pre_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1284 "Query wifi role fail!\n"); in _mrc_module_msg_post_hdl()
1287 role = (struct rtw_wifi_role_t *)op_info.outbuf; in _mrc_module_msg_post_hdl()
1288 if (role == NULL) { in _mrc_module_msg_post_hdl()
1290 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1293 if (_phl_mrc_module_ap_started_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1308 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1309 if (role == NULL) { in _mrc_module_msg_post_hdl()
1311 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1322 if (_phl_mrc_module_ap_stop_hdlr(phl_info, role) in _mrc_module_msg_post_hdl()
1338 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1339 if (role == NULL) { in _mrc_module_msg_post_hdl()
1341 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1344 if (_phl_mrc_module_ap_stop_pre_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1359 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1360 if (role == NULL) { in _mrc_module_msg_post_hdl()
1362 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1365 if (_phl_mrc_module_ap_stop_hdlr(phl_info, role) != in _mrc_module_msg_post_hdl()
1378 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1380 if (phl_mr_coex_disable(phl_info, role, role->hw_band, in _mrc_module_msg_post_hdl()
1384 phl_p2pps_noa_pause_all(phl_info, role); in _mrc_module_msg_post_hdl()
1400 role, in _mrc_module_msg_post_hdl()
1413 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1414 if (role == NULL) { in _mrc_module_msg_post_hdl()
1416 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1420 role, in _mrc_module_msg_post_hdl()
1428 phl_set_ch_bw(role, &chandef, false); in _mrc_module_msg_post_hdl()
1436 role, in _mrc_module_msg_post_hdl()
1441 phl_p2pps_noa_resume_all(phl_info, role); in _mrc_module_msg_post_hdl()
1444 if (phl_mr_coex_handle(phl_info, role, 0, role->hw_band, in _mrc_module_msg_post_hdl()
1460 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1462 if (role == NULL) { in _mrc_module_msg_post_hdl()
1464 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1468 if (phl_mr_coex_disable(phl_info, role, role->hw_band, in _mrc_module_msg_post_hdl()
1485 role = (struct rtw_wifi_role_t *)msg->rsvd[0]; in _mrc_module_msg_post_hdl()
1487 if (role == NULL) { in _mrc_module_msg_post_hdl()
1489 "%s: role is NULL\n", __FUNCTION__); in _mrc_module_msg_post_hdl()
1492 phl_mr_stop_all_beacon(phl_info, role, false); in _mrc_module_msg_post_hdl()
1496 if (phl_mr_coex_handle(phl_info, role, 0, in _mrc_module_msg_post_hdl()
1497 role->hw_band, MR_COEX_TRIG_BY_ECSA) in _mrc_module_msg_post_hdl()
1505 if (RTW_PHL_STATUS_SUCCESS != phl_role_notify(phl_info, role)) { in _mrc_module_msg_post_hdl()
1506 PHL_ERR("%s role notify failed\n", __func__); in _mrc_module_msg_post_hdl()
1619 struct rtw_wifi_role_t *role = NULL; in phl_mr_ctrl_init() local
1638 role = &(phl_com->wifi_roles[ridx]); in phl_mr_ctrl_init()
1639 pq_init(drv, &role->assoc_sta_queue); in phl_mr_ctrl_init()
1640 role->phl_com = phl_com; in phl_mr_ctrl_init()
1641 role->id = ridx; in phl_mr_ctrl_init()
1642 role->active = false; in phl_mr_ctrl_init()
1643 role->chanctx = NULL; in phl_mr_ctrl_init()
1676 struct rtw_wifi_role_t *role; in phl_mr_ctrl_deinit() local
1684 role = &(phl_com->wifi_roles[ridx]); in phl_mr_ctrl_deinit()
1685 pq_deinit(drv, &role->assoc_sta_queue); in phl_mr_ctrl_deinit()
1781 * @wrole: specific role, and we can get original chdef.
2036 PHL_WARN("%s: state%d wifi role (id=%d)chanctx=NULL\n", __func__, state, wrole->id); in phl_mr_tsf_sync()
2082 PHL_WARN("%s: state%d wifi role (id=%d)chanctx=NULL\n", __func__, state, wrole->id); in phl_mr_tsf_sync()
2179 PHL_WARN("%s: state%d wifi role (id=%d)chanctx=NULL\n", __func__, state, wrole->id); in phl_mr_tsf_sync()
2473 struct rtw_wifi_role_t *role = NULL; in phl_mr_info_dbg() local
2477 role = &(phl_com->wifi_roles[ridx]); in phl_mr_info_dbg()
2478 if (role->assoc_sta_queue.cnt) { in phl_mr_info_dbg()
2481 ridx, role->assoc_sta_queue.cnt); in phl_mr_info_dbg()
2518 * check all role state
2653 /* find any existed role */
2683 /* find existed tdmra role */ in _phl_mr_tdmra_disable()
2686 PHL_ERR("%s: find no tdmra role for tdmra disable\n", __func__); in _phl_mr_tdmra_disable()
2729 PHL_TRACE(COMP_PHL_DBG, _PHL_WARNING_, "%s: Fail to check role state\n", in _phl_mr_tdmra_handle()
2742 /* find existed tdmra role */ in _phl_mr_tdmra_handle()
2743 info.role = _mr_find_existed_role(phl_info, band_idx); in _phl_mr_tdmra_handle()
2745 if (info.role != NULL) in _phl_mr_tdmra_handle()
2748 PHL_ERR("%s: find no tdmra role for tdmra duration change\n", __func__); in _phl_mr_tdmra_handle()
2771 /* find any existed role to trigger TDMRA */ in _phl_mr_tdmra_handle()
2780 /* find existed tdmra role */ in _phl_mr_tdmra_handle()
2781 info.role = _mr_find_existed_role(phl_info, band_idx); in _phl_mr_tdmra_handle()
2783 if (info.role != NULL) in _phl_mr_tdmra_handle()
2786 PHL_ERR("%s: find no tdmra role\n", __func__); in _phl_mr_tdmra_handle()
3293 PHL_TRACE(COMP_PHL_ECSA, _PHL_WARNING_, "[ECSA] Sta role not found!\n"); in phl_mr_check_ecsa()
3298 PHL_TRACE(COMP_PHL_ECSA, _PHL_WARNING_, "[ECSA] AP role not found!\n"); in phl_mr_check_ecsa()
3525 /*get ap role*/ in _mr_is_2g_scc_1ap_1sta()
3657 * @cur_wrole: current role