Lines Matching refs:params
55 struct set_key_params *params) in wlan_crypto_set_wapi_key() argument
73 qdf_mem_copy(¶ms->rx_iv, &tx_iv, in wlan_crypto_set_wapi_key()
75 qdf_mem_copy(params->tx_iv, &rx_iv, in wlan_crypto_set_wapi_key()
78 qdf_mem_copy(params->rx_iv, &rx_iv, in wlan_crypto_set_wapi_key()
80 qdf_mem_copy(params->tx_iv, &tx_iv, in wlan_crypto_set_wapi_key()
84 params->key_txmic_len = WLAN_CRYPTO_MIC_LEN; in wlan_crypto_set_wapi_key()
85 params->key_rxmic_len = WLAN_CRYPTO_MIC_LEN; in wlan_crypto_set_wapi_key()
91 struct set_key_params *params) in wlan_crypto_set_wapi_key() argument
107 qdf_mem_copy(¶ms->rx_iv, &rx_iv, in wlan_crypto_set_wapi_key()
109 qdf_mem_copy(¶ms->tx_iv, &tx_iv, in wlan_crypto_set_wapi_key()
114 params->tx_iv[0] = 0x37; in wlan_crypto_set_wapi_key()
116 params->rx_iv[WLAN_CRYPTO_WAPI_IV_SIZE - 1] = 0x36; in wlan_crypto_set_wapi_key()
119 params->rx_iv[WLAN_CRYPTO_WAPI_IV_SIZE - 1] = 0x36; in wlan_crypto_set_wapi_key()
122 params->key_txmic_len = WLAN_CRYPTO_MIC_LEN; in wlan_crypto_set_wapi_key()
123 params->key_rxmic_len = WLAN_CRYPTO_MIC_LEN; in wlan_crypto_set_wapi_key()
130 struct set_key_params *params) in wlan_crypto_set_wapi_key() argument
164 struct set_key_params params = {0}; in target_if_crypto_set_key() local
193 params.vdev_id = wlan_vdev_get_id(vdev); in target_if_crypto_set_key()
194 params.key_idx = req->keyix; in target_if_crypto_set_key()
195 qdf_mem_copy(params.peer_mac, req->macaddr, QDF_MAC_ADDR_SIZE); in target_if_crypto_set_key()
202 params.key_flags = req->flags; in target_if_crypto_set_key()
205 params.key_flags |= GROUP_USAGE; in target_if_crypto_set_key()
209 params.key_flags |= PAIRWISE_USAGE; in target_if_crypto_set_key()
211 qdf_mem_copy(¶ms.key_rsc_counter, in target_if_crypto_set_key()
239 params.key_cipher = wlan_crypto_cipher_to_wmi_cipher(req->cipher_type); in target_if_crypto_set_key()
241 wlan_crypto_set_wapi_key(vdev, pairwise, req->cipher_type, ¶ms); in target_if_crypto_set_key()
248 if (pairwise && params.key_idx == def_tx_idx) in target_if_crypto_set_key()
249 params.key_flags |= TX_USAGE; in target_if_crypto_set_key()
251 (params.key_idx == def_tx_idx)) in target_if_crypto_set_key()
252 params.key_flags |= TX_USAGE; in target_if_crypto_set_key()
255 params.key_txmic_len = WLAN_CRYPTO_MIC_LEN; in target_if_crypto_set_key()
256 params.key_rxmic_len = WLAN_CRYPTO_MIC_LEN; in target_if_crypto_set_key()
262 qdf_mem_copy(¶ms.key_data[0], &req->keyval[0], req->keylen); in target_if_crypto_set_key()
263 params.key_len = req->keylen; in target_if_crypto_set_key()
266 qdf_mem_copy(&pn[0], ¶ms.key_rsc_counter, sizeof(uint64_t)); in target_if_crypto_set_key()
281 target_if_debug("vdev_id:%d, key: idx:%d,len:%d", params.vdev_id, in target_if_crypto_set_key()
282 params.key_idx, params.key_len); in target_if_crypto_set_key()
284 QDF_MAC_ADDR_REF(params.peer_mac)); in target_if_crypto_set_key()
286 ¶ms.key_rsc_counter, sizeof(uint64_t)); in target_if_crypto_set_key()
287 status = wmi_unified_setup_install_key_cmd(pdev_wmi_handle, ¶ms); in target_if_crypto_set_key()
290 qdf_mem_zero(¶ms, sizeof(struct set_key_params)); in target_if_crypto_set_key()
313 struct wmi_install_key_comp_event params; in target_if_crypto_install_key_comp_evt_handler() local
336 len, ¶ms); in target_if_crypto_install_key_comp_evt_handler()
343 params.vdev_id, in target_if_crypto_install_key_comp_evt_handler()
344 QDF_MAC_ADDR_REF(params.peer_macaddr), in target_if_crypto_install_key_comp_evt_handler()
345 params.key_ix, params.key_flags, params.status); in target_if_crypto_install_key_comp_evt_handler()
347 vdev = wlan_objmgr_get_vdev_by_id_from_psoc(psoc, params.vdev_id, in target_if_crypto_install_key_comp_evt_handler()
350 target_if_err("vdev %d is null", params.vdev_id); in target_if_crypto_install_key_comp_evt_handler()
361 result.vdev_id = params.vdev_id; in target_if_crypto_install_key_comp_evt_handler()
362 result.key_ix = params.key_ix; in target_if_crypto_install_key_comp_evt_handler()
363 result.key_flags = params.key_flags; in target_if_crypto_install_key_comp_evt_handler()
364 result.status = params.status; in target_if_crypto_install_key_comp_evt_handler()
365 qdf_mem_copy(result.peer_macaddr, params.peer_macaddr, in target_if_crypto_install_key_comp_evt_handler()