Lines Matching refs:key_index
540 u8 key_index, bool pairwise, const u8 *mac_addr, in add_key() argument
560 ret = wilc_wfi_cfg_allocate_wpa_entry(priv, key_index); in add_key()
579 key = priv->wilc_gtk[key_index]; in add_key()
586 key = priv->wilc_ptk[key_index]; in add_key()
606 key_index, params->seq_len, in add_key()
612 key_index); in add_key()
616 ret = wilc_wfi_cfg_allocate_wpa_igtk_entry(priv, key_index); in add_key()
620 key = priv->wilc_igtk[key_index - 4]; in add_key()
633 key_index); in add_key()
645 u8 key_index, in del_key() argument
652 if (!pairwise && (key_index == 4 || key_index == 5)) { in del_key()
653 key_index -= 4; in del_key()
654 if (priv->wilc_igtk[key_index]) { in del_key()
655 kfree(priv->wilc_igtk[key_index]->key); in del_key()
656 priv->wilc_igtk[key_index]->key = NULL; in del_key()
657 kfree(priv->wilc_igtk[key_index]->seq); in del_key()
658 priv->wilc_igtk[key_index]->seq = NULL; in del_key()
659 kfree(priv->wilc_igtk[key_index]); in del_key()
660 priv->wilc_igtk[key_index] = NULL; in del_key()
663 if (priv->wilc_gtk[key_index]) { in del_key()
664 kfree(priv->wilc_gtk[key_index]->key); in del_key()
665 priv->wilc_gtk[key_index]->key = NULL; in del_key()
666 kfree(priv->wilc_gtk[key_index]->seq); in del_key()
667 priv->wilc_gtk[key_index]->seq = NULL; in del_key()
669 kfree(priv->wilc_gtk[key_index]); in del_key()
670 priv->wilc_gtk[key_index] = NULL; in del_key()
672 if (priv->wilc_ptk[key_index]) { in del_key()
673 kfree(priv->wilc_ptk[key_index]->key); in del_key()
674 priv->wilc_ptk[key_index]->key = NULL; in del_key()
675 kfree(priv->wilc_ptk[key_index]->seq); in del_key()
676 priv->wilc_ptk[key_index]->seq = NULL; in del_key()
677 kfree(priv->wilc_ptk[key_index]); in del_key()
678 priv->wilc_ptk[key_index] = NULL; in del_key()
686 u8 key_index, bool pairwise, const u8 *mac_addr, in get_key() argument
695 if (key_index == 4 || key_index == 5) { in get_key()
696 key_index -= 4; in get_key()
697 key_params.key = priv->wilc_igtk[key_index]->key; in get_key()
698 key_params.cipher = priv->wilc_igtk[key_index]->cipher; in get_key()
699 key_params.key_len = priv->wilc_igtk[key_index]->key_len; in get_key()
700 key_params.seq = priv->wilc_igtk[key_index]->seq; in get_key()
701 key_params.seq_len = priv->wilc_igtk[key_index]->seq_len; in get_key()
703 key_params.key = priv->wilc_gtk[key_index]->key; in get_key()
704 key_params.cipher = priv->wilc_gtk[key_index]->cipher; in get_key()
705 key_params.key_len = priv->wilc_gtk[key_index]->key_len; in get_key()
706 key_params.seq = priv->wilc_gtk[key_index]->seq; in get_key()
707 key_params.seq_len = priv->wilc_gtk[key_index]->seq_len; in get_key()
710 key_params.key = priv->wilc_ptk[key_index]->key; in get_key()
711 key_params.cipher = priv->wilc_ptk[key_index]->cipher; in get_key()
712 key_params.key_len = priv->wilc_ptk[key_index]->key_len; in get_key()
713 key_params.seq = priv->wilc_ptk[key_index]->seq; in get_key()
714 key_params.seq_len = priv->wilc_ptk[key_index]->seq_len; in get_key()
724 int link_id, u8 key_index, bool unicast, in set_default_key() argument
731 int link_id, u8 key_index) in set_default_mgmt_key() argument
735 return wilc_set_default_mgmt_key_index(vif, key_index); in set_default_mgmt_key()