Home
last modified time | relevance | path

Searched refs:key_index (Results 1 - 11 of 11) sorted by relevance

/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/
H A Dmac_user.c178 WIFI_ROM_TEXT hi_u32 mac_user_add_key_common(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key) in mac_user_add_key_common() argument
182 if (key_index >= WLAN_NUM_TK) { in mac_user_add_key_common()
204 mac_user->key_info.ast_key[key_index].cipher = key->cipher; in mac_user_add_key_common()
205 mac_user->key_info.ast_key[key_index].key_len = (hi_u32)key->key_len; in mac_user_add_key_common()
206 mac_user->key_info.ast_key[key_index].seq_len = (hi_u32)key->seq_len; in mac_user_add_key_common()
208 if (memcpy_s(mac_user->key_info.ast_key[key_index].auc_key, WLAN_WPA_KEY_LEN, key->auc_key, (hi_u32)key->key_len) != in mac_user_add_key_common()
212 if (memcpy_s(mac_user->key_info.ast_key[key_index].auc_seq, WLAN_WPA_SEQ_LEN, key->auc_seq, (hi_u32)key->seq_len) != in mac_user_add_key_common()
222 mac_user->key_info.default_index = key_index; in mac_user_add_key_common()
228 WIFI_ROM_TEXT hi_u32 mac_user_add_wep_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key) in mac_user_add_wep_key() argument
230 return mac_user_add_key_common(mac_user, key_index, ke in mac_user_add_wep_key()
248 mac_user_add_rsn_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key) mac_user_add_rsn_key() argument
260 mac_user_add_bip_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key) mac_user_add_bip_key() argument
[all...]
H A Dmac_vap.c1315 if (wep_addkey_params->key_index >= WLAN_MAX_WEP_KEY_COUNT) { in mac_vap_add_wep_key()
1339 multi_user->key_info.default_index = wep_addkey_params->key_index; in mac_vap_add_wep_key()
1344 wep_key = &multi_user->key_info.ast_key[wep_addkey_params->key_index]; in mac_vap_add_wep_key()
1354 multi_user->user_tx_info.security.cipher_key_type = wep_addkey_params->key_index + HAL_KEY_TYPE_PTK; in mac_vap_add_wep_key()
1457 wep_key.key_index = mac_sec_param->wep_key_index; in mac_vap_init_privacy()
1795 WIFI_ROM_TEXT hi_u32 mac_vap_set_default_key(const mac_vap_stru *mac_vap, hi_u8 key_index) in mac_vap_set_default_key() argument
1810 wep_key = &multi_user->key_info.ast_key[key_index]; in mac_vap_set_default_key()
1817 multi_user->key_info.default_index = key_index; in mac_vap_set_default_key()
1819 mac_mib_set_wep_default_keyid(mac_vap, key_index); in mac_vap_set_default_key()
1830 WIFI_ROM_TEXT hi_u32 mac_vap_set_default_mgmt_key(const mac_vap_stru *mac_vap, hi_u8 key_index) in mac_vap_set_default_mgmt_key() argument
[all...]
H A Dmac_vap.h892 hi_u8 key_index; member
903 hi_u8 key_index; member
920 hi_u8 key_index; member
931 hi_u8 key_index; member
940 hi_u8 key_index; member
946 hi_u8 key_index; member
1579 hi_u32 mac_vap_set_default_key(const mac_vap_stru *mac_vap, hi_u8 key_index);
1580 hi_u32 mac_vap_set_default_mgmt_key(const mac_vap_stru *mac_vap, hi_u8 key_index);
H A Dmac_user.h505 hi_u32 mac_user_add_wep_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key);
506 hi_u32 mac_user_add_rsn_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key);
507 hi_u32 mac_user_add_bip_key(mac_user_stru *mac_user, hi_u8 key_index, const mac_key_params_stru *key);
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/
H A Dhmac_11i.c55 hi_u8 key_index, hi_u8 *pus_user_idx) in hmac_get_key_info()
84 oam_info_log2(mac_vap->vap_id, OAM_SF_WPA, "{hmac_get_key_info::key_index=%d,pairwise=%d.}", key_index, pairwise); in hmac_get_key_info()
91 return mac_user_get_key(mac_user, key_index); in hmac_get_key_info()
104 hi_u8 key_index; in hmac_config_wapi_add_key() local
113 key_index = payload_addkey_params->key_index; in hmac_config_wapi_add_key()
114 if (key_index >= HMAC_WAPI_MAX_KEYID) { in hmac_config_wapi_add_key()
115 oam_error_log1(0, OAM_SF_WPA, "{hmac_config_wapi_add_key::keyid==%u Err!.}", key_index); in hmac_config_wapi_add_key()
144 hmac_wapi_add_key(wapi, key_index, key_para in hmac_config_wapi_add_key()
54 hmac_get_key_info(mac_vap_stru *mac_vap, hi_u8 *mac_addr, hi_u8 pairwise, hi_u8 key_index, hi_u8 *pus_user_idx) hmac_get_key_info() argument
207 hi_u8 key_index = payload_addkey_params->key_index; hmac_config_11i_add_key() local
287 hi_u8 key_index; hmac_config_11i_get_key() local
358 hi_u8 key_index = removekey->key_index; hmac_config_11i_remove_key() local
435 hi_u8 key_index; hmac_config_11i_set_default_key() local
[all...]
H A Dhmac_wapi.c415 hi_u32 hmac_wapi_add_key(hmac_wapi_stru *wapi, hi_u8 key_index, const hi_u8 *puc_key) in hmac_wapi_add_key() argument
420 wapi->keyidx = key_index; in hmac_wapi_add_key()
422 key = &(wapi->ast_wapi_key[key_index]); in hmac_wapi_add_key()
515 hi_u8 key_index = *puc_wapi_hdr; in hmac_wapi_decrypt() local
517 if (key_index >= HMAC_WAPI_MAX_KEYID) { in hmac_wapi_decrypt()
519 oam_error_log1(0, OAM_SF_ANY, "{hmac_wpi_decrypt::uc_key_index %u err!.}", key_index); in hmac_wapi_decrypt()
564 wpi_key_ek.puc_key = wapi->ast_wapi_key[key_index].auc_wpi_ek; in hmac_wapi_decrypt()
591 if (hmac_wapi_calc_mic_data(mac_hdr, key_index, oal_netbuf_data(netbuff_des) + mac_hdr_len, us_pdu_len, in hmac_wapi_decrypt()
598 wpi_key_ck.puc_key = wapi->ast_wapi_key[key_index].auc_wpi_ck; in hmac_wapi_decrypt()
656 if (hmac_wapi_calc_mic_data(mac_hdr, hmac_wapi->key_index, puc_payloa in hmac_wapi_encrypt_mic()
[all...]
H A Dhmac_wapi.h127 hi_u8 key_index; member
145 hi_u32 hmac_wapi_add_key(hmac_wapi_stru *wapi, hi_u8 key_index, const hi_u8 *puc_key);
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_cfg80211.h236 hi_u32 wal_cfg80211_set_default_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index,
248 hi_u32 wal_cfg80211_add_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, bool pairwise,
250 hi_u32 wal_cfg80211_remove_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, hi_bool pairwise,
262 hi_s32 wal_cfg80211_set_default_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, bool unicast,
H A Dwal_cfg80211.c801 static hi_s32 wal_cfg80211_get_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, bool pairwise, in wal_cfg80211_get_key() argument
819 payload.key_index = key_index; in wal_cfg80211_get_key()
836 oam_info_log2(0, OAM_SF_ANY, "{wal_cfg80211_get_key::key_idx:%d,en_pairwise:%d}", key_index, payload.pairwise); in wal_cfg80211_get_key()
882 [3]key_index
886 hi_s32 wal_cfg80211_set_default_mgmt_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index) in wal_cfg80211_set_default_mgmt_key() argument
3289 hi_u32 wal_cfg80211_add_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, bool pairwise, in wal_cfg80211_add_key() argument
3315 payload_params.key_index = key_index; in wal_cfg80211_add_key()
3361 [3]key_index
3368 wal_cfg80211_remove_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, hi_bool pairwise, const hi_u8 *mac_addr) wal_cfg80211_remove_key() argument
3429 wal_cfg80211_set_default_key(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, hi_bool unicast, hi_bool multicast) wal_cfg80211_set_default_key() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_demo_hks.c121 hi_u32 app_hks_get_key_store_addr(hi_u32 *addr, hi_u32 *size, hi_u32 key_index) in app_hks_get_key_store_addr() argument
129 if (key_index >= MAX_KEY_CNT) { in app_hks_get_key_store_addr()
133 *addr = usr_partion_addr + KEY_STORE_START_ADDR + key_index * KEY_LEN; in app_hks_get_key_store_addr()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/
H A Doal_net.h1311 hi_u8 key_index; member
1316 hi_u8 key_index; member
1601 hi_s32 (*del_key)(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, hi_bool en_pairwise,
1603 hi_s32 (*set_default_key)(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index, hi_bool en_unicast,
1605 hi_s32 (*set_default_mgmt_key)(oal_wiphy_stru *wiphy, oal_net_device_stru *netdev, hi_u8 key_index);

Completed in 26 milliseconds