Home
last modified time | relevance | path

Searched refs:wep_key_len (Results 1 – 8 of 8) sorted by relevance

/Linux-v6.1/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c49 u32 wep_key_idx, wep_key_len, wep_total_len; in wpa_set_encryption() local
85 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
90 if (wep_key_len > 0) { in wpa_set_encryption()
91 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption()
92 wep_total_len = wep_key_len + FIELD_OFFSET(struct ndis_802_11_wep, key_material); in wpa_set_encryption()
100 pwep->key_length = wep_key_len; in wpa_set_encryption()
103 if (wep_key_len == 13) { in wpa_set_encryption()
526 u32 wep_key_idx, wep_key_len, wep_total_len; in rtw_set_encryption() local
575 wep_key_len = param->u.crypt.key_len; in rtw_set_encryption()
577 if ((wep_key_idx >= WEP_KEYS) || (wep_key_len <= 0)) { in rtw_set_encryption()
[all …]
Dioctl_cfg80211.c502 u32 wep_key_idx, wep_key_len; in rtw_cfg80211_ap_set_encryption() local
539 wep_key_len = param->u.crypt.key_len; in rtw_cfg80211_ap_set_encryption()
541 if ((wep_key_idx >= WEP_KEYS) || (wep_key_len <= 0)) { in rtw_cfg80211_ap_set_encryption()
546 if (wep_key_len > 0) in rtw_cfg80211_ap_set_encryption()
547 wep_key_len = wep_key_len <= 5 ? 5 : 13; in rtw_cfg80211_ap_set_encryption()
557 if (wep_key_len == 13) { in rtw_cfg80211_ap_set_encryption()
565 memcpy(&(psecuritypriv->dot11DefKey[wep_key_idx].skey[0]), param->u.crypt.key, wep_key_len); in rtw_cfg80211_ap_set_encryption()
567 psecuritypriv->dot11DefKeylen[wep_key_idx] = wep_key_len; in rtw_cfg80211_ap_set_encryption()
569 rtw_ap_set_wep_key(padapter, param->u.crypt.key, wep_key_len, wep_key_idx, 1); in rtw_cfg80211_ap_set_encryption()
714 u32 wep_key_idx, wep_key_len; in rtw_cfg80211_set_encryption() local
[all …]
/Linux-v6.1/drivers/net/wireless/marvell/libertas/
Dcfg.c897 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()
1331 memset(priv->wep_key_len, 0, sizeof(priv->wep_key_len)); in lbs_cfg_connect()
1339 priv->wep_key_len[sme->key_idx] = sme->key_len; in lbs_cfg_connect()
1486 if ((priv->wep_key_len[idx] != params->key_len) || in lbs_cfg_add_key()
1489 priv->wep_key_len[idx] = params->key_len; in lbs_cfg_add_key()
1543 if (key_index < 3 && priv->wep_key_len[key_index]) { in lbs_cfg_del_key()
1544 priv->wep_key_len[key_index] = 0; in lbs_cfg_del_key()
Ddev.h151 u8 wep_key_len[4]; member
/Linux-v6.1/drivers/net/wireless/atmel/
Datmel.c470 int wep_key_len[MAX_ENCRYPTION_KEYS]; member
1564 memset(priv->wep_key_len, 0, sizeof(priv->wep_key_len)); in init_atmel_card()
1732 priv->wep_key_len[index] = 13; in atmel_set_encode()
1735 priv->wep_key_len[index] = 5; in atmel_set_encode()
1738 priv->wep_key_len[index] = 0; in atmel_set_encode()
1750 priv->wep_key_len[index] > 0) { in atmel_set_encode()
1753 if (priv->wep_key_len[index] > 5) { in atmel_set_encode()
1778 if (priv->wep_key_len[priv->default_key] > 5) { in atmel_set_encode()
1815 dwrq->length = priv->wep_key_len[index]; in atmel_get_encode()
1863 priv->wep_key_len[idx] = 13; in atmel_set_encodeext()
[all …]
/Linux-v6.1/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c370 u32 wep_key_idx, wep_key_len = 0; in wpa_set_encryption() local
395 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
398 if (wep_key_len <= 0) in wpa_set_encryption()
401 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption()
405 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
406 pwep->Length = wep_key_len + in wpa_set_encryption()
408 if (wep_key_len == 13) { in wpa_set_encryption()
/Linux-v6.1/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c366 u32 wep_key_idx, wep_key_len, wep_total_len; in wpa_set_encryption() local
399 wep_key_len = param->u.crypt.key_len; in wpa_set_encryption()
404 if (wep_key_len > 0) { in wpa_set_encryption()
405 wep_key_len = wep_key_len <= 5 ? 5 : 13; in wpa_set_encryption()
406 wep_total_len = wep_key_len + sizeof(*pwep); in wpa_set_encryption()
411 pwep->KeyLength = wep_key_len; in wpa_set_encryption()
413 if (wep_key_len == 13) { in wpa_set_encryption()
/Linux-v6.1/drivers/net/wireless/cisco/
Dairo.c6455 int wep_key_len; in airo_get_encode() local
6489 wep_key_len = get_wep_key(local, index, &buf[0], sizeof(buf)); in airo_get_encode()
6490 if (wep_key_len < 0) { in airo_get_encode()
6493 dwrq->length = wep_key_len; in airo_get_encode()
6618 int idx, max_key_len, wep_key_len; in airo_get_encodeext() local
6662 wep_key_len = get_wep_key(local, idx, &buf[0], sizeof(buf)); in airo_get_encodeext()
6663 if (wep_key_len < 0) { in airo_get_encodeext()
6666 ext->key_len = wep_key_len; in airo_get_encodeext()