Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c0cfd4b authored by M. Vefa Bicakci's avatar M. Vefa Bicakci Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: Fix "before/around/after" whitespace issues



Correct a number of "space(s) required before/around/after" checkpatch.pl
issues in a number of functions in rtl8723au's rtw_security.c.

Signed-off-by: default avatarM. Vefa Bicakci <m.v.b@runbox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5d8bde7
Loading
Loading
Loading
Loading
+113 −106
Original line number Diff line number Diff line
@@ -663,7 +663,11 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,
				phase2(&rc4key[0], prwskey, (u16 *)&ttkey[0], pnl);

				if ((curfragnum + 1) == pattrib->nr_frags) {	/* 4 the last fragment */
					length = pattrib->last_txcmdsz-pattrib->hdrlen-pattrib->iv_len- pattrib->icv_len;
					length = (pattrib->last_txcmdsz -
						  pattrib->hdrlen -
						  pattrib->iv_len -
						  pattrib->icv_len);

					RT_TRACE(_module_rtl871x_security_c_, _drv_info_,
						 "pattrib->iv_len =%x, pattrib->icv_len =%x\n",
						 pattrib->iv_len,
@@ -676,7 +680,11 @@ int rtw_tkip_encrypt23a(struct rtw_adapter *padapter,

				}
				else {
					length = pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ;
					length = (pxmitpriv->frag_len -
						  pattrib->hdrlen -
						  pattrib->iv_len -
						  pattrib->icv_len);

					*((u32 *)crc) = cpu_to_le32(getcrc32(payload, length));/* modified by Amy*/
					arcfour_init(&mycontext, rc4key, 16);
					arcfour_encrypt(&mycontext, payload, payload, length);
@@ -1075,7 +1083,6 @@ static void construct_mic_header2(u8 *mic_header2, u8 *mpdu, int a4_exists,

	if (!qc_exists && a4_exists) {
		for (i = 0; i < 6; i++) mic_header2[8+i] = mpdu[24+i];   /* A4 */

	}

	if (qc_exists && !a4_exists) {