Home
last modified time | relevance | path

Searched refs:wep_key (Results 1 – 17 of 17) sorted by relevance

/drivers/net/wireless/mwifiex/
Dsta_ioctl.c897 struct mwifiex_wep_key *wep_key; in mwifiex_sec_ioctl_set_wep_key() local
902 wep_key = &priv->wep_key[priv->wep_key_curr_index]; in mwifiex_sec_ioctl_set_wep_key()
908 wep_key = &priv->wep_key[index]; in mwifiex_sec_ioctl_set_wep_key()
909 if (!wep_key->key_length) { in mwifiex_sec_ioctl_set_wep_key()
917 wep_key->key_material, wep_key->key_length); in mwifiex_sec_ioctl_set_wep_key()
918 encrypt_key->key_len = wep_key->key_length; in mwifiex_sec_ioctl_set_wep_key()
924 wep_key = &priv->wep_key[index]; in mwifiex_sec_ioctl_set_wep_key()
925 memset(wep_key, 0, sizeof(struct mwifiex_wep_key)); in mwifiex_sec_ioctl_set_wep_key()
927 memcpy(wep_key->key_material, in mwifiex_sec_ioctl_set_wep_key()
930 wep_key->key_index = index; in mwifiex_sec_ioctl_set_wep_key()
[all …]
Duap_cmd.c30 struct mwifiex_wep_key wep_key; in mwifiex_set_secure_params() local
124 wep_key = priv->wep_key[i]; in mwifiex_set_secure_params()
133 wep_key.key_length; in mwifiex_set_secure_params()
135 &wep_key.key_material, in mwifiex_set_secure_params()
136 wep_key.key_length); in mwifiex_set_secure_params()
443 struct host_cmd_tlv_wep_key *wep_key; in mwifiex_uap_bss_wep() local
453 wep_key = (struct host_cmd_tlv_wep_key *)tlv; in mwifiex_uap_bss_wep()
454 wep_key->header.type = in mwifiex_uap_bss_wep()
456 wep_key->header.len = in mwifiex_uap_bss_wep()
458 wep_key->key_index = bss_cfg->wep_cfg[i].key_index; in mwifiex_uap_bss_wep()
[all …]
Dioctl.h75 struct wep_key { struct
109 struct wep_key wep_cfg[NUM_WEP_KEYS];
Dsta_cmd.c507 if ((priv->wep_key[i].key_length == WLAN_KEY_LEN_WEP40) || in mwifiex_set_keyparamset_wep()
508 (priv->wep_key[i].key_length == WLAN_KEY_LEN_WEP104)) { in mwifiex_set_keyparamset_wep()
514 (priv->wep_key[i]. in mwifiex_set_keyparamset_wep()
523 cpu_to_le16(priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
534 priv->wep_key[i].key_material, in mwifiex_set_keyparamset_wep()
535 priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
537 cur_key_param_len = priv->wep_key[i].key_length + in mwifiex_set_keyparamset_wep()
545 } else if (!priv->wep_key[i].key_length) { in mwifiex_set_keyparamset_wep()
550 (i + 1), priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
Dinit.c92 for (i = 0; i < ARRAY_SIZE(priv->wep_key); i++) in mwifiex_init_priv()
93 memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key)); in mwifiex_init_priv()
Dcfg80211.c445 struct mwifiex_wep_key *wep_key; in mwifiex_cfg80211_add_key() local
453 wep_key = &priv->wep_key[key_index]; in mwifiex_cfg80211_add_key()
454 memset(wep_key, 0, sizeof(struct mwifiex_wep_key)); in mwifiex_cfg80211_add_key()
455 memcpy(wep_key->key_material, params->key, in mwifiex_cfg80211_add_key()
457 wep_key->key_index = key_index; in mwifiex_cfg80211_add_key()
458 wep_key->key_length = params->key_len; in mwifiex_cfg80211_add_key()
Dmain.h565 struct mwifiex_wep_key wep_key[NUM_WEP_KEYS]; member
/drivers/staging/rtl8723au/os_dep/
Dioctl_cfg80211.c514 memcpy(&psecuritypriv->wep_key[key_index].key, in rtw_cfg80211_ap_set_encryption()
517 psecuritypriv->wep_key[key_index].keylen = key_len; in rtw_cfg80211_ap_set_encryption()
747 memcpy(&psecuritypriv->wep_key[key_index].key, in rtw_cfg80211_set_encryption()
750 psecuritypriv->wep_key[key_index].keylen = key_len; in rtw_cfg80211_set_encryption()
983 if (psecuritypriv->wep_key[key_index].keylen == 13) { in cfg80211_rtw_set_default_key()
1771 memcpy(&psecuritypriv->wep_key[keyid], wep, sizeof(struct rtw_wep_key)); in rtw_cfg80211_add_wep()
1778 psecuritypriv->wep_key[keyid].key[0], in rtw_cfg80211_add_wep()
1779 psecuritypriv->wep_key[keyid].key[1], in rtw_cfg80211_add_wep()
1780 psecuritypriv->wep_key[keyid].key[2], in rtw_cfg80211_add_wep()
1781 psecuritypriv->wep_key[keyid].key[3], in rtw_cfg80211_add_wep()
[all …]
/drivers/staging/wilc1000/
Dwilc_wlan_cfg.c32 u8 wep_key[28]; member
139 {WID_WEP_KEY_VALUE, g_mac.wep_key}, /* 27 bytes */
/drivers/net/wireless/libertas/
Dcfg.c948 memcpy(cmd.keymaterial[i], priv->wep_key[i], in lbs_set_wep_keys()
1377 memset(priv->wep_key, 0, sizeof(priv->wep_key)); in lbs_cfg_connect()
1387 memcpy(priv->wep_key[sme->key_idx], sme->key, sme->key_len); in lbs_cfg_connect()
1541 memcmp(priv->wep_key[idx], in lbs_cfg_add_key()
1544 memcpy(priv->wep_key[idx], in lbs_cfg_add_key()
Ddev.h149 u8 wep_key[4][WLAN_KEY_LEN_WEP104]; member
/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-sta.h400 struct iwl_mvm_wep_key wep_key[0]; member
Dd3.c168 struct iwl_mvm_wep_key wep_key; in iwl_mvm_wowlan_program_keys() member
176 .wep_key.key_index = key->keyidx, in iwl_mvm_wowlan_program_keys()
177 .wep_key.key_size = key->keylen, in iwl_mvm_wowlan_program_keys()
188 memcpy(&wkc.wep_key.key[3], key->key, key->keylen); in iwl_mvm_wowlan_program_keys()
191 wkc.wep_key.key_offset = 0; in iwl_mvm_wowlan_program_keys()
195 wkc.wep_key.key_offset = data->wep_key_idx; in iwl_mvm_wowlan_program_keys()
/drivers/staging/rtl8723au/core/
Drtw_security.c175 keylength = psecuritypriv->wep_key[index].keylen; in rtw_wep_encrypt23a()
180 memcpy(&wepkey[3], &psecuritypriv->wep_key[index].key, in rtw_wep_encrypt23a()
235 keylength = psecuritypriv->wep_key[keyindex].keylen; in rtw_wep_decrypt23a()
238 memcpy(&wepkey[3], &psecuritypriv->wep_key[keyindex].key, keylength); in rtw_wep_decrypt23a()
Drtw_mlme.c1833 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
1838 &psecuritypriv->wep_key[keyid].key, keylen); in rtw_set_key23a()
/drivers/staging/rtl8723au/include/
Drtw_security.h110 struct rtw_wep_key wep_key[NUM_WEP_KEYS]; member
/drivers/net/wireless/ipw2x00/
Dipw2100.c5396 struct ipw2100_wep_key *wep_key = (void *)cmd.host_command_parameters; in ipw2100_set_key() local
5406 wep_key->idx = idx; in ipw2100_set_key()
5407 wep_key->len = keylen; in ipw2100_set_key()
5410 memcpy(wep_key->key, key, len); in ipw2100_set_key()
5411 memset(wep_key->key + len, 0, keylen - len); in ipw2100_set_key()
5417 priv->net_dev->name, wep_key->idx); in ipw2100_set_key()
5420 priv->net_dev->name, wep_key->idx, wep_key->len, in ipw2100_set_key()
5421 WEP_STR_64(wep_key->key)); in ipw2100_set_key()
5425 priv->net_dev->name, wep_key->idx, wep_key->len, in ipw2100_set_key()
5426 WEP_STR_128(wep_key->key)); in ipw2100_set_key()