/Linux-v4.19/drivers/staging/rtl8188eu/include/ |
D | rtw_xmit.h | 40 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 42 pattrib_iv[0] = dot11txpn._byte_.TSC0;\ 43 pattrib_iv[1] = dot11txpn._byte_.TSC1;\ 44 pattrib_iv[2] = dot11txpn._byte_.TSC2;\ 46 dot11txpn.val = (dot11txpn.val == 0xffffff) ? 0 : (dot11txpn.val+1);\ 50 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 52 pattrib_iv[0] = dot11txpn._byte_.TSC1;\ 53 pattrib_iv[1] = (dot11txpn._byte_.TSC1 | 0x20) & 0x7f;\ 54 pattrib_iv[2] = dot11txpn._byte_.TSC0;\ 56 pattrib_iv[4] = dot11txpn._byte_.TSC2;\ [all …]
|
D | rtw_security.h | 213 #define GET_TKIP_PN(iv, dot11txpn) \ argument 215 dot11txpn._byte_.TSC0 = iv[2]; \ 216 dot11txpn._byte_.TSC1 = iv[0]; \ 217 dot11txpn._byte_.TSC2 = iv[4]; \ 218 dot11txpn._byte_.TSC3 = iv[5]; \ 219 dot11txpn._byte_.TSC4 = iv[6]; \ 220 dot11txpn._byte_.TSC5 = iv[7]; \
|
D | sta_info.h | 91 union pn48 dot11txpn; /* PN48 used for Unicast xmit. */ member
|
/Linux-v4.19/drivers/staging/rtl8723bs/include/ |
D | rtw_xmit.h | 41 #define WEP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 43 pattrib_iv[0] = dot11txpn._byte_.TSC0;\ 44 pattrib_iv[1] = dot11txpn._byte_.TSC1;\ 45 pattrib_iv[2] = dot11txpn._byte_.TSC2;\ 47 dot11txpn.val = (dot11txpn.val == 0xffffff) ? 0: (dot11txpn.val+1);\ 51 #define TKIP_IV(pattrib_iv, dot11txpn, keyidx)\ argument 53 pattrib_iv[0] = dot11txpn._byte_.TSC1;\ 54 pattrib_iv[1] = (dot11txpn._byte_.TSC1 | 0x20) & 0x7f;\ 55 pattrib_iv[2] = dot11txpn._byte_.TSC0;\ 57 pattrib_iv[4] = dot11txpn._byte_.TSC2;\ [all …]
|
D | rtw_security.h | 262 #define GET_TKIP_PN(iv, dot11txpn)\ argument 264 dot11txpn._byte_.TSC0 =iv[2];\ 265 dot11txpn._byte_.TSC1 =iv[0];\ 266 dot11txpn._byte_.TSC2 =iv[4];\ 267 dot11txpn._byte_.TSC3 =iv[5];\ 268 dot11txpn._byte_.TSC4 =iv[6];\ 269 dot11txpn._byte_.TSC5 =iv[7];\
|
D | sta_info.h | 94 union pn48 dot11txpn; /* PN48 used for Unicast xmit */ member
|
/Linux-v4.19/drivers/staging/rtl8188eu/core/ |
D | rtw_security.c | 588 union pn48 dot11txpn; in rtw_tkip_encrypt() local 620 GET_TKIP_PN(iv, dot11txpn); in rtw_tkip_encrypt() 622 pnl = (u16)(dot11txpn.val); in rtw_tkip_encrypt() 623 pnh = (u32)(dot11txpn.val>>16); in rtw_tkip_encrypt() 668 union pn48 dot11txpn; in rtw_tkip_decrypt() local 697 GET_TKIP_PN(iv, dot11txpn); in rtw_tkip_decrypt() 699 pnl = (u16)(dot11txpn.val); in rtw_tkip_decrypt() 700 pnh = (u32)(dot11txpn.val>>16); in rtw_tkip_decrypt()
|
D | rtw_xmit.c | 964 WEP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce() 968 TKIP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce() 970 TKIP_IV(pattrib->iv, psta->dot11txpn, 0); in rtw_xmitframe_coalesce() 974 AES_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in rtw_xmitframe_coalesce() 976 AES_IV(pattrib->iv, psta->dot11txpn, 0); in rtw_xmitframe_coalesce()
|
D | rtw_mlme.c | 881 memset((u8 *)&psta->dot11txpn, 0, sizeof(union pn48)); in rtw_joinbss_update_stainfo()
|
/Linux-v4.19/drivers/staging/rtl8723bs/core/ |
D | rtw_security.c | 663 union pn48 dot11txpn; in rtw_tkip_encrypt() local 713 GET_TKIP_PN(iv, dot11txpn); in rtw_tkip_encrypt() 715 pnl = (u16)(dot11txpn.val); in rtw_tkip_encrypt() 716 pnh = (u32)(dot11txpn.val>>16); in rtw_tkip_encrypt() 771 union pn48 dot11txpn; in rtw_tkip_decrypt() local 833 GET_TKIP_PN(iv, dot11txpn); in rtw_tkip_decrypt() 835 pnl = (u16)(dot11txpn.val); in rtw_tkip_decrypt() 836 pnh = (u32)(dot11txpn.val>>16); in rtw_tkip_decrypt()
|
D | rtw_wlan_util.c | 2227 if (psecpriv->dot11PrivacyAlgrthm != _NO_PRIVACY_ && psta->dot11txpn.val > 0) in rtw_get_sec_iv() 2228 psta->dot11txpn.val--; in rtw_get_sec_iv() 2229 AES_IV(pcur_dot11txpn, psta->dot11txpn, 0); in rtw_get_sec_iv() 2249 if (pwrpriv->wowlan_fw_iv > psta->dot11txpn.val) { in rtw_set_sec_pn() 2251 psta->dot11txpn.val = pwrpriv->wowlan_fw_iv + 2; in rtw_set_sec_pn() 2254 psta->dot11txpn.val += 2; in rtw_set_sec_pn() 2256 DBG_871X("%s: dot11txpn: 0x%016llx\n", __func__, psta->dot11txpn.val); in rtw_set_sec_pn()
|
D | rtw_xmit.c | 557 WEP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in update_attrib_sec_info() 573 TKIP_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in update_attrib_sec_info() 575 TKIP_IV(pattrib->iv, psta->dot11txpn, 0); in update_attrib_sec_info() 588 AES_IV(pattrib->iv, psta->dot11txpn, pattrib->key_idx); in update_attrib_sec_info() 590 AES_IV(pattrib->iv, psta->dot11txpn, 0); in update_attrib_sec_info()
|
D | rtw_mlme.c | 1247 memset((u8 *)&psta->dot11txpn, 0, sizeof(union pn48)); in rtw_joinbss_update_stainfo() 1248 psta->dot11txpn.val = psta->dot11txpn.val + 1; in rtw_joinbss_update_stainfo()
|