brcmfmac: pass DEAUTH/DISASSOC reason code to user-space
authorArend van Spriel <arend@broadcom.com>
Sun, 25 Jan 2015 19:31:33 +0000 (20:31 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 29 Jan 2015 07:58:58 +0000 (09:58 +0200)
commit9b7a0ddc6073909bc61399ca3b8126ef886d5e8a
tree6ef239a4d88d844e9dc1452a1c6d18ce13fc5dc4
parent4dd8b26a40acf8450835d27bf922be145f7bd206
brcmfmac: pass DEAUTH/DISASSOC reason code to user-space

The driver always called cfg80211_disconnected() with reason parameter
set to zero, ie. unknown. However, firmware does provide a valid
802.11 reason code in DEAUTH and DISASSOC event message to the driver.
This patch passes the reason code to cfg80211_disconnected().

Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c