staging: vt6656: MACvWriteBSSIDAddress remove pbyData
Remove pbyData and point directly to pbyEtherAddr The size is always ETH_ALEN (6) Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e1cc91f688
commit
08a150c506
1 changed files with 2 additions and 11 deletions
|
@ -216,21 +216,12 @@ void MACvWriteWord(struct vnt_private *priv, u8 reg_ofs, u16 word)
|
||||||
|
|
||||||
void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr)
|
void MACvWriteBSSIDAddress(struct vnt_private *pDevice, u8 *pbyEtherAddr)
|
||||||
{
|
{
|
||||||
u8 pbyData[6];
|
|
||||||
|
|
||||||
pbyData[0] = *((u8 *)pbyEtherAddr);
|
|
||||||
pbyData[1] = *((u8 *)pbyEtherAddr+1);
|
|
||||||
pbyData[2] = *((u8 *)pbyEtherAddr+2);
|
|
||||||
pbyData[3] = *((u8 *)pbyEtherAddr+3);
|
|
||||||
pbyData[4] = *((u8 *)pbyEtherAddr+4);
|
|
||||||
pbyData[5] = *((u8 *)pbyEtherAddr+5);
|
|
||||||
|
|
||||||
CONTROLnsRequestOut(pDevice,
|
CONTROLnsRequestOut(pDevice,
|
||||||
MESSAGE_TYPE_WRITE,
|
MESSAGE_TYPE_WRITE,
|
||||||
MAC_REG_BSSID0,
|
MAC_REG_BSSID0,
|
||||||
MESSAGE_REQUEST_MACREG,
|
MESSAGE_REQUEST_MACREG,
|
||||||
ARRAY_SIZE(pbyData),
|
ETH_ALEN,
|
||||||
pbyData
|
pbyEtherAddr
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue