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