brcmfmac: fix returning cipher_suite for get_key operation.
authorHante Meuleman <meuleman@broadcom.com>
Tue, 2 Apr 2013 19:06:19 +0000 (21:06 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Apr 2013 18:31:57 +0000 (14:31 -0400)
commitc5bf53a826d22c284e6e1d309d32c388684e26a7
tree9673cc918cb6f6490175ac23cba7da68cd631c79
parent5c33a9420499e384a5b7c2262b17fd608ec76472
brcmfmac: fix returning cipher_suite for get_key operation.

When multiple cipher suites have been programmed then the lowest
suite is to be retured. This fixes issue when AP mode is using
CCMP and TKIP WPA combination where rekeying will fail.

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