Lines Matching refs:km

599 				  struct host_cmd_ds_802_11_key_material_v2 *km)  in mwifiex_set_aes_key_v2()  argument
608 memcpy(km->key_param_set.key_params.cmac_aes.ipn, in mwifiex_set_aes_key_v2()
610 km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); in mwifiex_set_aes_key_v2()
611 km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); in mwifiex_set_aes_key_v2()
612 km->key_param_set.key_type = KEY_TYPE_ID_AES_CMAC; in mwifiex_set_aes_key_v2()
613 km->key_param_set.key_params.cmac_aes.key_len = in mwifiex_set_aes_key_v2()
615 memcpy(km->key_param_set.key_params.cmac_aes.key, in mwifiex_set_aes_key_v2()
621 km->key_param_set.key_type = KEY_TYPE_ID_AES_CMAC_DEF; in mwifiex_set_aes_key_v2()
622 km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK; in mwifiex_set_aes_key_v2()
627 memcpy(km->key_param_set.key_params.aes.pn, in mwifiex_set_aes_key_v2()
629 km->key_param_set.key_type = KEY_TYPE_ID_AES; in mwifiex_set_aes_key_v2()
630 km->key_param_set.key_params.aes.key_len = in mwifiex_set_aes_key_v2()
632 memcpy(km->key_param_set.key_params.aes.key, in mwifiex_set_aes_key_v2()
637 km->key_param_set.len = cpu_to_le16(len); in mwifiex_set_aes_key_v2()
639 sizeof(km->action) + S_DS_GEN; in mwifiex_set_aes_key_v2()
662 struct host_cmd_ds_802_11_key_material_v2 *km = in mwifiex_cmd_802_11_key_material_v2() local
666 km->action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_key_material_v2()
670 km->key_param_set.key_idx = in mwifiex_cmd_802_11_key_material_v2()
672 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); in mwifiex_cmd_802_11_key_material_v2()
673 km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN); in mwifiex_cmd_802_11_key_material_v2()
674 memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN); in mwifiex_cmd_802_11_key_material_v2()
684 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
688 sizeof(km->action)); in mwifiex_cmd_802_11_key_material_v2()
692 memset(&km->key_param_set, 0, in mwifiex_cmd_802_11_key_material_v2()
697 km->action = cpu_to_le16(HostCmd_ACT_GEN_REMOVE); in mwifiex_cmd_802_11_key_material_v2()
698 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); in mwifiex_cmd_802_11_key_material_v2()
699 km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN); in mwifiex_cmd_802_11_key_material_v2()
700 km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK; in mwifiex_cmd_802_11_key_material_v2()
702 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
703 memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN); in mwifiex_cmd_802_11_key_material_v2()
706 sizeof(km->action)); in mwifiex_cmd_802_11_key_material_v2()
710 km->action = cpu_to_le16(HostCmd_ACT_GEN_SET); in mwifiex_cmd_802_11_key_material_v2()
711 km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK; in mwifiex_cmd_802_11_key_material_v2()
712 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); in mwifiex_cmd_802_11_key_material_v2()
714 memcpy(km->key_param_set.mac_addr, mac, ETH_ALEN); in mwifiex_cmd_802_11_key_material_v2()
719 km->key_param_set.len = cpu_to_le16(len); in mwifiex_cmd_802_11_key_material_v2()
720 km->key_param_set.key_type = KEY_TYPE_ID_WEP; in mwifiex_cmd_802_11_key_material_v2()
727 if (km->key_param_set.key_idx == in mwifiex_cmd_802_11_key_material_v2()
737 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
739 km->key_param_set.key_params.wep.key_len = in mwifiex_cmd_802_11_key_material_v2()
741 memcpy(km->key_param_set.key_params.wep.key, in mwifiex_cmd_802_11_key_material_v2()
745 len + sizeof(km->action) + S_DS_GEN); in mwifiex_cmd_802_11_key_material_v2()
756 km->key_param_set.key_type = KEY_TYPE_ID_WAPI; in mwifiex_cmd_802_11_key_material_v2()
757 memcpy(km->key_param_set.key_params.wapi.pn, enc_key->pn, in mwifiex_cmd_802_11_key_material_v2()
759 km->key_param_set.key_params.wapi.key_len = in mwifiex_cmd_802_11_key_material_v2()
761 memcpy(km->key_param_set.key_params.wapi.key, in mwifiex_cmd_802_11_key_material_v2()
768 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
771 km->key_param_set.len = cpu_to_le16(len); in mwifiex_cmd_802_11_key_material_v2()
773 len + sizeof(km->action) + S_DS_GEN); in mwifiex_cmd_802_11_key_material_v2()
789 km->key_param_set.key_info = cpu_to_le16(key_info); in mwifiex_cmd_802_11_key_material_v2()
792 return mwifiex_set_aes_key_v2(priv, cmd, enc_key, km); in mwifiex_cmd_802_11_key_material_v2()
798 memcpy(km->key_param_set.key_params.tkip.pn, in mwifiex_cmd_802_11_key_material_v2()
800 km->key_param_set.key_type = KEY_TYPE_ID_TKIP; in mwifiex_cmd_802_11_key_material_v2()
801 km->key_param_set.key_params.tkip.key_len = in mwifiex_cmd_802_11_key_material_v2()
803 memcpy(km->key_param_set.key_params.tkip.key, in mwifiex_cmd_802_11_key_material_v2()
807 km->key_param_set.len = cpu_to_le16(len); in mwifiex_cmd_802_11_key_material_v2()
809 len + sizeof(km->action) + S_DS_GEN); in mwifiex_cmd_802_11_key_material_v2()