Lines Matching refs:params
412 int idx, struct key_params *params) in __cfg80211_set_encryption() argument
434 wdev->wext.keys->params[i].key = in __cfg80211_set_encryption()
442 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption()
487 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption()
488 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
505 if (cfg80211_validate_key_settings(rdev, params, idx, pairwise, addr)) in __cfg80211_set_encryption()
512 err = rdev_add_key(rdev, dev, -1, idx, pairwise, addr, params); in __cfg80211_set_encryption()
513 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption()
514 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption()
524 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
525 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in __cfg80211_set_encryption()
526 wdev->wext.keys->params[idx] = *params; in __cfg80211_set_encryption()
528 params->key, params->key_len); in __cfg80211_set_encryption()
529 wdev->wext.keys->params[idx].key = in __cfg80211_set_encryption()
533 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
534 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
560 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
577 int idx, struct key_params *params) in cfg80211_set_encryption() argument
583 remove, tx_key, idx, params); in cfg80211_set_encryption()
597 struct key_params params; in cfg80211_wext_siwencode() local
644 memset(¶ms, 0, sizeof(params)); in cfg80211_wext_siwencode()
645 params.key = keybuf; in cfg80211_wext_siwencode()
646 params.key_len = erq->length; in cfg80211_wext_siwencode()
648 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
650 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
658 idx, ¶ms); in cfg80211_wext_siwencode()
675 struct key_params params; in cfg80211_wext_siwencodeext() local
746 memset(¶ms, 0, sizeof(params)); in cfg80211_wext_siwencodeext()
747 params.key = ext->key; in cfg80211_wext_siwencodeext()
748 params.key_len = ext->key_len; in cfg80211_wext_siwencodeext()
749 params.cipher = cipher; in cfg80211_wext_siwencodeext()
752 params.seq = ext->rx_seq; in cfg80211_wext_siwencodeext()
753 params.seq_len = 6; in cfg80211_wext_siwencodeext()
762 idx, ¶ms); in cfg80211_wext_siwencodeext()
791 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
798 wdev->wext.keys->params[idx].key_len); in cfg80211_wext_giwencode()
799 memcpy(keybuf, wdev->wext.keys->params[idx].key, erq->length); in cfg80211_wext_giwencode()