Lines Matching refs:cipher
430 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_set_encryption()
476 wdev->wext.keys->params[idx].cipher = 0; 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()
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()
618 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
620 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
641 u32 cipher; in cfg80211_wext_siwencodeext() local
659 cipher = 0; in cfg80211_wext_siwencodeext()
663 cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencodeext()
665 cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencodeext()
670 cipher = WLAN_CIPHER_SUITE_TKIP; in cfg80211_wext_siwencodeext()
673 cipher = WLAN_CIPHER_SUITE_CCMP; in cfg80211_wext_siwencodeext()
676 cipher = WLAN_CIPHER_SUITE_AES_CMAC; in cfg80211_wext_siwencodeext()
686 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_wext_siwencodeext()
709 params.cipher = cipher; in cfg80211_wext_siwencodeext()
749 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
988 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
990 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
993 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
996 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
999 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
1002 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
1005 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
1013 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
1018 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1023 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1028 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1033 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1038 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()