Lines Matching refs:cipher
458 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption()
502 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
536 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
537 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
560 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
636 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
638 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
658 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()
761 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
989 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
991 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
994 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
997 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
1000 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
1003 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
1006 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
1014 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
1019 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1024 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1029 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1034 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1039 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()