Lines Matching refs:cipher
439 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption()
483 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
506 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption()
507 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption()
517 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
518 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in __cfg80211_set_encryption()
526 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
527 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
550 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
629 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
631 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
657 u32 cipher; in cfg80211_wext_siwencodeext() local
673 cipher = 0; in cfg80211_wext_siwencodeext()
677 cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencodeext()
679 cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencodeext()
684 cipher = WLAN_CIPHER_SUITE_TKIP; in cfg80211_wext_siwencodeext()
687 cipher = WLAN_CIPHER_SUITE_CCMP; in cfg80211_wext_siwencodeext()
690 cipher = WLAN_CIPHER_SUITE_AES_CMAC; in cfg80211_wext_siwencodeext()
700 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_wext_siwencodeext()
723 params.cipher = cipher; in cfg80211_wext_siwencodeext()
765 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
1034 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
1036 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
1039 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
1042 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
1045 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
1048 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
1051 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
1059 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
1064 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1069 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1074 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1079 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1084 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()