staging: vt6656: MACvSetKeyEntry create structure to write key
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 25 May 2014 20:36:29 +0000 (21:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 May 2014 22:13:59 +0000 (15:13 -0700)
commit83bf96fe5167c3ce8434bc0056c8b2d548d72732
treeebbbf2e5e38f48fc8aca3bed5a198ad166afbc7f
parent5cb5bff703008c2a2dc2357ac660bcbf02796161
staging: vt6656: MACvSetKeyEntry create structure to write key

Create structure for wKeyCtl , pbyAddr and pbyKey

wKeyCtl(key_ctl) and pbyAddr(addr) form an union of 64 bits with swap
of two 32 bits. pbyKey(key) has a length of WLAN_KEY_LEN_CCMP(16)
bytes.

swap is needed because high order 32 bits needs to written out first.

pbyKey is memcpy on to key.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/mac.c
drivers/staging/vt6656/mac.h