Lines Matching refs:i
87 uint8_t i = 0; in mlo_get_tdls_link_vdev() local
92 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_get_tdls_link_vdev()
93 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_get_tdls_link_vdev()
96 if (wlan_vdev_mlme_is_tdls_vdev(mlo_dev_ctx->wlan_vdev_list[i])) in mlo_get_tdls_link_vdev()
97 return mlo_dev_ctx->wlan_vdev_list[i]; in mlo_get_tdls_link_vdev()
123 uint8_t i = 0; in mlo_get_assoc_link_vdev() local
128 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_get_assoc_link_vdev()
129 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_get_assoc_link_vdev()
132 if (wlan_vdev_mlme_is_mlo_vdev(mlo_dev_ctx->wlan_vdev_list[i]) && in mlo_get_assoc_link_vdev()
133 !wlan_vdev_mlme_is_mlo_link_vdev(mlo_dev_ctx->wlan_vdev_list[i])) in mlo_get_assoc_link_vdev()
134 return mlo_dev_ctx->wlan_vdev_list[i]; in mlo_get_assoc_link_vdev()
167 uint8_t i = 0; in mlo_is_mld_disconnected() local
172 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_is_mld_disconnected()
173 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_is_mld_disconnected()
176 if (!wlan_cm_is_vdev_disconnected(mlo_dev_ctx->wlan_vdev_list[i])) in mlo_is_mld_disconnected()
185 uint8_t i = 0; in mlo_is_mld_disconnecting_connecting() local
190 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_is_mld_disconnecting_connecting()
191 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_is_mld_disconnecting_connecting()
193 if (wlan_cm_is_vdev_disconnecting(mlo_dev_ctx->wlan_vdev_list[i]) || in mlo_is_mld_disconnecting_connecting()
194 wlan_cm_is_vdev_connecting(mlo_dev_ctx->wlan_vdev_list[i])) in mlo_is_mld_disconnecting_connecting()
205 uint8_t i = 0; in mlo_is_ml_connection_in_progress() local
220 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_is_ml_connection_in_progress()
221 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_is_ml_connection_in_progress()
223 if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links)) { in mlo_is_ml_connection_in_progress()
224 if (!wlan_cm_is_vdev_connected(mlo_dev_ctx->wlan_vdev_list[i])) { in mlo_is_ml_connection_in_progress()
257 uint8_t i = 0; in mlo_send_link_disconnect() local
287 for (i = 0; i < vdev_count; i++) { in mlo_send_link_disconnect()
288 if ((wlan_vdev_list[i] != assoc_vdev) && in mlo_send_link_disconnect()
289 (qdf_test_bit(i, sta_ctx->wlan_connected_links) || in mlo_send_link_disconnect()
290 (wlan_cm_is_vdev_connected(wlan_vdev_list[i]) && in mlo_send_link_disconnect()
291 !wlan_peer_is_mlo(wlan_vdev_get_bsspeer(wlan_vdev_list[i]))) || in mlo_send_link_disconnect()
292 wlan_cm_is_vdev_idle_due_to_link_switch(wlan_vdev_list[i]))) in mlo_send_link_disconnect()
293 wlan_cm_disconnect(wlan_vdev_list[i], in mlo_send_link_disconnect()
296 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_send_link_disconnect()
375 uint8_t i = 0; in mlo_is_mld_connected() local
380 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_is_mld_connected()
381 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_is_mld_connected()
384 if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links)) { in mlo_is_mld_connected()
385 if (!wlan_cm_is_vdev_connected(mlo_dev_ctx->wlan_vdev_list[i])) in mlo_is_mld_connected()
401 uint8_t i = 0; in mlo_mld_clear_mlo_cap() local
406 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_mld_clear_mlo_cap()
407 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_mld_clear_mlo_cap()
409 wlan_vdev_mlme_clear_mlo_vdev(mlo_dev_ctx->wlan_vdev_list[i]); in mlo_mld_clear_mlo_cap()
410 wlan_vdev_mlme_clear_mlo_link_vdev(mlo_dev_ctx->wlan_vdev_list[i]); in mlo_mld_clear_mlo_cap()
454 uint8_t i = 0; in mlo_validate_disconn_req() local
456 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_validate_disconn_req()
457 if (!mlo_dev->wlan_vdev_list[i]) in mlo_validate_disconn_req()
460 if (wlan_cm_is_vdev_connecting(mlo_dev->wlan_vdev_list[i])) { in mlo_validate_disconn_req()
462 mlo_dev->wlan_vdev_list[i])) in mlo_validate_disconn_req()
481 } else if (wlan_cm_is_vdev_connected(mlo_dev->wlan_vdev_list[i]) && in mlo_validate_disconn_req()
483 mlo_dev->wlan_vdev_list[i]) && in mlo_validate_disconn_req()
485 mlo_dev->wlan_vdev_list[i]))) { in mlo_validate_disconn_req()
491 if (!qdf_test_bit(i, sta_ctx->wlan_connected_links)) { in mlo_validate_disconn_req()
524 uint8_t i = 0; in mlo_disconnect_no_lock() local
553 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_disconnect_no_lock()
554 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_disconnect_no_lock()
557 if ((mlo_dev_ctx->wlan_vdev_list[i] != assoc_vdev) && in mlo_disconnect_no_lock()
558 (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links) || in mlo_disconnect_no_lock()
559 (wlan_cm_is_vdev_connected(mlo_dev_ctx->wlan_vdev_list[i]) && in mlo_disconnect_no_lock()
560 !wlan_peer_is_mlo(wlan_vdev_get_bsspeer(mlo_dev_ctx->wlan_vdev_list[i]))))) in mlo_disconnect_no_lock()
561 wlan_cm_disconnect(mlo_dev_ctx->wlan_vdev_list[i], in mlo_disconnect_no_lock()
588 uint8_t i = 0; in mlo_validate_connect_req() local
595 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_validate_connect_req()
596 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_validate_connect_req()
599 if ((wlan_cm_is_vdev_connected(mlo_dev_ctx->wlan_vdev_list[i])) || in mlo_validate_connect_req()
600 (wlan_cm_is_vdev_connecting(mlo_dev_ctx->wlan_vdev_list[i])) || in mlo_validate_connect_req()
601 (wlan_cm_is_vdev_roaming(mlo_dev_ctx->wlan_vdev_list[i]))) { in mlo_validate_connect_req()
602 mlo_cm_handle_connect_in_connection_state(mlo_dev_ctx->wlan_vdev_list[i], req); in mlo_validate_connect_req()
604 } else if (wlan_cm_is_vdev_disconnecting(mlo_dev_ctx->wlan_vdev_list[i])) { in mlo_validate_connect_req()
605 mlo_cm_handle_connect_in_disconnection_state(mlo_dev_ctx->wlan_vdev_list[i], req); in mlo_validate_connect_req()
614 if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connect_req_links)) { in mlo_validate_connect_req()
616 mlo_dev_ctx->wlan_vdev_list[i], NULL); in mlo_validate_connect_req()
623 mlo_dev_ctx->wlan_vdev_list[i], req); in mlo_validate_connect_req()
643 uint8_t i; in mlo_set_cu_bpcc() local
652 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_set_cu_bpcc()
653 if (cu_param[i].initialized && cu_param[i].vdev_id == vdev_id) { in mlo_set_cu_bpcc()
654 cu_param[i].bpcc = bpcc; in mlo_set_cu_bpcc()
667 uint8_t i; in mlo_get_cu_bpcc() local
676 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_get_cu_bpcc()
677 if (cu_param[i].initialized && in mlo_get_cu_bpcc()
678 cu_param[i].vdev_id == vdev_id) { in mlo_get_cu_bpcc()
679 *bpcc = cu_param[i].bpcc; in mlo_get_cu_bpcc()
690 uint8_t i; in mlo_init_cu_bpcc() local
696 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_init_cu_bpcc()
697 if (cu_param[i].initialized && in mlo_init_cu_bpcc()
698 cu_param[i].vdev_id == vdev_id) { in mlo_init_cu_bpcc()
699 cu_param[i].bpcc = 0; in mlo_init_cu_bpcc()
703 if (!cu_param[i].initialized && empty_slot == 0xff) in mlo_init_cu_bpcc()
704 empty_slot = i; in mlo_init_cu_bpcc()
921 uint8_t i, partner_idx = 0; in mlo_send_link_connect() local
953 for (i = 0; i < vdev_count; i++) { in mlo_send_link_connect()
954 if (wlan_vdev_list[i] == vdev) { in mlo_send_link_connect()
955 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_send_link_connect()
958 wlan_vdev_mlme_set_mlo_vdev(mlo_dev_ctx->wlan_vdev_list[i]); in mlo_send_link_connect()
959 wlan_vdev_mlme_set_mlo_link_vdev(mlo_dev_ctx->wlan_vdev_list[i]); in mlo_send_link_connect()
961 wlan_vdev_list[i], in mlo_send_link_connect()
964 wlan_vdev_get_id(mlo_dev_ctx->wlan_vdev_list[i]); in mlo_send_link_connect()
965 wlan_crypto_free_vdev_key(wlan_vdev_list[i]); in mlo_send_link_connect()
967 wlan_vdev_list[i], in mlo_send_link_connect()
971 mlo_update_connected_links(wlan_vdev_list[i], 1); in mlo_send_link_connect()
973 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_send_link_connect()
981 uint8_t i = 0; in mlo_send_link_connect() local
998 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_send_link_connect()
999 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_send_link_connect()
1005 if (qdf_test_bit(i, mlo_dev_ctx->sta_ctx->wlan_connected_links)) { in mlo_send_link_connect()
1007 mlo_dev_ctx->wlan_vdev_list[i])) { in mlo_send_link_connect()
1008 if (mlo_dev_ctx->wlan_vdev_list[i]->vdev_mlme.mlo_link_id in mlo_send_link_connect()
1014 mlo_dev_ctx->wlan_vdev_list[i], in mlo_send_link_connect()
1033 uint8_t i = 0; in mlo_update_connected_links_bmap() local
1041 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_update_connected_links_bmap()
1042 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_update_connected_links_bmap()
1046 if (wlan_vdev_get_link_id(mlo_dev_ctx->wlan_vdev_list[i]) == in mlo_update_connected_links_bmap()
1049 mlo_dev_ctx->wlan_vdev_list[i], 1); in mlo_update_connected_links_bmap()
1357 uint8_t i; in mlo_send_link_disconnect_sync() local
1361 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_send_link_disconnect_sync()
1362 if (!mlo_dev_ctx->wlan_vdev_list[i] || in mlo_send_link_disconnect_sync()
1363 mlo_dev_ctx->wlan_vdev_list[i] == sync_vdev) { in mlo_send_link_disconnect_sync()
1372 sync_vdev = mlo_dev_ctx->wlan_vdev_list[i]; in mlo_send_link_disconnect_sync()
1380 wlan_cm_disconnect(mlo_dev_ctx->wlan_vdev_list[i], in mlo_send_link_disconnect_sync()
1541 uint8_t i = 0; in mlo_handle_disconnect_resp() local
1546 for (i = 0; i < vdev_count; i++) { in mlo_handle_disconnect_resp()
1547 if (wlan_cm_is_vdev_connected(wlan_vdev_list[i])) { in mlo_handle_disconnect_resp()
1549 wlan_vdev_list[i])) { in mlo_handle_disconnect_resp()
1553 wlan_vdev_list[i], in mlo_handle_disconnect_resp()
1557 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_handle_disconnect_resp()
1571 uint8_t i = 0; in ml_activate_connect_req_sched_cb() local
1599 for (i = 0; i < partner_info.num_partner_links; i++) { in ml_activate_connect_req_sched_cb()
1600 partner_link_info = partner_info.partner_link_info[i]; in ml_activate_connect_req_sched_cb()
1727 uint8_t i = 0; in mlo_get_ml_vdev_by_mac() local
1732 for (i = 0; i < WLAN_UMAC_MLO_MAX_VDEVS; i++) { in mlo_get_ml_vdev_by_mac()
1733 if (!mlo_dev_ctx->wlan_vdev_list[i]) in mlo_get_ml_vdev_by_mac()
1737 wlan_vdev_mlme_get_macaddr(mlo_dev_ctx->wlan_vdev_list[i]), in mlo_get_ml_vdev_by_mac()
1739 return mlo_dev_ctx->wlan_vdev_list[i]; in mlo_get_ml_vdev_by_mac()
1856 int i; in mlo_sta_save_quiet_status() local
1872 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_quiet_status); i++) { in mlo_sta_save_quiet_status()
1873 if (!sta_ctx->mlo_quiet_status[i].valid_status) { in mlo_sta_save_quiet_status()
1875 free_idx = i; in mlo_sta_save_quiet_status()
1878 } else if (link_id == sta_ctx->mlo_quiet_status[i].link_id) { in mlo_sta_save_quiet_status()
1879 sta_ctx->mlo_quiet_status[i].quiet_status = in mlo_sta_save_quiet_status()
1910 int i; in mlo_is_sta_in_quiet_status() local
1925 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_quiet_status); i++) { in mlo_is_sta_in_quiet_status()
1926 if (sta_ctx->mlo_quiet_status[i].valid_status && in mlo_is_sta_in_quiet_status()
1927 link_id == sta_ctx->mlo_quiet_status[i].link_id) { in mlo_is_sta_in_quiet_status()
1929 sta_ctx->mlo_quiet_status[i].quiet_status; in mlo_is_sta_in_quiet_status()
1944 uint8_t i, j; in mlo_is_sta_inactivity_allowed_with_quiet() local
1948 for (i = 0; i < num_mlo; i++) { in mlo_is_sta_inactivity_allowed_with_quiet()
1950 if (vdev_id_list[mlo_idx[i]] == affected_list[j]) in mlo_is_sta_inactivity_allowed_with_quiet()
1957 psoc, vdev_id_list[mlo_idx[i]], in mlo_is_sta_inactivity_allowed_with_quiet()
1961 vdev_id_list[mlo_idx[i]]); in mlo_is_sta_inactivity_allowed_with_quiet()
1984 int i; in mlo_is_sta_csa_synced() local
1999 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_csa_param); i++) { in mlo_is_sta_csa_synced()
2000 if (link_id == sta_ctx->mlo_csa_param[i].link_id && in mlo_is_sta_csa_synced()
2001 (sta_ctx->mlo_csa_param[i].valid_csa_param || in mlo_is_sta_csa_synced()
2002 sta_ctx->mlo_csa_param[i].mlo_csa_synced)) { in mlo_is_sta_csa_synced()
2004 sta_ctx->mlo_csa_param[i].mlo_csa_synced; in mlo_is_sta_csa_synced()
2129 int i; in mlo_sta_csa_save_params() local
2147 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_csa_param); i++) { in mlo_sta_csa_save_params()
2148 if (!sta_ctx->mlo_csa_param[i].valid_csa_param && in mlo_sta_csa_save_params()
2149 !sta_ctx->mlo_csa_param[i].mlo_csa_synced) { in mlo_sta_csa_save_params()
2151 free_idx = i; in mlo_sta_csa_save_params()
2154 } else if (link_id == sta_ctx->mlo_csa_param[i].link_id) { in mlo_sta_csa_save_params()
2155 qdf_mem_copy(&sta_ctx->mlo_csa_param[i].csa_param, in mlo_sta_csa_save_params()
2190 int i; in mlo_sta_up_active_notify() local
2217 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_csa_param); i++) { in mlo_sta_up_active_notify()
2218 if (!sta_ctx->mlo_csa_param[i].valid_csa_param && in mlo_sta_up_active_notify()
2219 !sta_ctx->mlo_csa_param[i].mlo_csa_synced) { in mlo_sta_up_active_notify()
2221 free_idx = i; in mlo_sta_up_active_notify()
2224 } else if (link_id == sta_ctx->mlo_csa_param[i].link_id) { in mlo_sta_up_active_notify()
2225 if (sta_ctx->mlo_csa_param[i].valid_csa_param && in mlo_sta_up_active_notify()
2226 !sta_ctx->mlo_csa_param[i].mlo_csa_synced) { in mlo_sta_up_active_notify()
2231 csa_param = sta_ctx->mlo_csa_param[i].csa_param; in mlo_sta_up_active_notify()
2232 sta_ctx->mlo_csa_param[i].mlo_csa_synced = true; in mlo_sta_up_active_notify()
2241 sta_ctx->mlo_csa_param[i].mlo_csa_synced = true; in mlo_sta_up_active_notify()
2270 int i; in mlo_is_sta_csa_param_handled() local
2290 for (i = 0; i < QDF_ARRAY_SIZE(sta_ctx->mlo_csa_param); i++) { in mlo_is_sta_csa_param_handled()
2291 if (link_id == sta_ctx->mlo_csa_param[i].link_id && in mlo_is_sta_csa_param_handled()
2292 (sta_ctx->mlo_csa_param[i].valid_csa_param || in mlo_is_sta_csa_param_handled()
2293 sta_ctx->mlo_csa_param[i].mlo_csa_synced)) in mlo_is_sta_csa_param_handled()
2297 if (i >= QDF_ARRAY_SIZE(sta_ctx->mlo_csa_param)) { in mlo_is_sta_csa_param_handled()
2301 if (!sta_ctx->mlo_csa_param[i].csa_offload_event_recvd) { in mlo_is_sta_csa_param_handled()
2302 sta_ctx->mlo_csa_param[i].csa_offload_event_recvd = true; in mlo_is_sta_csa_param_handled()
2303 if (sta_ctx->mlo_csa_param[i].valid_csa_param && in mlo_is_sta_csa_param_handled()
2304 !qdf_mem_cmp(&sta_ctx->mlo_csa_param[i].csa_param, in mlo_is_sta_csa_param_handled()
2322 uint8_t i; in mlo_internal_disconnect_links() local
2367 for (i = 0; i < vdev_count; i++) { in mlo_internal_disconnect_links()
2368 if (wlan_vdev_list[i] != assoc_vdev && in mlo_internal_disconnect_links()
2369 (wlan_cm_is_vdev_connected(wlan_vdev_list[i]) || in mlo_internal_disconnect_links()
2370 wlan_cm_is_vdev_connecting(wlan_vdev_list[i]) || in mlo_internal_disconnect_links()
2371 wlan_cm_is_vdev_idle_due_to_link_switch(wlan_vdev_list[i]))) in mlo_internal_disconnect_links()
2372 wlan_cm_disconnect(wlan_vdev_list[i], in mlo_internal_disconnect_links()
2376 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_internal_disconnect_links()
2389 int i; in mlo_sta_get_vdev_list() local
2403 for (i = 0; i < QDF_ARRAY_SIZE(dev_ctx->wlan_vdev_list); i++) { in mlo_sta_get_vdev_list()
2404 if (dev_ctx->wlan_vdev_list[i]) { in mlo_sta_get_vdev_list()
2406 wlan_objmgr_vdev_try_get_ref(dev_ctx->wlan_vdev_list[i], in mlo_sta_get_vdev_list()
2411 dev_ctx->wlan_vdev_list[i]; in mlo_sta_get_vdev_list()
2461 uint8_t i; in mlo_sta_stop_reconfig_timer() local
2472 for (i = 0; i < vdev_count; i++) { in mlo_sta_stop_reconfig_timer()
2473 if (!wlan_vdev_list[i]) { in mlo_sta_stop_reconfig_timer()
2477 mlo_sta_stop_reconfig_timer_by_vdev(wlan_vdev_list[i]); in mlo_sta_stop_reconfig_timer()
2481 for (i = 0; i < vdev_count; i++) in mlo_sta_stop_reconfig_timer()
2482 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_sta_stop_reconfig_timer()
2730 uint8_t i = 0; in mlo_process_ml_reconfig_ie() local
2808 for (i = 0; i < reconfig_info.num_links; i++) { in mlo_process_ml_reconfig_ie()
2809 if (link_ix == reconfig_info.link_info[i].link_id) in mlo_process_ml_reconfig_ie()
2811 &reconfig_info.link_info[i]); in mlo_process_ml_reconfig_ie()
2819 for (i = 0; i < vdev_count; i++) in mlo_process_ml_reconfig_ie()
2820 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_process_ml_reconfig_ie()
2898 uint16_t vdev_count = 0, i; in mlo_is_any_link_disconnecting() local
2905 for (i = 0; i < vdev_count; i++) { in mlo_is_any_link_disconnecting()
2906 if (!status && wlan_cm_is_vdev_disconnecting(wlan_vdev_list[i])) in mlo_is_any_link_disconnecting()
2908 mlo_release_vdev_ref(wlan_vdev_list[i]); in mlo_is_any_link_disconnecting()