Lines Matching refs:cipher
451 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption()
497 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
522 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption()
523 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption()
533 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
534 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in __cfg80211_set_encryption()
542 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
543 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
569 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
658 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
660 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
687 u32 cipher; in cfg80211_wext_siwencodeext() local
710 cipher = 0; in cfg80211_wext_siwencodeext()
714 cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencodeext()
716 cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencodeext()
721 cipher = WLAN_CIPHER_SUITE_TKIP; in cfg80211_wext_siwencodeext()
724 cipher = WLAN_CIPHER_SUITE_CCMP; in cfg80211_wext_siwencodeext()
727 cipher = WLAN_CIPHER_SUITE_AES_CMAC; in cfg80211_wext_siwencodeext()
737 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_wext_siwencodeext()
760 params.cipher = cipher; in cfg80211_wext_siwencodeext()
803 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
1074 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
1076 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
1079 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
1082 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
1085 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
1088 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
1091 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
1099 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
1104 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1109 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1114 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1119 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1124 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()