Home
last modified time | relevance | path

Searched refs:key_index (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v4.19/drivers/staging/wilc1000/
Dwilc_wfi_cfgoperations.c850 u8 key_index, in wilc_wfi_cfg_copy_wep_info() argument
853 priv->wep_key_len[key_index] = params->key_len; in wilc_wfi_cfg_copy_wep_info()
854 memcpy(priv->wep_key[key_index], params->key, params->key_len); in wilc_wfi_cfg_copy_wep_info()
901 static int add_key(struct wiphy *wiphy, struct net_device *netdev, u8 key_index, in add_key() argument
917 wilc_wfi_cfg_copy_wep_info(priv, key_index, params); in add_key()
926 key_index, mode, in add_key()
930 if (memcmp(params->key, priv->wep_key[key_index], in add_key()
932 wilc_wfi_cfg_copy_wep_info(priv, key_index, params); in add_key()
936 key_index); in add_key()
947 ret = wilc_wfi_cfg_allocate_wpa_entry(priv, key_index); in add_key()
[all …]
/Linux-v4.19/drivers/net/ethernet/toshiba/
Dps3_gelic_wireless.c1024 int key_index, index_specified; in gelic_wl_set_encode() local
1029 key_index = enc->flags & IW_ENCODE_INDEX; in gelic_wl_set_encode()
1031 pr_debug("%s: key_index = %d\n", __func__, key_index); in gelic_wl_set_encode()
1035 if (GELIC_WEP_KEYS < key_index) in gelic_wl_set_encode()
1039 if (key_index) { in gelic_wl_set_encode()
1041 key_index--; in gelic_wl_set_encode()
1044 key_index = wl->current_key; in gelic_wl_set_encode()
1050 wl->current_key = key_index; in gelic_wl_set_encode()
1063 clear_bit(key_index, &wl->key_enabled); in gelic_wl_set_encode()
1077 wl->key_len[key_index] = enc->length; in gelic_wl_set_encode()
[all …]
/Linux-v4.19/drivers/staging/wlan-ng/
Dcfg80211.c145 u8 key_index, bool pairwise, const u8 *mac_addr, in prism2_add_key() argument
151 if (key_index >= NUM_WEPKEYS) in prism2_add_key()
162 key_index)) in prism2_add_key()
166 did = DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(key_index + 1); in prism2_add_key()
174 u8 key_index, bool pairwise, in prism2_get_key() argument
182 if (key_index >= NUM_WEPKEYS) in prism2_get_key()
185 len = wlandev->wep_keylens[key_index]; in prism2_get_key()
195 params.key = wlandev->wep_keys[key_index]; in prism2_get_key()
204 u8 key_index, bool pairwise, const u8 *mac_addr) in prism2_del_key() argument
215 if (key_index >= NUM_WEPKEYS) in prism2_del_key()
[all …]
/Linux-v4.19/drivers/net/wireless/quantenna/qtnfmac/
Dcommands.h48 int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
50 int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
52 int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index,
54 int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
Dcfg80211.c502 u8 key_index, bool pairwise, const u8 *mac_addr, in qtnf_add_key() argument
508 ret = qtnf_cmd_send_add_key(vif, key_index, pairwise, mac_addr, params); in qtnf_add_key()
511 vif->mac->macid, vif->vifid, params->cipher, key_index, in qtnf_add_key()
518 u8 key_index, bool pairwise, const u8 *mac_addr) in qtnf_del_key() argument
523 ret = qtnf_cmd_send_del_key(vif, key_index, pairwise, mac_addr); in qtnf_del_key()
526 vif->mac->macid, vif->vifid, key_index, pairwise); in qtnf_del_key()
532 u8 key_index, bool unicast, bool multicast) in qtnf_set_default_key() argument
537 ret = qtnf_cmd_send_set_default_key(vif, key_index, unicast, multicast); in qtnf_set_default_key()
540 vif->mac->macid, vif->vifid, key_index, unicast, in qtnf_set_default_key()
548 u8 key_index) in qtnf_set_default_mgmt_key() argument
[all …]
Dqlink.h376 u8 key_index; member
393 u8 key_index; member
407 u8 key_index; member
419 u8 key_index; member
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dmac.c214 void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl92c_set_key() argument
269 macaddr = cam_const_addr[key_index]; in rtl92c_set_key()
270 entry_id = key_index; in rtl92c_set_key()
274 entry_id = key_index; in rtl92c_set_key()
288 key_index = PAIRWISE_KEYIDX; in rtl92c_set_key()
292 if (rtlpriv->sec.key_len[key_index] == 0) { in rtl92c_set_key()
318 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key()
322 key_buf[key_index]); in rtl92c_set_key()
336 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92c_set_key()
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Ddesc.c82 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()
/Linux-v4.19/net/wireless/
Drdev-ops.h75 struct net_device *netdev, u8 key_index, in rdev_add_key() argument
80 trace_rdev_add_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); in rdev_add_key()
81 ret = rdev->ops->add_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_add_key()
89 u8 key_index, bool pairwise, const u8 *mac_addr, void *cookie, in rdev_get_key() argument
93 trace_rdev_get_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); in rdev_get_key()
94 ret = rdev->ops->get_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_get_key()
101 struct net_device *netdev, u8 key_index, in rdev_del_key() argument
105 trace_rdev_del_key(&rdev->wiphy, netdev, key_index, pairwise, mac_addr); in rdev_del_key()
106 ret = rdev->ops->del_key(&rdev->wiphy, netdev, key_index, pairwise, in rdev_del_key()
114 struct net_device *netdev, u8 key_index, bool unicast, in rdev_set_default_key() argument
[all …]
Dtrace.h393 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
395 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr),
400 __field(u8, key_index)
407 __entry->key_index = key_index;
411 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->key_index,
416 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
418 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
422 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
424 TP_ARGS(wiphy, netdev, key_index, pairwise, mac_addr)
428 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, u8 key_index,
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c1127 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 u8 key_index, bool pairwise, in ath6kl_cfg80211_del_key() argument
[all …]
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c912 index = encrypt_key->key_index; in mwifiex_sec_ioctl_set_wep_key()
939 wep_key->key_index = index; in mwifiex_sec_ioctl_set_wep_key()
1007 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
1027 encrypt_key->key_index = ~MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
1030 if (!encrypt_key->key_index) in mwifiex_sec_ioctl_set_wpa_key()
1031 encrypt_key->key_index = MWIFIEX_KEY_INDEX_UNICAST; in mwifiex_sec_ioctl_set_wpa_key()
1096 const u8 *key, int key_len, u8 key_index, in mwifiex_set_encode() argument
1103 encrypt_key.key_index = key_index; in mwifiex_set_encode()
/Linux-v4.19/drivers/net/wireless/ath/wil6210/
Dcfg80211.c1204 static void wil_set_crypto_rx(u8 key_index, enum wmi_key_usage key_usage, in wil_set_crypto_rx() argument
1217 cc = &cs->tid_crypto_rx[tid].key_id[key_index]; in wil_set_crypto_rx()
1227 cc = &cs->group_crypto_rx.key_id[key_index]; in wil_set_crypto_rx()
1239 static void wil_del_rx_key(u8 key_index, enum wmi_key_usage key_usage, in wil_del_rx_key() argument
1251 cc = &cs->tid_crypto_rx[tid].key_id[key_index]; in wil_del_rx_key()
1256 cc = &cs->group_crypto_rx.key_id[key_index]; in wil_del_rx_key()
1266 u8 key_index, bool pairwise, in wil_cfg80211_add_key() argument
1285 mac_addr, key_usage_str[key_usage], key_index, in wil_cfg80211_add_key()
1290 mac_addr, key_usage_str[key_usage], key_index, in wil_cfg80211_add_key()
1295 wil_del_rx_key(key_index, key_usage, cs); in wil_cfg80211_add_key()
[all …]
/Linux-v4.19/drivers/usb/host/whci/
Dwusb.c130 static int whc_set_key(struct whc *whc, u8 key_index, uint32_t tkid, in whc_set_key() argument
139 setkeycmd = WUSBSETSECKEYCMD_SET | WUSBSETSECKEYCMD_IDX(key_index); in whc_set_key()
/Linux-v4.19/drivers/net/wireless/marvell/libertas/
Dcfg.c1437 u8 key_index, bool unicast, in lbs_cfg_set_default_key() argument
1445 if (key_index != priv->wep_tx_key) { in lbs_cfg_set_default_key()
1446 lbs_deb_assoc("set_default_key: to %d\n", key_index); in lbs_cfg_set_default_key()
1447 priv->wep_tx_key = key_index; in lbs_cfg_set_default_key()
1517 u8 key_index, bool pairwise, const u8 *mac_addr) in lbs_cfg_del_key() argument
1521 key_index, mac_addr); in lbs_cfg_del_key()
1540 if (key_index < 3 && priv->wep_key_len[key_index]) { in lbs_cfg_del_key()
1541 priv->wep_key_len[key_index] = 0; in lbs_cfg_del_key()
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.h53 void rtl8723be_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dhw.h51 void rtl92ee_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dhw.h69 u32 key_index, u8 *macaddr, bool is_group,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dhw.h51 void rtl88ee_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dhw.h51 void rtl92de_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhw.h57 void rtl8723e_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dhw.h64 void rtl92ce_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.h53 void rtl8821ae_set_key(struct ieee80211_hw *hw, u32 key_index,
/Linux-v4.19/drivers/staging/rtlwifi/rtl8822be/
Dhw.h45 void rtl8822be_set_key(struct ieee80211_hw *hw, u32 key_index, u8 *p_macaddr,
/Linux-v4.19/drivers/net/wireless/
Drndis_wlan.c510 u8 key_index, bool pairwise, const u8 *mac_addr,
514 u8 key_index, bool pairwise, const u8 *mac_addr);
517 u8 key_index, bool unicast, bool multicast);
2403 u8 key_index, bool pairwise, const u8 *mac_addr, in rndis_add_key() argument
2411 __func__, key_index, mac_addr, params->cipher); in rndis_add_key()
2417 key_index); in rndis_add_key()
2429 key_index, mac_addr, params->seq, in rndis_add_key()
2439 u8 key_index, bool pairwise, const u8 *mac_addr) in rndis_del_key() argument
2444 netdev_dbg(usbdev->net, "%s(%i, %pM)\n", __func__, key_index, mac_addr); in rndis_del_key()
2446 return remove_key(usbdev, key_index, mac_addr); in rndis_del_key()
[all …]

1234