brcmfmac: Use role from wdev on AP commands and fix stop_ap.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 8 Feb 2013 14:53:53 +0000 (15:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:41 +0000 (14:51 -0500)
commit426d0a562945f9e0391bf685940dfad01e1200dc
tree3081d2060bd65e9a882c8efec6d564e979e97881
parent2fde59d93f8ac5525213996b5e98efb8f4d8c88c
brcmfmac: Use role from wdev on AP commands and fix stop_ap.

Use the stored role in wdev struct to determine AP/GO role. This
simplifies code. Fix stop_ap for GO role.

Reviewed-by: Arend Van Spriel <arend@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