Lines Matching refs:params

400 				   int idx, struct key_params *params)  in cfg80211_set_encryption()  argument
422 wdev->wext.keys->params[i].key = in cfg80211_set_encryption()
430 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_set_encryption()
475 wdev->wext.keys->params[idx].key_len = 0; in cfg80211_set_encryption()
476 wdev->wext.keys->params[idx].cipher = 0; in cfg80211_set_encryption()
493 if (cfg80211_validate_key_settings(rdev, params, idx, pairwise, addr)) in cfg80211_set_encryption()
500 err = rdev_add_key(rdev, dev, -1, idx, pairwise, addr, params); in cfg80211_set_encryption()
501 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in cfg80211_set_encryption()
502 params->cipher != WLAN_CIPHER_SUITE_WEP104) in cfg80211_set_encryption()
512 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in cfg80211_set_encryption()
513 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in cfg80211_set_encryption()
514 wdev->wext.keys->params[idx] = *params; in cfg80211_set_encryption()
516 params->key, params->key_len); in cfg80211_set_encryption()
517 wdev->wext.keys->params[idx].key = in cfg80211_set_encryption()
521 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in cfg80211_set_encryption()
522 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in cfg80211_set_encryption()
548 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in cfg80211_set_encryption()
569 struct key_params params; in cfg80211_wext_siwencode() local
614 memset(&params, 0, sizeof(params)); in cfg80211_wext_siwencode()
615 params.key = keybuf; in cfg80211_wext_siwencode()
616 params.key_len = erq->length; in cfg80211_wext_siwencode()
618 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
620 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
626 idx, &params); in cfg80211_wext_siwencode()
640 struct key_params params; in cfg80211_wext_siwencodeext() local
706 memset(&params, 0, sizeof(params)); in cfg80211_wext_siwencodeext()
707 params.key = ext->key; in cfg80211_wext_siwencodeext()
708 params.key_len = ext->key_len; in cfg80211_wext_siwencodeext()
709 params.cipher = cipher; in cfg80211_wext_siwencodeext()
712 params.seq = ext->rx_seq; in cfg80211_wext_siwencodeext()
713 params.seq_len = 6; in cfg80211_wext_siwencodeext()
722 idx, &params); in cfg80211_wext_siwencodeext()
749 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
756 wdev->wext.keys->params[idx].key_len); in cfg80211_wext_giwencode()
757 memcpy(keybuf, wdev->wext.keys->params[idx].key, erq->length); in cfg80211_wext_giwencode()