/kernel/linux/linux-5.10/drivers/net/wireless/marvell/libertas/ |
D | cfg.c | 897 if (priv->wep_key_len[0] || priv->wep_key_len[1] || in lbs_set_wep_keys() 898 priv->wep_key_len[2] || priv->wep_key_len[3]) { in lbs_set_wep_keys() 906 switch (priv->wep_key_len[i]) { in lbs_set_wep_keys() 918 priv->wep_key_len[i]); in lbs_set_wep_keys() 1333 memset(priv->wep_key_len, 0, sizeof(priv->wep_key_len)); in lbs_cfg_connect() 1341 priv->wep_key_len[sme->key_idx] = sme->key_len; in lbs_cfg_connect() 1488 if ((priv->wep_key_len[idx] != params->key_len) || in lbs_cfg_add_key() 1491 priv->wep_key_len[idx] = params->key_len; in lbs_cfg_add_key() 1544 if (key_index < 3 && priv->wep_key_len[key_index]) { in lbs_cfg_del_key() 1545 priv->wep_key_len[key_index] = 0; in lbs_cfg_del_key()
|
D | dev.h | 151 u8 wep_key_len[4]; member
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/ |
D | ioctl_cfg80211.c | 562 u32 wep_key_idx, wep_key_len; in rtw_cfg80211_ap_set_encryption() local 616 wep_key_len = param->u.crypt.key_len; in rtw_cfg80211_ap_set_encryption() 618 DBG_8192C("r871x_set_encryption, wep_key_idx =%d, len =%d\n", wep_key_idx, wep_key_len); in rtw_cfg80211_ap_set_encryption() 620 if ((wep_key_idx >= WEP_KEYS) || (wep_key_len <= 0)) in rtw_cfg80211_ap_set_encryption() 626 if (wep_key_len > 0) in rtw_cfg80211_ap_set_encryption() 628 wep_key_len = wep_key_len <= 5 ? 5 : 13; in rtw_cfg80211_ap_set_encryption() 640 if (wep_key_len == 13) in rtw_cfg80211_ap_set_encryption() 649 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); in rtw_cfg80211_ap_set_encryption() 651 psecuritypriv->dot11DefKeylen[wep_key_idx] = wep_key_len; in rtw_cfg80211_ap_set_encryption() 653 rtw_ap_set_wep_key(padapter, param->u.crypt.key, wep_key_len, wep_key_idx, 1); in rtw_cfg80211_ap_set_encryption() [all …]
|
D | ioctl_linux.c | 425 u32 wep_key_idx, wep_key_len, wep_total_len; in wpa_set_encryption() local 463 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption() 473 if (wep_key_len > 0) { in wpa_set_encryption() 474 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption() 475 wep_total_len = wep_key_len + FIELD_OFFSET(struct ndis_802_11_wep, KeyMaterial); in wpa_set_encryption() 482 pwep->KeyLength = wep_key_len; in wpa_set_encryption() 485 if (wep_key_len == 13) { in wpa_set_encryption() 3430 u32 wep_key_idx, wep_key_len, wep_total_len; in rtw_set_encryption() local 3484 wep_key_len = param->u.crypt.key_len; in rtw_set_encryption() 3486 DBG_871X("r871x_set_encryption, wep_key_idx =%d, len =%d\n", wep_key_idx, wep_key_len); in rtw_set_encryption() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/ |
D | ioctl_linux.c | 346 u32 wep_key_idx, wep_key_len, wep_total_len; in wpa_set_encryption() local 379 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption() 389 if (wep_key_len > 0) { in wpa_set_encryption() 390 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption() 391 wep_total_len = wep_key_len + offsetof(struct ndis_802_11_wep, KeyMaterial); in wpa_set_encryption() 398 pwep->KeyLength = wep_key_len; in wpa_set_encryption() 400 if (wep_key_len == 13) { in wpa_set_encryption() 2166 u32 wep_key_idx, wep_key_len, wep_total_len; in rtw_set_encryption() local 2203 wep_key_len = param->u.crypt.key_len; in rtw_set_encryption() 2204 DBG_88E("r871x_set_encryption, wep_key_idx=%d, len=%d\n", wep_key_idx, wep_key_len); in rtw_set_encryption() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/ |
D | cfg80211.c | 317 memset(priv->wep_key_len, 0, sizeof(priv->wep_key_len)); in connect() 324 priv->wep_key_len[sme->key_idx] = sme->key_len; in connect() 334 priv->wep_key_len[sme->key_idx] = sme->key_len; in connect() 494 priv->wep_key_len[key_index] = params->key_len; in wilc_wfi_cfg_copy_wep_info() 679 if (key_index <= 3 && priv->wep_key_len[key_index]) { in del_key() 681 priv->wep_key_len[key_index]); in del_key() 682 priv->wep_key_len[key_index] = 0; in del_key()
|
D | netdev.h | 136 u8 wep_key_len[4]; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/atmel/ |
D | atmel.c | 471 int wep_key_len[MAX_ENCRYPTION_KEYS]; member 1565 memset(priv->wep_key_len, 0, sizeof(priv->wep_key_len)); in init_atmel_card() 1733 priv->wep_key_len[index] = 13; in atmel_set_encode() 1736 priv->wep_key_len[index] = 5; in atmel_set_encode() 1739 priv->wep_key_len[index] = 0; in atmel_set_encode() 1751 priv->wep_key_len[index] > 0) { in atmel_set_encode() 1754 if (priv->wep_key_len[index] > 5) { in atmel_set_encode() 1779 if (priv->wep_key_len[priv->default_key] > 5) { in atmel_set_encode() 1816 dwrq->length = priv->wep_key_len[index]; in atmel_get_encode() 1864 priv->wep_key_len[idx] = 13; in atmel_set_encodeext() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 372 u32 wep_key_idx, wep_key_len = 0; in wpa_set_encryption() local 397 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption() 400 if (wep_key_len <= 0) in wpa_set_encryption() 403 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption() 407 pwep->KeyLength = wep_key_len; in wpa_set_encryption() 408 pwep->Length = wep_key_len + in wpa_set_encryption() 410 if (wep_key_len == 13) { in wpa_set_encryption()
|
/kernel/linux/linux-5.10/drivers/net/wireless/cisco/ |
D | airo.c | 6462 int wep_key_len; in airo_get_encode() local 6496 wep_key_len = get_wep_key(local, index, &buf[0], sizeof(buf)); in airo_get_encode() 6497 if (wep_key_len < 0) { in airo_get_encode() 6500 dwrq->length = wep_key_len; in airo_get_encode() 6625 int idx, max_key_len, wep_key_len; in airo_get_encodeext() local 6669 wep_key_len = get_wep_key(local, idx, &buf[0], sizeof(buf)); in airo_get_encodeext() 6670 if (wep_key_len < 0) { in airo_get_encodeext() 6673 ext->key_len = wep_key_len; in airo_get_encodeext()
|