summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-05-21 09:37:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-23 16:27:42 +0900
commit9e3d6df2df8dbc4c2c5fb733dc494dfc82e0e2ae (patch)
tree65b23f7392ca20312f93585233afc33300f72dfb /drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
parent07a4b1b1bcd36ee981cfbbd910062e3593864b18 (diff)
downloadlinux-stable-9e3d6df2df8dbc4c2c5fb733dc494dfc82e0e2ae.tar.gz
linux-stable-9e3d6df2df8dbc4c2c5fb733dc494dfc82e0e2ae.tar.bz2
linux-stable-9e3d6df2df8dbc4c2c5fb733dc494dfc82e0e2ae.zip
staging: rtl8723au: Use WLAN_CIPHER_SUITE_* to mark crypto type
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c')
-rw-r--r--drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
index 0afc74253fe4..a29fa76931c1 100644
--- a/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
+++ b/drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c
@@ -2081,18 +2081,17 @@ static void fill_txdesc_sectype(struct pkt_attrib *pattrib,
if ((pattrib->encrypt > 0) && !pattrib->bswenc) {
switch (pattrib->encrypt) {
/* SEC_TYPE */
- case _WEP40_:
- case _WEP104_:
- case _TKIP_:
- case _TKIP_WTMIC_:
+ case WLAN_CIPHER_SUITE_WEP40:
+ case WLAN_CIPHER_SUITE_WEP104:
+ case WLAN_CIPHER_SUITE_TKIP:
ptxdesc->sectype = 1;
break;
- case _AES_:
+ case WLAN_CIPHER_SUITE_CCMP:
ptxdesc->sectype = 3;
break;
- case _NO_PRIVACY_:
+ case 0:
default:
break;
}