summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723au/core/rtw_xmit.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-05-25 20:43:02 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-25 22:14:38 (GMT)
commit06e17e361eadc3897bcd58370a6e5dbf94722d21 (patch)
tree77abf96e3a293fd2ae5fc0a0e655d7e9176e5417 /drivers/staging/rtl8723au/core/rtw_xmit.c
parentc1caefbb4c3f600260a12dbe7dfc087a1a98d51c (diff)
downloadlinux-06e17e361eadc3897bcd58370a6e5dbf94722d21.tar.xz
staging: rtl8723au: Use ieee80211.h defines for IV/ICV len values
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/core/rtw_xmit.c')
-rw-r--r--drivers/staging/rtl8723au/core/rtw_xmit.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c
index 3869386..0c66d35 100644
--- a/drivers/staging/rtl8723au/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723au/core/rtw_xmit.c
@@ -597,13 +597,13 @@ static int update_attrib(struct rtw_adapter *padapter,
switch (pattrib->encrypt) {
case WLAN_CIPHER_SUITE_WEP40:
case WLAN_CIPHER_SUITE_WEP104:
- pattrib->iv_len = 4;
- pattrib->icv_len = 4;
+ pattrib->iv_len = IEEE80211_WEP_IV_LEN;
+ pattrib->icv_len = IEEE80211_WEP_ICV_LEN;
break;
case WLAN_CIPHER_SUITE_TKIP:
- pattrib->iv_len = 8;
- pattrib->icv_len = 4;
+ pattrib->iv_len = IEEE80211_TKIP_IV_LEN;
+ pattrib->icv_len = IEEE80211_TKIP_ICV_LEN;
if (!padapter->securitypriv.busetkipkey) {
RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
@@ -619,8 +619,8 @@ static int update_attrib(struct rtw_adapter *padapter,
RT_TRACE(_module_rtl871x_xmit_c_, _drv_info_,
("pattrib->encrypt =%d (WLAN_CIPHER_SUITE_CCMP)\n",
pattrib->encrypt));
- pattrib->iv_len = 8;
- pattrib->icv_len = 8;
+ pattrib->iv_len = IEEE80211_CCMP_HDR_LEN;
+ pattrib->icv_len = IEEE80211_CCMP_MIC_LEN;
break;
default: