Lines Matching defs:cipher
425 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) {
469 wdev->wext.keys->params[idx].cipher = 0;
492 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 &&
493 params->cipher != WLAN_CIPHER_SUITE_WEP104)
503 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 ||
504 params->cipher == WLAN_CIPHER_SUITE_WEP104)) {
512 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 ||
513 params->cipher == WLAN_CIPHER_SUITE_WEP104) &&
536 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC &&
612 params.cipher = WLAN_CIPHER_SUITE_WEP40;
614 params.cipher = WLAN_CIPHER_SUITE_WEP104;
634 u32 cipher;
649 cipher = 0;
653 cipher = WLAN_CIPHER_SUITE_WEP40;
655 cipher = WLAN_CIPHER_SUITE_WEP104;
660 cipher = WLAN_CIPHER_SUITE_TKIP;
663 cipher = WLAN_CIPHER_SUITE_CCMP;
666 cipher = WLAN_CIPHER_SUITE_AES_CMAC;
676 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) {
699 params.cipher = cipher;
737 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) {
965 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher)
967 if (cipher & IW_AUTH_CIPHER_WEP40)
970 else if (cipher & IW_AUTH_CIPHER_WEP104)
973 else if (cipher & IW_AUTH_CIPHER_TKIP)
976 else if (cipher & IW_AUTH_CIPHER_CCMP)
979 else if (cipher & IW_AUTH_CIPHER_AES_CMAC)
982 else if (cipher & IW_AUTH_CIPHER_NONE)
990 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher)
995 if (cipher & IW_AUTH_CIPHER_WEP40) {
1000 if (cipher & IW_AUTH_CIPHER_WEP104) {
1005 if (cipher & IW_AUTH_CIPHER_TKIP) {
1010 if (cipher & IW_AUTH_CIPHER_CCMP) {
1015 if (cipher & IW_AUTH_CIPHER_AES_CMAC) {