Lines Matching refs:key_index
544 u8 key_index, bool pairwise, const u8 *mac_addr, in add_key() argument
564 ret = wilc_wfi_cfg_allocate_wpa_entry(priv, key_index); in add_key()
583 key = priv->wilc_gtk[key_index]; in add_key()
590 key = priv->wilc_ptk[key_index]; in add_key()
610 key_index, params->seq_len, in add_key()
616 key_index); in add_key()
620 ret = wilc_wfi_cfg_allocate_wpa_igtk_entry(priv, key_index); in add_key()
624 key = priv->wilc_igtk[key_index - 4]; in add_key()
637 key_index); in add_key()
649 u8 key_index, in del_key() argument
656 if (!pairwise && (key_index == 4 || key_index == 5)) { in del_key()
657 key_index -= 4; in del_key()
658 if (priv->wilc_igtk[key_index]) { in del_key()
659 kfree(priv->wilc_igtk[key_index]->key); in del_key()
660 priv->wilc_igtk[key_index]->key = NULL; in del_key()
661 kfree(priv->wilc_igtk[key_index]->seq); in del_key()
662 priv->wilc_igtk[key_index]->seq = NULL; in del_key()
663 kfree(priv->wilc_igtk[key_index]); in del_key()
664 priv->wilc_igtk[key_index] = NULL; in del_key()
667 if (priv->wilc_gtk[key_index]) { in del_key()
668 kfree(priv->wilc_gtk[key_index]->key); in del_key()
669 priv->wilc_gtk[key_index]->key = NULL; in del_key()
670 kfree(priv->wilc_gtk[key_index]->seq); in del_key()
671 priv->wilc_gtk[key_index]->seq = NULL; in del_key()
673 kfree(priv->wilc_gtk[key_index]); in del_key()
674 priv->wilc_gtk[key_index] = NULL; in del_key()
676 if (priv->wilc_ptk[key_index]) { in del_key()
677 kfree(priv->wilc_ptk[key_index]->key); in del_key()
678 priv->wilc_ptk[key_index]->key = NULL; in del_key()
679 kfree(priv->wilc_ptk[key_index]->seq); in del_key()
680 priv->wilc_ptk[key_index]->seq = NULL; in del_key()
681 kfree(priv->wilc_ptk[key_index]); in del_key()
682 priv->wilc_ptk[key_index] = NULL; in del_key()
690 u8 key_index, bool pairwise, const u8 *mac_addr, in get_key() argument
699 if (key_index == 4 || key_index == 5) { in get_key()
700 key_index -= 4; in get_key()
701 key_params.key = priv->wilc_igtk[key_index]->key; in get_key()
702 key_params.cipher = priv->wilc_igtk[key_index]->cipher; in get_key()
703 key_params.key_len = priv->wilc_igtk[key_index]->key_len; in get_key()
704 key_params.seq = priv->wilc_igtk[key_index]->seq; in get_key()
705 key_params.seq_len = priv->wilc_igtk[key_index]->seq_len; in get_key()
707 key_params.key = priv->wilc_gtk[key_index]->key; in get_key()
708 key_params.cipher = priv->wilc_gtk[key_index]->cipher; in get_key()
709 key_params.key_len = priv->wilc_gtk[key_index]->key_len; in get_key()
710 key_params.seq = priv->wilc_gtk[key_index]->seq; in get_key()
711 key_params.seq_len = priv->wilc_gtk[key_index]->seq_len; in get_key()
714 key_params.key = priv->wilc_ptk[key_index]->key; in get_key()
715 key_params.cipher = priv->wilc_ptk[key_index]->cipher; in get_key()
716 key_params.key_len = priv->wilc_ptk[key_index]->key_len; in get_key()
717 key_params.seq = priv->wilc_ptk[key_index]->seq; in get_key()
718 key_params.seq_len = priv->wilc_ptk[key_index]->seq_len; in get_key()
728 int link_id, u8 key_index, bool unicast, in set_default_key() argument
735 int link_id, u8 key_index) in set_default_mgmt_key() argument
739 return wilc_set_default_mgmt_key_index(vif, key_index); in set_default_mgmt_key()