/drivers/net/wireless/microchip/wilc1000/ |
D | cfg80211.c | 491 u8 key_index, in wilc_wfi_cfg_copy_wep_info() argument 494 priv->wep_key_len[key_index] = params->key_len; in wilc_wfi_cfg_copy_wep_info() 495 memcpy(priv->wep_key[key_index], params->key, params->key_len); in wilc_wfi_cfg_copy_wep_info() 543 u8 key_index, bool pairwise, const u8 *mac_addr, in add_key() argument 559 wilc_wfi_cfg_copy_wep_info(priv, key_index, params); in add_key() 568 key_index, mode, in add_key() 572 if (memcmp(params->key, priv->wep_key[key_index], in add_key() 574 wilc_wfi_cfg_copy_wep_info(priv, key_index, params); in add_key() 578 key_index); in add_key() 589 ret = wilc_wfi_cfg_allocate_wpa_entry(priv, key_index); in add_key() [all …]
|
/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.c | 1012 int key_index, index_specified; in gelic_wl_set_encode() local 1017 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_set_encode() 1019 pr_debug("%s: key_index = %d\n", __func__, key_index); in gelic_wl_set_encode() 1023 if (GELIC_WEP_KEYS < key_index) in gelic_wl_set_encode() 1027 if (key_index) { in gelic_wl_set_encode() 1029 key_index--; in gelic_wl_set_encode() 1032 key_index = wl->current_key; in gelic_wl_set_encode() 1038 wl->current_key = key_index; in gelic_wl_set_encode() 1051 clear_bit(key_index, &wl->key_enabled); in gelic_wl_set_encode() 1065 wl->key_len[key_index] = enc->length; in gelic_wl_set_encode() [all …]
|
/drivers/staging/wlan-ng/ |
D | cfg80211.c | 146 int link_id, u8 key_index, bool pairwise, in prism2_add_key() argument 152 if (key_index >= NUM_WEPKEYS) in prism2_add_key() 163 key_index)) in prism2_add_key() 167 did = didmib_dot11smt_wepdefaultkeystable_key(key_index + 1); in prism2_add_key() 175 int link_id, u8 key_index, bool pairwise, in prism2_get_key() argument 183 if (key_index >= NUM_WEPKEYS) in prism2_get_key() 186 len = wlandev->wep_keylens[key_index]; in prism2_get_key() 196 params.key = wlandev->wep_keys[key_index]; in prism2_get_key() 205 int link_id, u8 key_index, bool pairwise, in prism2_del_key() argument 217 if (key_index >= NUM_WEPKEYS) in prism2_del_key() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | commands.h | 38 int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise, 40 int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise, 42 int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index, 44 int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
|
D | cfg80211.c | 535 int link_id, u8 key_index, bool pairwise, in qtnf_add_key() argument 541 ret = qtnf_cmd_send_add_key(vif, key_index, pairwise, mac_addr, params); in qtnf_add_key() 544 vif->mac->macid, vif->vifid, params->cipher, key_index, in qtnf_add_key() 551 int link_id, u8 key_index, bool pairwise, in qtnf_del_key() argument 557 ret = qtnf_cmd_send_del_key(vif, key_index, pairwise, mac_addr); in qtnf_del_key() 561 vif->mac->macid, vif->vifid, key_index); in qtnf_del_key() 565 key_index, pairwise); in qtnf_del_key() 573 int link_id, u8 key_index, bool unicast, in qtnf_set_default_key() argument 579 ret = qtnf_cmd_send_set_default_key(vif, key_index, unicast, multicast); in qtnf_set_default_key() 582 vif->mac->macid, vif->vifid, key_index, unicast, in qtnf_set_default_key() [all …]
|
D | qlink.h | 463 u8 key_index; member 481 u8 key_index; member 495 u8 key_index; member 508 u8 key_index; member 1445 u8 key_index; member
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | mac.c | 192 void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl92c_set_key() argument 247 macaddr = cam_const_addr[key_index]; in rtl92c_set_key() 248 entry_id = key_index; in rtl92c_set_key() 252 entry_id = key_index; in rtl92c_set_key() 266 key_index = PAIRWISE_KEYIDX; in rtl92c_set_key() 270 if (rtlpriv->sec.key_len[key_index] == 0) { in rtl92c_set_key() 296 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key() 300 key_buf[key_index]); in rtl92c_set_key() 314 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key()
|
/drivers/net/wireless/ath/ath5k/ |
D | desc.c | 82 unsigned int key_index, in ath5k_hw_setup_2word_tx_desc() argument 199 if (key_index != AR5K_TXKEYIX_INVALID) { in ath5k_hw_setup_2word_tx_desc() 203 AR5K_REG_SM(key_index, in ath5k_hw_setup_2word_tx_desc() 248 unsigned int key_index, in ath5k_hw_setup_4word_tx_desc() argument 335 if (key_index != AR5K_TXKEYIX_INVALID) { in ath5k_hw_setup_4word_tx_desc() 337 txctl1 |= AR5K_REG_SM(key_index, in ath5k_hw_setup_4word_tx_desc()
|
/drivers/net/wireless/ath/ath6kl/ |
D | cfg80211.c | 1127 int link_id, u8 key_index, bool pairwise, in ath6kl_cfg80211_add_key() argument 1148 if (key_index > WMI_MAX_KEY_INDEX) { in ath6kl_cfg80211_add_key() 1151 key_index); in ath6kl_cfg80211_add_key() 1155 key = &vif->keys[key_index]; in ath6kl_cfg80211_add_key() 1207 __func__, key_index, key->key_len, key_type, in ath6kl_cfg80211_add_key() 1214 ar->ap_mode_bkey.key_index = key_index; in ath6kl_cfg80211_add_key() 1238 vif->wep_key_list[key_index].key_len = key->key_len; in ath6kl_cfg80211_add_key() 1239 memcpy(vif->wep_key_list[key_index].key, key->key, in ath6kl_cfg80211_add_key() 1244 return ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, key_index, in ath6kl_cfg80211_add_key() 1252 int link_id, u8 key_index, bool pairwise, in ath6kl_cfg80211_del_key() argument [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_ioctl.c | 925 index = encrypt_key->key_index; in mwifiex_sec_ioctl_set_wep_key() 952 wep_key->key_index = index; in mwifiex_sec_ioctl_set_wep_key() 1020 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key() 1040 encrypt_key->key_index = ~MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key() 1043 if (!encrypt_key->key_index) in mwifiex_sec_ioctl_set_wpa_key() 1044 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key() 1109 const u8 *key, int key_len, u8 key_index, in mwifiex_set_encode() argument 1116 encrypt_key.key_index = key_index; in mwifiex_set_encode()
|
D | ioctl.h | 76 u8 key_index; member 256 u32 key_index; member
|
/drivers/net/wireless/ath/wil6210/ |
D | cfg80211.c | 1559 void wil_set_crypto_rx(u8 key_index, enum wmi_key_usage key_usage, in wil_set_crypto_rx() argument 1573 cc = &cs->tid_crypto_rx[tid].key_id[key_index]; in wil_set_crypto_rx() 1583 cc = &cs->group_crypto_rx.key_id[key_index]; in wil_set_crypto_rx() 1595 static void wil_del_rx_key(u8 key_index, enum wmi_key_usage key_usage, in wil_del_rx_key() argument 1607 cc = &cs->tid_crypto_rx[tid].key_id[key_index]; in wil_del_rx_key() 1612 cc = &cs->group_crypto_rx.key_id[key_index]; in wil_del_rx_key() 1622 u8 key_index, bool pairwise, in wil_cfg80211_add_key() argument 1641 mac_addr, key_usage_str[key_usage], key_index, in wil_cfg80211_add_key() 1650 mac_addr, key_usage_str[key_usage], key_index, in wil_cfg80211_add_key() 1657 wil_del_rx_key(key_index, key_usage, cs); in wil_cfg80211_add_key() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | cfg.c | 1441 u8 key_index, bool unicast, in lbs_cfg_set_default_key() argument 1449 if (key_index != priv->wep_tx_key) { in lbs_cfg_set_default_key() 1450 lbs_deb_assoc("set_default_key: to %d\n", key_index); in lbs_cfg_set_default_key() 1451 priv->wep_tx_key = key_index; in lbs_cfg_set_default_key() 1521 int link_id, u8 key_index, bool pairwise, in lbs_cfg_del_key() argument 1526 key_index, mac_addr); in lbs_cfg_del_key() 1545 if (key_index < 3 && priv->wep_key_len[key_index]) { in lbs_cfg_del_key() 1546 priv->wep_key_len[key_index] = 0; in lbs_cfg_del_key()
|
/drivers/net/wireless/ |
D | rndis_wlan.c | 492 int link_id, u8 key_index, bool pairwise, 496 int link_id, u8 key_index, bool pairwise, 500 int link_id, u8 key_index, bool unicast, 2375 int link_id, u8 key_index, bool pairwise, in rndis_add_key() argument 2383 __func__, key_index, mac_addr, params->cipher); in rndis_add_key() 2389 key_index); in rndis_add_key() 2401 key_index, mac_addr, params->seq, in rndis_add_key() 2411 int link_id, u8 key_index, bool pairwise, in rndis_del_key() argument 2417 netdev_dbg(usbdev->net, "%s(%i, %pM)\n", __func__, key_index, mac_addr); in rndis_del_key() 2419 return remove_key(usbdev, key_index, mac_addr); in rndis_del_key() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.h | 31 void rtl8723be_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | hw.h | 29 void rtl92de_set_key(struct ieee80211_hw *hw, u32 key_index,
|
D | hw.c | 2089 void rtl92de_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl92de_set_key() argument 2145 macaddr = cam_const_addr[key_index]; in rtl92de_set_key() 2146 entry_id = key_index; in rtl92de_set_key() 2150 entry_id = key_index; in rtl92de_set_key() 2162 key_index = PAIRWISE_KEYIDX; in rtl92de_set_key() 2166 if (rtlpriv->sec.key_len[key_index] == 0) { in rtl92de_set_key() 2191 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92de_set_key() 2195 sec.key_buf[key_index]); in rtl92de_set_key() 2207 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92de_set_key()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | hw.h | 29 void rtl88ee_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.h | 29 void rtl92ee_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | hw.h | 48 u32 key_index, u8 *macaddr, bool is_group,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.h | 42 void rtl92ce_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hw.h | 35 void rtl8723e_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.h | 31 void rtl8821ae_set_key(struct ieee80211_hw *hw, u32 key_index,
|
/drivers/nfc/fdp/ |
D | fdp.c | 53 u8 key_index; member 648 info->key_index = *p++; in fdp_nci_core_get_config_rsp_packet() 655 dev_dbg(dev, "key index %d\n", info->key_index); in fdp_nci_core_get_config_rsp_packet()
|
/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_cfg80211.c | 857 int link_id, u8 key_index, bool pairwise, in cfg80211_rtw_add_key() argument 909 param->u.crypt.idx = key_index; in cfg80211_rtw_add_key() 939 int link_id, u8 key_index, bool pairwise, in cfg80211_rtw_get_key() argument 948 int link_id, u8 key_index, bool pairwise, in cfg80211_rtw_del_key() argument 954 if (key_index == psecuritypriv->dot11PrivacyKeyIndex) { in cfg80211_rtw_del_key() 963 struct net_device *ndev, int link_id, u8 key_index in cfg80211_rtw_set_default_key() argument 970 …if ((key_index < WEP_KEYS) && ((psecuritypriv->dot11PrivacyAlgrthm == _WEP40_) || (psecuritypriv->… in cfg80211_rtw_set_default_key() 973 psecuritypriv->dot11PrivacyKeyIndex = key_index; in cfg80211_rtw_set_default_key() 977 if (psecuritypriv->dot11DefKeylen[key_index] == 13) { in cfg80211_rtw_set_default_key() 1775 pwep->key_index = wep_key_idx; in cfg80211_rtw_connect() [all …]
|