Lines Matching refs:cipher
426 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in __cfg80211_set_encryption()
470 wdev->wext.keys->params[idx].cipher = 0; in __cfg80211_set_encryption()
493 else if (params->cipher != WLAN_CIPHER_SUITE_WEP40 && in __cfg80211_set_encryption()
494 params->cipher != WLAN_CIPHER_SUITE_WEP104) in __cfg80211_set_encryption()
504 if (!addr && (params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
505 params->cipher == WLAN_CIPHER_SUITE_WEP104)) { in __cfg80211_set_encryption()
513 if ((params->cipher == WLAN_CIPHER_SUITE_WEP40 || in __cfg80211_set_encryption()
514 params->cipher == WLAN_CIPHER_SUITE_WEP104) && in __cfg80211_set_encryption()
537 if (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC && in __cfg80211_set_encryption()
613 params.cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencode()
615 params.cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencode()
635 u32 cipher; in cfg80211_wext_siwencodeext() local
650 cipher = 0; in cfg80211_wext_siwencodeext()
654 cipher = WLAN_CIPHER_SUITE_WEP40; in cfg80211_wext_siwencodeext()
656 cipher = WLAN_CIPHER_SUITE_WEP104; in cfg80211_wext_siwencodeext()
661 cipher = WLAN_CIPHER_SUITE_TKIP; in cfg80211_wext_siwencodeext()
664 cipher = WLAN_CIPHER_SUITE_CCMP; in cfg80211_wext_siwencodeext()
667 cipher = WLAN_CIPHER_SUITE_AES_CMAC; in cfg80211_wext_siwencodeext()
677 if (cipher == WLAN_CIPHER_SUITE_AES_CMAC) { in cfg80211_wext_siwencodeext()
700 params.cipher = cipher; in cfg80211_wext_siwencodeext()
738 if (!wdev->wext.keys || !wdev->wext.keys->params[idx].cipher) { in cfg80211_wext_giwencode()
966 static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_group() argument
968 if (cipher & IW_AUTH_CIPHER_WEP40) in cfg80211_set_cipher_group()
971 else if (cipher & IW_AUTH_CIPHER_WEP104) in cfg80211_set_cipher_group()
974 else if (cipher & IW_AUTH_CIPHER_TKIP) in cfg80211_set_cipher_group()
977 else if (cipher & IW_AUTH_CIPHER_CCMP) in cfg80211_set_cipher_group()
980 else if (cipher & IW_AUTH_CIPHER_AES_CMAC) in cfg80211_set_cipher_group()
983 else if (cipher & IW_AUTH_CIPHER_NONE) in cfg80211_set_cipher_group()
991 static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher) in cfg80211_set_cipher_pairwise() argument
996 if (cipher & IW_AUTH_CIPHER_WEP40) { in cfg80211_set_cipher_pairwise()
1001 if (cipher & IW_AUTH_CIPHER_WEP104) { in cfg80211_set_cipher_pairwise()
1006 if (cipher & IW_AUTH_CIPHER_TKIP) { in cfg80211_set_cipher_pairwise()
1011 if (cipher & IW_AUTH_CIPHER_CCMP) { in cfg80211_set_cipher_pairwise()
1016 if (cipher & IW_AUTH_CIPHER_AES_CMAC) { in cfg80211_set_cipher_pairwise()