Lines Matching refs:cipher

428 	if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) {  in __cfg80211_set_encryption()
472 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
495 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption()
496 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption()
506 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
507 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in __cfg80211_set_encryption()
515 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
516 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
539 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
615 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
617 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
637 u32 cipher; in cfg80211_wext_siwencodeext() local
652 cipher = 0; in cfg80211_wext_siwencodeext()
656 cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencodeext()
658 cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencodeext()
663 cipher = WLAN_CIPHER_SUITE_TKIP; in cfg80211_wext_siwencodeext()
666 cipher = WLAN_CIPHER_SUITE_CCMP; in cfg80211_wext_siwencodeext()
669 cipher = WLAN_CIPHER_SUITE_AES_CMAC; in cfg80211_wext_siwencodeext()
679 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_wext_siwencodeext()
702 params.cipher = cipher; in cfg80211_wext_siwencodeext()
740 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
968 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
970 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
973 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
976 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
979 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
982 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
985 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
993 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
998 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1003 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1008 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1013 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1018 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()