brcmfmac: respect reason when deleting (deauthenticating) STA
PATCH 1/1 brcmfmac: respect reason when deleting (deauthenticating) STA
Starting with kernel 3.19 reason is provided by cfg80211.
Signed-off-by Rafał Miłecki <[email protected]>
Acked-by Arend van Spriel <[email protected]>
--- drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +1 -1
@@ -4272,7 +4272,7 @@ brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev,return -EIO ;memcpy (&scbval.ea, params->mac,ETH_ALEN ); - scbval.val =cpu_to_le32 (WLAN_REASON_DEAUTH_LEAVING ); + scbval.val =cpu_to_le32 (params->reason_code); err =brcmf_fil_cmd_data_set (ifp,BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON , &scbval,sizeof (scbval));if (err)
Signature · 1 line
1.8.4.5
Kalle Valo
AppliedQuoted 4 lines · Rafał Miłecki
Starting with kernel 3.19 reason is provided by cfg80211.
Signed-off-by Rafał Miłecki <[email protected]>Acked-by Arend van Spriel <[email protected]>
Thanks, applied.
Signature · 1 line
Kalle Valo