Home
last modified time | relevance | path

Searched refs:keyconf (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmld-key.c14 struct ieee80211_key_conf *keyconf) in iwl_mvm_get_sec_sta_mask() argument
21 if (keyconf->link_id >= 0) { in iwl_mvm_get_sec_sta_mask()
22 link_info = mvmvif->link[keyconf->link_id]; in iwl_mvm_get_sec_sta_mask()
29 !(keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { in iwl_mvm_get_sec_sta_mask()
31 if (keyconf->keyidx >= 4) in iwl_mvm_get_sec_sta_mask()
50 if (!sta && (keyconf->link_id >= 0 || !ieee80211_vif_is_mld(vif))) in iwl_mvm_get_sec_sta_mask()
56 return iwl_mvm_sta_fw_id_mask(mvm, sta, keyconf->link_id); in iwl_mvm_get_sec_sta_mask()
62 struct ieee80211_key_conf *keyconf) in iwl_mvm_get_sec_flags() argument
65 bool pairwise = keyconf->flags & IEEE80211_KEY_FLAG_PAIRWISE; in iwl_mvm_get_sec_flags()
66 bool igtk = keyconf in iwl_mvm_get_sec_flags()
185 iwl_mvm_mld_send_key(struct iwl_mvm * mvm,u32 sta_mask,u32 key_flags,struct ieee80211_key_conf * keyconf) iwl_mvm_mld_send_key() argument
247 iwl_mvm_sec_key_add(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct ieee80211_sta * sta,struct ieee80211_key_conf * keyconf) iwl_mvm_sec_key_add() argument
299 _iwl_mvm_sec_key_del(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct ieee80211_sta * sta,struct ieee80211_key_conf * keyconf,u32 flags) _iwl_mvm_sec_key_del() argument
348 iwl_mvm_sec_key_del_pasn(struct iwl_mvm * mvm,struct ieee80211_vif * vif,u32 sta_mask,struct ieee80211_key_conf * keyconf) iwl_mvm_sec_key_del_pasn() argument
363 iwl_mvm_sec_key_del(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct ieee80211_sta * sta,struct ieee80211_key_conf * keyconf) iwl_mvm_sec_key_del() argument
[all...]
H A Dftm-responder.c17 struct ieee80211_key_conf keyconf; member
314 if (sta->keyconf.keylen) in iwl_mvm_resp_del_pasn_sta()
316 &sta->keyconf); in iwl_mvm_resp_del_pasn_sta()
H A Dmvm.h1859 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwl_mvm_set_tx_cmd_ccmp() local
1862 memcpy(tx_cmd_params->key, keyconf->key, keyconf->keylen); in iwl_mvm_set_tx_cmd_ccmp()
2598 struct ieee80211_key_conf *keyconf);
2602 struct ieee80211_key_conf *keyconf);
2606 struct ieee80211_key_conf *keyconf);
2617 struct ieee80211_key_conf *keyconf);
2621 struct ieee80211_key_conf *keyconf);
2920 struct ieee80211_key_conf *keyconf,
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dsta.c991 struct ieee80211_key_conf *keyconf) in iwl_remove_default_wep_key() argument
998 keyconf->keyidx); in iwl_remove_default_wep_key()
1000 memset(&ctx->wep_keys[keyconf->keyidx], 0, sizeof(ctx->wep_keys[0])); in iwl_remove_default_wep_key()
1009 keyconf->keyidx, ret); in iwl_remove_default_wep_key()
1016 struct ieee80211_key_conf *keyconf) in iwl_set_default_wep_key() argument
1022 if (keyconf->keylen != WEP_KEY_LEN_128 && in iwl_set_default_wep_key()
1023 keyconf->keylen != WEP_KEY_LEN_64) { in iwl_set_default_wep_key()
1025 "Bad WEP key length %d\n", keyconf->keylen); in iwl_set_default_wep_key()
1029 keyconf->hw_key_idx = IWLAGN_HW_KEY_DEFAULT; in iwl_set_default_wep_key()
1031 ctx->wep_keys[keyconf in iwl_set_default_wep_key()
1078 iwlagn_send_sta_key(struct iwl_priv * priv,struct ieee80211_key_conf * keyconf,u8 sta_id,u32 tkip_iv32,u16 * tkip_p1k,u32 cmd_flags) iwlagn_send_sta_key() argument
1135 iwl_update_tkip_key(struct iwl_priv * priv,struct ieee80211_vif * vif,struct ieee80211_key_conf * keyconf,struct ieee80211_sta * sta,u32 iv32,u16 * phase1key) iwl_update_tkip_key() argument
1155 iwl_remove_dynamic_key(struct iwl_priv * priv,struct iwl_rxon_context * ctx,struct ieee80211_key_conf * keyconf,struct ieee80211_sta * sta) iwl_remove_dynamic_key() argument
1203 iwl_set_dynamic_key(struct iwl_priv * priv,struct iwl_rxon_context * ctx,struct ieee80211_key_conf * keyconf,struct ieee80211_sta * sta) iwl_set_dynamic_key() argument
[all...]
H A Dtx.c192 struct ieee80211_key_conf *keyconf = info->control.hw_key; in iwlagn_tx_cmd_build_hwcrypto() local
194 switch (keyconf->cipher) { in iwlagn_tx_cmd_build_hwcrypto()
197 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in iwlagn_tx_cmd_build_hwcrypto()
204 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in iwlagn_tx_cmd_build_hwcrypto()
212 (keyconf->keyidx & TX_CMD_SEC_MSK) << TX_CMD_SEC_SHIFT); in iwlagn_tx_cmd_build_hwcrypto()
214 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in iwlagn_tx_cmd_build_hwcrypto()
217 "with key %d\n", keyconf->keyidx); in iwlagn_tx_cmd_build_hwcrypto()
221 IWL_ERR(priv, "Unknown encode cipher %x\n", keyconf in iwlagn_tx_cmd_build_hwcrypto()
[all...]
H A Dagn.h307 struct ieee80211_key_conf *keyconf,
/linux/net/mac80211/
H A Dtkip.c143 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn) in ieee80211_tkip_add_iv() argument
146 *pos++ = (keyconf->keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv()
171 void ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p1k_iv() argument
175 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p1k_iv()
185 void ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_rx_p1k() argument
188 const u8 *tk = &keyconf->key[NL80211_TKIP_DATA_OFFSET_ENCR_KEY]; in ieee80211_get_tkip_rx_p1k()
196 void ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p2k() argument
200 container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_tkip_p2k()
H A Dkey.c1248 void ieee80211_get_key_rx_seq(struct ieee80211_key_conf *keyconf, in ieee80211_get_key_rx_seq() argument
1254 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_get_key_rx_seq()
1301 void ieee80211_set_key_rx_seq(struct ieee80211_key_conf *keyconf, in ieee80211_set_key_rx_seq() argument
1307 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_set_key_rx_seq()
1428 void ieee80211_key_mic_failure(struct ieee80211_key_conf *keyconf) in ieee80211_key_mic_failure() argument
1432 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_key_mic_failure()
1450 void ieee80211_key_replay(struct ieee80211_key_conf *keyconf) in ieee80211_key_replay() argument
1454 key = container_of(keyconf, struct ieee80211_key, conf); in ieee80211_key_replay()
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-mac.c1605 struct ieee80211_key_conf *keyconf = info->control.hw_key; in il4965_tx_cmd_build_hwcrypto() local
1607 switch (keyconf->cipher) { in il4965_tx_cmd_build_hwcrypto()
1610 memcpy(tx_cmd->key, keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1618 ieee80211_get_tkip_p2k(keyconf, skb_frag, tx_cmd->key); in il4965_tx_cmd_build_hwcrypto()
1627 (TX_CMD_SEC_WEP | (keyconf->keyidx & TX_CMD_SEC_MSK) << in il4965_tx_cmd_build_hwcrypto()
1630 memcpy(&tx_cmd->key[3], keyconf->key, keyconf->keylen); in il4965_tx_cmd_build_hwcrypto()
1633 keyconf->keyidx); in il4965_tx_cmd_build_hwcrypto()
1637 IL_ERR("Unknown encode cipher %x\n", keyconf in il4965_tx_cmd_build_hwcrypto()
3178 il4965_remove_default_wep_key(struct il_priv * il,struct ieee80211_key_conf * keyconf) il4965_remove_default_wep_key() argument
3201 il4965_set_default_wep_key(struct il_priv * il,struct ieee80211_key_conf * keyconf) il4965_set_default_wep_key() argument
3229 il4965_set_wep_dynamic_key_info(struct il_priv * il,struct ieee80211_key_conf * keyconf,u8 sta_id) il4965_set_wep_dynamic_key_info() argument
3283 il4965_set_ccmp_dynamic_key_info(struct il_priv * il,struct ieee80211_key_conf * keyconf,u8 sta_id) il4965_set_ccmp_dynamic_key_info() argument
3331 il4965_set_tkip_dynamic_key_info(struct il_priv * il,struct ieee80211_key_conf * keyconf,u8 sta_id) il4965_set_tkip_dynamic_key_info() argument
3374 il4965_update_tkip_key(struct il_priv * il,struct ieee80211_key_conf * keyconf,struct ieee80211_sta * sta,u32 iv32,u16 * phase1key) il4965_update_tkip_key() argument
3409 il4965_remove_dynamic_key(struct il_priv * il,struct ieee80211_key_conf * keyconf,u8 sta_id) il4965_remove_dynamic_key() argument
3469 il4965_set_dynamic_key(struct il_priv * il,struct ieee80211_key_conf * keyconf,u8 sta_id) il4965_set_dynamic_key() argument
5869 il4965_mac_update_tkip_key(struct ieee80211_hw * hw,struct ieee80211_vif * vif,struct ieee80211_key_conf * keyconf,struct ieee80211_sta * sta,u32 iv32,u16 * phase1key) il4965_mac_update_tkip_key() argument
[all...]
H A D4965.h125 struct ieee80211_key_conf *keyconf,
163 struct ieee80211_key_conf *keyconf,
/linux/drivers/net/ovpn/
H A Dcrypto.c173 * ovpn_crypto_config_get - populate keyconf object with non-sensible key data
176 * @keyconf: the output object to populate
182 struct ovpn_key_config *keyconf) in ovpn_crypto_config_get() argument
205 keyconf->cipher_alg = ovpn_aead_crypto_alg(ks); in ovpn_crypto_config_get()
206 keyconf->key_id = ks->key_id; in ovpn_crypto_config_get()
H A Dnetlink.c949 const struct ovpn_key_config *keyconf) in ovpn_nl_send_key() argument
967 nla_put_u32(skb, OVPN_A_KEYCONF_KEY_ID, keyconf->key_id) || in ovpn_nl_send_key()
968 nla_put_u32(skb, OVPN_A_KEYCONF_CIPHER_ALG, keyconf->cipher_alg)) in ovpn_nl_send_key()
984 struct ovpn_key_config keyconf = { 0 }; in ovpn_nl_key_get_doit() local
1036 ret = ovpn_crypto_config_get(&peer->crypto, slot, &keyconf); in ovpn_nl_key_get_doit()
1050 ret = ovpn_nl_send_key(msg, info, peer->id, slot, &keyconf); in ovpn_nl_key_get_doit()
H A Dcrypto.h141 struct ovpn_key_config *keyconf);
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Dtrx.c166 struct ieee80211_key_conf *keyconf; in rtl92de_tx_fill_desc() local
168 keyconf = info->control.hw_key; in rtl92de_tx_fill_desc()
169 switch (keyconf->cipher) { in rtl92de_tx_fill_desc()
/linux/tools/testing/selftests/net/ovpn/
H A Dovpn-cli.c906 struct nlattr *keyconf, *key_dir; in ovpn_new_key() local
914 keyconf = nla_nest_start(ctx->nl_msg, OVPN_A_KEYCONF); in ovpn_new_key()
930 nla_nest_end(ctx->nl_msg, keyconf); in ovpn_new_key()
940 struct nlattr *keyconf; in ovpn_del_key() local
948 keyconf = nla_nest_start(ctx->nl_msg, OVPN_A_KEYCONF); in ovpn_del_key()
951 nla_nest_end(ctx->nl_msg, keyconf); in ovpn_del_key()
1021 struct nlattr *keyconf; in ovpn_get_key() local
1029 keyconf = nla_nest_start(ctx->nl_msg, OVPN_A_KEYCONF); in ovpn_get_key()
1032 nla_nest_end(ctx->nl_msg, keyconf); in ovpn_get_key()
/linux/include/net/
H A Dmac80211.h5925 * @keyconf: the parameter passed with the set key
5929 void ieee80211_get_tkip_p1k_iv(struct ieee80211_key_conf *keyconf,
5938 * @keyconf: the parameter passed with the set key
5943 static inline void ieee80211_get_tkip_p1k(struct ieee80211_key_conf *keyconf, in ieee80211_get_tkip_p1k() argument
5950 ieee80211_get_tkip_p1k_iv(keyconf, iv32, p1k); in ieee80211_get_tkip_p1k()
5959 * @keyconf: the parameter passed with the set key
5964 void ieee80211_get_tkip_rx_p1k(struct ieee80211_key_conf *keyconf,
5973 * @keyconf: the parameter passed with the set key
5978 void ieee80211_get_tkip_p2k(struct ieee80211_key_conf *keyconf,
5985 * @keyconf
[all...]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
H A Dtrx.c439 struct ieee80211_key_conf *keyconf; in rtl92se_tx_fill_desc() local
441 keyconf = info->control.hw_key; in rtl92se_tx_fill_desc()
442 switch (keyconf->cipher) { in rtl92se_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
H A Dtrx.c159 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92du_tx_fill_desc() local
161 switch (keyconf->cipher) { in rtl92du_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dtrx.c598 struct ieee80211_key_conf *keyconf; in rtl88ee_tx_fill_desc() local
600 keyconf = info->control.hw_key; in rtl88ee_tx_fill_desc()
601 switch (keyconf->cipher) { in rtl88ee_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Dtrx.c449 struct ieee80211_key_conf *keyconf = in rtl92ce_tx_fill_desc() local
452 switch (keyconf->cipher) { in rtl92ce_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dtrx.c449 struct ieee80211_key_conf *keyconf = in rtl8723e_tx_fill_desc() local
452 switch (keyconf->cipher) { in rtl8723e_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dtrx.c523 struct ieee80211_key_conf *keyconf = in rtl8723be_tx_fill_desc() local
525 switch (keyconf->cipher) { in rtl8723be_tx_fill_desc()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Dtrx.c560 struct ieee80211_key_conf *keyconf = info->control.hw_key; in rtl92cu_tx_fill_desc() local
562 switch (keyconf->cipher) { in rtl92cu_tx_fill_desc()
/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.c936 struct ieee80211_key_conf *keyconf, in b43_op_update_tkip_key() argument
942 int index = keyconf->hw_key_idx; in b43_op_update_tkip_key()
1003 struct ieee80211_key_conf *keyconf) in b43_key_write() argument
1021 B43_WARN_ON(dev->key[i].keyconf == keyconf); in b43_key_write()
1033 if (!dev->key[i].keyconf) { in b43_key_write()
1052 keyconf->hw_key_idx = index; in b43_key_write()
1053 dev->key[index].keyconf = keyconf; in b43_key_write()
1068 dev->key[index].keyconf in b43_key_clear()
[all...]
/linux/drivers/net/wireless/broadcom/b43legacy/
H A Db43legacy.h560 void *keyconf; member

12