brcmfmac: fix generation of the p2p related mac addresses
authorArend van Spriel <arend@broadcom.com>
Fri, 8 Feb 2013 14:53:40 +0000 (15:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:38 +0000 (14:51 -0500)
commitde66efcadbb51935c8c668a38f2f1c187f349af9
tree3e9d914e7d441115656df4eac33e67042c0e591b
parent33a6b157f80af5e2a98a244b3dfff650bc5c7bcc
brcmfmac: fix generation of the p2p related mac addresses

The driver determines the P2P interface address and device
address from the primary mac address. However, the function
used an invalid input. This caused a mac address mismatch
between firmware and driver. This was hidden because the
brcmf_if_add() function corrected the error upon receiving
the IF_ADD event from firmware.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/p2p.c