brcmfmac: fix tkip mic tx/rx ap swap bug.
authorHante Meuleman <meuleman@broadcom.com>
Tue, 2 Apr 2013 19:06:17 +0000 (21:06 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Apr 2013 18:31:56 +0000 (14:31 -0400)
commit992f6068f09b3d711ffe247701287a2ee87842cb
tree636597e761b1d9cdd837c7db44cdbfa1c2698b79
parent21de979ecfc7b7f9442f8aea9a54b3ab670d0151
brcmfmac: fix tkip mic tx/rx ap swap bug.

tx and rx michael tkip keys are always swapped in case being
configured per mac. This is wrong for AP. The swap should only
be done for STA mode.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-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/wl_cfg80211.c