Lines Matching refs:wma

107 static void wma_send_bcn_buf_ll(tp_wma_handle wma,  in wma_send_bcn_buf_ll()  argument
122 bcn = wma->interfaces[vdev_id].beacon; in wma_send_bcn_buf_ll()
228 wma_update_probe_resp_noa(wma, &noa_ie); in wma_send_bcn_buf_ll()
232 qdf_nbuf_unmap_single(wma->qdf_dev, bcn->buf, QDF_DMA_TO_DEVICE); in wma_send_bcn_buf_ll()
235 ret = qdf_nbuf_map_single(wma->qdf_dev, bcn->buf, QDF_DMA_TO_DEVICE); in wma_send_bcn_buf_ll()
256 wmi_unified_bcn_buf_ll_cmd(wma->wmi_handle, in wma_send_bcn_buf_ll()
263 wma_send_bcn_buf_ll(tp_wma_handle wma, in wma_send_bcn_buf_ll() argument
283 tp_wma_handle wma = (tp_wma_handle) handle; in wma_beacon_swba_handler() local
299 for (; vdev_map && vdev_id < wma->max_bssid; in wma_beacon_swba_handler()
305 wma_send_bcn_buf_ll(wma, vdev_id, param_buf); in wma_beacon_swba_handler()
336 tp_wma_handle wma = (tp_wma_handle) handle; in wma_peer_sta_kickout_event_handler() local
358 vdev = wma->interfaces[vdev_id].vdev; in wma_peer_sta_kickout_event_handler()
399 wma_send_msg(wma, SIR_LIM_DELETE_STA_CONTEXT_IND, in wma_peer_sta_kickout_event_handler()
408 if (wma->interfaces[vdev_id].type == WMI_VDEV_TYPE_STA && in wma_peer_sta_kickout_event_handler()
409 (wma->interfaces[vdev_id].sub_type == 0 || in wma_peer_sta_kickout_event_handler()
410 wma->interfaces[vdev_id].sub_type == in wma_peer_sta_kickout_event_handler()
426 wma_beacon_miss_handler(wma, vdev_id, in wma_peer_sta_kickout_event_handler()
466 if (wmi_service_enabled(wma->wmi_handle, in wma_peer_sta_kickout_event_handler()
473 wma_send_msg(wma, SIR_LIM_DELETE_STA_CONTEXT_IND, (void *)del_sta_ctx, in wma_peer_sta_kickout_event_handler()
475 wma_lost_link_info_handler(wma, vdev_id, del_sta_ctx->rssi); in wma_peer_sta_kickout_event_handler()
485 tp_wma_handle wma = (tp_wma_handle) handle; in wma_unified_bcntx_status_event_handler() local
499 if (resp_event->vdev_id >= wma->max_bssid) { in wma_unified_bcntx_status_event_handler()
507 if (!wma->interfaces[resp_event->vdev_id].vdev) { in wma_unified_bcntx_status_event_handler()
513 if (wma_is_vdev_in_ap_mode(wma, resp_event->vdev_id) == false) { in wma_unified_bcntx_status_event_handler()
515 wma->interfaces[resp_event->vdev_id].type, in wma_unified_bcntx_status_event_handler()
516 wma->interfaces[resp_event->vdev_id].sub_type); in wma_unified_bcntx_status_event_handler()
531 wma_send_msg(wma, WMA_DFS_BEACON_TX_SUCCESS_IND, in wma_unified_bcntx_status_event_handler()
660 void wma_set_vdev_mgmt_rate(tp_wma_handle wma, uint8_t vdev_id) in wma_set_vdev_mgmt_rate() argument
751 void wma_set_sap_keepalive(tp_wma_handle wma, uint8_t vdev_id) in wma_set_sap_keepalive() argument
764 wma_get_link_probe_timeout(mac, wma->interfaces[vdev_id].sub_type, in wma_set_sap_keepalive()
818 void wma_set_sta_sa_query_param(tp_wma_handle wma, in wma_set_sta_sa_query_param() argument
833 wmi_unified_set_sta_sa_query_param_cmd(wma->wmi_handle, in wma_set_sta_sa_query_param()
853 void wma_set_sta_keep_alive(tp_wma_handle wma, uint8_t vdev_id, in wma_set_sta_keep_alive() argument
861 if (wma_validate_handle(wma)) in wma_set_sta_keep_alive()
864 intr = &wma->interfaces[vdev_id]; in wma_set_sta_keep_alive()
893 wmi_unified_set_sta_keep_alive_cmd(wma->wmi_handle, &params); in wma_set_sta_keep_alive()
933 static void wma_mask_tx_ht_rate(tp_wma_handle wma, uint8_t *mcs_set) in wma_mask_tx_ht_rate() argument
938 struct mac_context *mac = wma->mac_context; in wma_mask_tx_ht_rate()
1199 void wma_objmgr_set_peer_mlme_nss(tp_wma_handle wma, uint8_t *mac_addr, in wma_objmgr_set_peer_mlme_nss() argument
1205 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_objmgr_set_peer_mlme_nss()
1207 pdev_id = wlan_objmgr_pdev_get_pdev_id(wma->pdev); in wma_objmgr_set_peer_mlme_nss()
1224 uint8_t wma_objmgr_get_peer_mlme_nss(tp_wma_handle wma, uint8_t *mac_addr) in wma_objmgr_get_peer_mlme_nss() argument
1229 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_objmgr_get_peer_mlme_nss()
1232 pdev_id = wlan_objmgr_pdev_get_pdev_id(wma->pdev); in wma_objmgr_get_peer_mlme_nss()
1250 void wma_objmgr_set_peer_mlme_phymode(tp_wma_handle wma, uint8_t *mac_addr, in wma_objmgr_set_peer_mlme_phymode() argument
1255 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_objmgr_set_peer_mlme_phymode()
1257 pdev_id = wlan_objmgr_pdev_get_pdev_id(wma->pdev); in wma_objmgr_set_peer_mlme_phymode()
1277 static void wma_objmgr_set_peer_mlme_type(tp_wma_handle wma, in wma_objmgr_set_peer_mlme_type() argument
1283 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_objmgr_set_peer_mlme_type()
1285 pdev_id = wlan_objmgr_pdev_get_pdev_id(wma->pdev); in wma_objmgr_set_peer_mlme_type()
1334 static void wma_set_mlo_capability(tp_wma_handle wma, in wma_set_mlo_capability() argument
1341 struct wlan_objmgr_psoc *psoc = wma->psoc; in wma_set_mlo_capability()
1344 pdev_id = wlan_objmgr_pdev_get_pdev_id(wma->pdev); in wma_set_mlo_capability()
1412 static inline void wma_set_mlo_capability(tp_wma_handle wma, in wma_set_mlo_capability() argument
1436 QDF_STATUS wma_send_peer_assoc(tp_wma_handle wma, in wma_send_peer_assoc() argument
1452 struct mac_context *mac = wma->mac_context; in wma_send_peer_assoc()
1462 intr = &wma->interfaces[params->smesessionId]; in wma_send_peer_assoc()
1464 wma_mask_tx_ht_rate(wma, params->supportedRates.supportedMCSSet); in wma_send_peer_assoc()
1559 if ((wma_is_vdev_in_ap_mode(wma, params->smesessionId)) in wma_send_peer_assoc()
1570 wma_objmgr_set_peer_mlme_phymode(wma, cmd->peer_mac, phymode); in wma_send_peer_assoc()
1629 wma_objmgr_set_peer_mlme_type(wma, params->staMac, in wma_send_peer_assoc()
1669 wlan_acquire_peer_key_wakelock(wma->pdev, in wma_send_peer_assoc()
1679 ret = wma_vdev_set_param(wma->wmi_handle, params->smesessionId, in wma_send_peer_assoc()
1771 wma_set_mlo_capability(wma, intr->vdev, params, cmd); in wma_send_peer_assoc()
1793 if (!wma_is_vdev_in_ap_mode(wma, params->smesessionId)) in wma_send_peer_assoc()
1795 wma_objmgr_set_peer_mlme_nss(wma, cmd->peer_mac, cmd->peer_nss); in wma_send_peer_assoc()
1810 status = wmi_unified_peer_assoc_send(wma->wmi_handle, in wma_send_peer_assoc()
1860 void wma_update_protection_mode(tp_wma_handle wma, uint8_t vdev_id, in wma_update_protection_mode() argument
1868 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_update_protection_mode()
1880 wma_update_beacon_interval(tp_wma_handle wma, uint8_t vdev_id, in wma_update_beacon_interval() argument
1885 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_update_beacon_interval()
1907 wma_update_bss_color(tp_wma_handle wma, uint8_t vdev_id, in wma_update_bss_color() argument
1918 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_update_bss_color()
1924 static void wma_update_bss_color(tp_wma_handle wma, uint8_t vdev_id, in wma_update_bss_color() argument
1938 wma_process_update_beacon_params(tp_wma_handle wma, in wma_process_update_beacon_params() argument
1946 if (bcn_params->vdev_id >= wma->max_bssid) { in wma_process_update_beacon_params()
1952 wma_update_beacon_interval(wma, bcn_params->vdev_id, in wma_process_update_beacon_params()
1957 wma_update_protection_mode(wma, bcn_params->vdev_id, in wma_process_update_beacon_params()
1961 wma_update_bss_color(wma, bcn_params->vdev_id, in wma_process_update_beacon_params()
1965 void wma_update_rts_params(tp_wma_handle wma, uint32_t value) in wma_update_rts_params() argument
1971 for (vdev_id = 0; vdev_id < wma->max_bssid; vdev_id++) { in wma_update_rts_params()
1972 vdev = wma->interfaces[vdev_id].vdev; in wma_update_rts_params()
1975 ret = wma_vdev_set_param(wma->wmi_handle, in wma_update_rts_params()
1984 void wma_update_frag_params(tp_wma_handle wma, uint32_t value) in wma_update_frag_params() argument
1990 for (vdev_id = 0; vdev_id < wma->max_bssid; vdev_id++) { in wma_update_frag_params()
1991 vdev = wma->interfaces[vdev_id].vdev; in wma_update_frag_params()
1994 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_update_frag_params()
2094 static int wmi_unified_probe_rsp_tmpl_send(tp_wma_handle wma, in wmi_unified_probe_rsp_tmpl_send() argument
2107 wma->interfaces[vdev_id].tsfadjust); in wmi_unified_probe_rsp_tmpl_send()
2117 return wmi_unified_probe_rsp_tmpl_send_cmd(wma->wmi_handle, vdev_id, in wmi_unified_probe_rsp_tmpl_send()
2173 static QDF_STATUS wma_unified_bcn_tmpl_send(tp_wma_handle wma, in wma_unified_bcn_tmpl_send() argument
2233 wma->interfaces[vdev_id].tsfadjust); in wma_unified_bcn_tmpl_send()
2246 mlme_get_bigtk_support(wma->interfaces[vdev_id].vdev); in wma_unified_bcn_tmpl_send()
2258 ret = wmi_unified_beacon_tmpl_send_cmd(wma->wmi_handle, in wma_unified_bcn_tmpl_send()
2278 static QDF_STATUS wma_store_bcn_tmpl(tp_wma_handle wma, uint8_t vdev_id, in wma_store_bcn_tmpl() argument
2286 bcn = wma->interfaces[vdev_id].beacon; in wma_store_bcn_tmpl()
2354 tp_wma_handle wma = (tp_wma_handle) handle; in wma_tbttoffset_update_event_handler() local
2363 if (wma_validate_handle(wma)) in wma_tbttoffset_update_event_handler()
2373 intf = wma->interfaces; in wma_tbttoffset_update_event_handler()
2381 for (; (if_id < wma->max_bssid && vdev_map); vdev_map >>= 1, if_id++) { in wma_tbttoffset_update_event_handler()
2414 wma_unified_bcn_tmpl_send(wma, if_id, &bcn_info, 0); in wma_tbttoffset_update_event_handler()
2447 void wma_send_probe_rsp_tmpl(tp_wma_handle wma, in wma_send_probe_rsp_tmpl() argument
2465 if (wma_find_vdev_id_by_addr(wma, probe_rsp->macHdr.sa, &vdev_id)) { in wma_send_probe_rsp_tmpl()
2470 if (wmi_service_enabled(wma->wmi_handle, in wma_send_probe_rsp_tmpl()
2472 if (wmi_unified_probe_rsp_tmpl_send(wma, vdev_id, in wma_send_probe_rsp_tmpl()
2480 QDF_STATUS wma_set_ap_vdev_up(tp_wma_handle wma, uint8_t vdev_id) in wma_set_ap_vdev_up() argument
2487 iface = &wma->interfaces[vdev_id]; in wma_set_ap_vdev_up()
2501 wma_set_sap_keepalive(wma, vdev_id); in wma_set_ap_vdev_up()
2502 wma_set_vdev_mgmt_rate(wma, vdev_id); in wma_set_ap_vdev_up()
2503 wma_vdev_set_he_bss_params(wma, vdev_id, &mlme_obj->proto.he_ops_info); in wma_set_ap_vdev_up()
2519 void wma_send_beacon(tp_wma_handle wma, tpSendbeaconParams bcn_info) in wma_send_beacon() argument
2527 if (wma_find_vdev_id_by_addr(wma, beacon->macHdr.sa, &vdev_id)) { in wma_send_beacon()
2533 if (wmi_service_enabled(wma->wmi_handle, in wma_send_beacon()
2535 status = wma_unified_bcn_tmpl_send(wma, vdev_id, bcn_info, 4); in wma_send_beacon()
2545 if (wma_p2p_go_set_beacon_ie(wma, vdev_id, in wma_send_beacon()
2553 status = wma_store_bcn_tmpl(wma, vdev_id, bcn_info); in wma_send_beacon()
2561 wma_send_msg(wma, WMA_SEND_BCN_RSP, (void *)bcn_info, 0); in wma_send_beacon()
2571 void wma_set_keepalive_req(tp_wma_handle wma, in wma_set_keepalive_req() argument
2575 wma_set_sta_keep_alive(wma, keepalive->sessionId, in wma_set_keepalive_req()
2595 void wma_beacon_miss_handler(tp_wma_handle wma, uint32_t vdev_id, int32_t rssi) in wma_beacon_miss_handler() argument
2613 wma_send_msg(wma, WMA_MISSED_BEACON_IND, beacon_miss_ind, 0); in wma_beacon_miss_handler()
2614 if (!wmi_service_enabled(wma->wmi_handle, in wma_beacon_miss_handler()
2617 wma_lost_link_info_handler(wma, vdev_id, rssi); in wma_beacon_miss_handler()
2622 tp_wma_handle wma; in wlan_cm_send_beacon_miss() local
2624 wma = cds_get_context(QDF_MODULE_ID_WMA); in wlan_cm_send_beacon_miss()
2625 if (!wma) in wlan_cm_send_beacon_miss()
2628 wma_beacon_miss_handler(wma, vdev_id, rssi); in wlan_cm_send_beacon_miss()
3088 tp_wma_handle wma = (tp_wma_handle)wma_handle; in wma_set_cts2self_for_p2p_go() local
3094 ret = wmi_unified_pdev_param_send(wma->wmi_handle, in wma_set_cts2self_for_p2p_go()
3120 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_set_htconfig() local
3123 if (!wma) in wma_set_htconfig()
3128 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_set_htconfig()
3133 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_set_htconfig()
3138 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_set_htconfig()
3146 ret = wma_vdev_set_param(wma->wmi_handle, vdev_id, in wma_set_htconfig()
3149 wma->interfaces[vdev_id].config.shortgi = value; in wma_set_htconfig()
3205 wma_is_ccmp_pn_replay_attack(tp_wma_handle wma, struct ieee80211_frame *wh, in wma_is_ccmp_pn_replay_attack() argument
3215 peer = wlan_objmgr_get_peer_by_mac(wma->psoc, wh->i_addr2, in wma_is_ccmp_pn_replay_attack()
3456 wma_get_peer_pmf_status(tp_wma_handle wma, uint8_t *peer_mac) in wma_get_peer_pmf_status() argument
3466 peer = wlan_objmgr_get_peer(wma->psoc, in wma_get_peer_pmf_status()
3467 wlan_objmgr_pdev_get_pdev_id(wma->pdev), in wma_get_peer_pmf_status()
3976 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in wma_register_roaming_callbacks() local
3978 if (!wma) in wma_register_roaming_callbacks()
3981 wma->csr_roam_auth_event_handle_cb = csr_roam_auth_event_handle_cb; in wma_register_roaming_callbacks()
3982 wma->pe_roam_synch_cb = pe_roam_synch_cb; in wma_register_roaming_callbacks()
3983 wma->pe_disconnect_cb = pe_disconnect_cb; in wma_register_roaming_callbacks()
3984 wma->pe_roam_set_ie_cb = pe_roam_set_ie_cb; in wma_register_roaming_callbacks()
4237 tp_wma_handle wma = cds_get_context(QDF_MODULE_ID_WMA); in cm_send_ies_for_roam_invoke() local
4242 if (!wma) in cm_send_ies_for_roam_invoke()
4248 status = wma->pe_roam_set_ie_cb(wma->mac_context, vdev_id, dot11_mode, in cm_send_ies_for_roam_invoke()