All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/10] staging: vt6656: rxtx.c: s_vFillTxKey Replace dwRevIVCounter
@ 2014-03-22  9:01 Malcolm Priestley
  2014-03-22  9:01 ` [PATCH 02/10] staging: vt6656: rxtx s_vFillTxKey Fix pdwIV base type Malcolm Priestley
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Malcolm Priestley @ 2014-03-22  9:01 UTC (permalink / raw)
  To: gregkh; +Cc: linux-wireless, Malcolm Priestley

Fix base type to __le32 and remove camel case.

Camel case change
dwRevIVCounter -> rev_iv_counter

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
---
 drivers/staging/vt6656/rxtx.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c
index 3840323..9f80a7a 100644
--- a/drivers/staging/vt6656/rxtx.c
+++ b/drivers/staging/vt6656/rxtx.c
@@ -184,28 +184,28 @@ static void s_vFillTxKey(struct vnt_private *pDevice,
 	u32 *pdwIV = (u32 *)pbyIVHead;
 	u32 *pdwExtIV = (u32 *)((u8 *)pbyIVHead + 4);
 	struct ieee80211_hdr *pMACHeader = (struct ieee80211_hdr *)pbyHdrBuf;
-	u32 dwRevIVCounter;
+	__le32 rev_iv_counter;
 
 	/* Fill TXKEY */
 	if (pTransmitKey == NULL)
 		return;
 
-	dwRevIVCounter = cpu_to_le32(pDevice->dwIVCounter);
+	rev_iv_counter = cpu_to_le32(pDevice->dwIVCounter);
 	*pdwIV = pDevice->dwIVCounter;
 	pDevice->byKeyIndex = pTransmitKey->dwKeyIndex & 0xf;
 
 	switch (pTransmitKey->byCipherSuite) {
 	case KEY_CTL_WEP:
 		if (pTransmitKey->uKeyLength == WLAN_WEP232_KEYLEN) {
-			memcpy(pDevice->abyPRNG, (u8 *)&dwRevIVCounter, 3);
+			memcpy(pDevice->abyPRNG, (u8 *)&rev_iv_counter, 3);
 			memcpy(pDevice->abyPRNG + 3, pTransmitKey->abyKey,
 						pTransmitKey->uKeyLength);
 		} else {
-			memcpy(pbyBuf, (u8 *)&dwRevIVCounter, 3);
+			memcpy(pbyBuf, (u8 *)&rev_iv_counter, 3);
 			memcpy(pbyBuf + 3, pTransmitKey->abyKey,
 						pTransmitKey->uKeyLength);
 			if (pTransmitKey->uKeyLength == WLAN_WEP40_KEYLEN) {
-				memcpy(pbyBuf+8, (u8 *)&dwRevIVCounter, 3);
+				memcpy(pbyBuf+8, (u8 *)&rev_iv_counter, 3);
 			memcpy(pbyBuf+11, pTransmitKey->abyKey,
 						pTransmitKey->uKeyLength);
 			}
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-03-22  9:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-22  9:01 [PATCH 01/10] staging: vt6656: rxtx.c: s_vFillTxKey Replace dwRevIVCounter Malcolm Priestley
2014-03-22  9:01 ` [PATCH 02/10] staging: vt6656: rxtx s_vFillTxKey Fix pdwIV base type Malcolm Priestley
2014-03-22  9:01 ` [PATCH 03/10] staging: vt6656: rxtx: s_vFillTxKey Fix base type pdwExtIV Malcolm Priestley
2014-03-22  9:01 ` [PATCH 04/10] staging: vt6656: rxtx: s_vFillTxKey fix pMACHeader sparse warning Malcolm Priestley
2014-03-22  9:01 ` [PATCH 05/10] staging: vt6656: rxtx Replace struct vnt_tx_fifo_head wTimeStamp Malcolm Priestley
2014-03-22  9:01 ` [PATCH 06/10] staging: vt6656: rxtx struct vnt_tx_buffer Replace wTxByteCount Malcolm Priestley
2014-03-22  9:01 ` [PATCH 07/10] staging : vt6656: rxtx struct vnt_beacon_buffer " Malcolm Priestley
2014-03-22  9:01 ` [PATCH 08/10] staging: vt6656: rxtx Replace vnt_tx_fifo_head wReserved Malcolm Priestley
2014-03-22  9:01 ` [PATCH 09/10] staging: vt6656: vnt_fill_ieee80211_rts replace TYPE_CTL_RTS macro Malcolm Priestley
2014-03-22  9:01 ` [PATCH 10/10] staging: vt6656: rxtx s_vFillCTSHead replace TYPE_CTL_CTS macro Malcolm Priestley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.