diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-04-16 08:48:43 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2016-04-16 08:48:43 +0000 |
commit | 894aed060ee15dafea19d94157adddf38ff8e2e7 (patch) | |
tree | adb07cf3620b80c16a754594560f7ea942a99620 /package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch | |
parent | e920824fdd8488a9659b9839feebe015362de6c2 (diff) | |
download | upstream-894aed060ee15dafea19d94157adddf38ff8e2e7.tar.gz upstream-894aed060ee15dafea19d94157adddf38ff8e2e7.tar.bz2 upstream-894aed060ee15dafea19d94157adddf38ff8e2e7.zip |
mac80211: update brcmfmac including missing boardrev workaround
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 49174
Diffstat (limited to 'package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch')
-rw-r--r-- | package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch b/package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch new file mode 100644 index 0000000000..0acb4faaf1 --- /dev/null +++ b/package/kernel/mac80211/patches/349-0001-brcmfmac-clear-eventmask-array-before-using-it.patch @@ -0,0 +1,27 @@ +From: Hante Meuleman <hante.meuleman@broadcom.com> +Date: Mon, 11 Apr 2016 11:35:21 +0200 +Subject: [PATCH] brcmfmac: clear eventmask array before using it + +When the event_msgs iovar is set an array is used to configure the +enabled events. This arrays needs to nulled before configuring +otherwise unhandled events will be enabled. This solves a problem +where in case of wowl the host got woken by an incorrectly enabled +event. + +Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> +Reviewed-by: Arend Van Spriel <arend@broadcom.com> +Signed-off-by: Hante Meuleman <hante.meuleman@broadcom.com> +Signed-off-by: Arend van Spriel <arend@broadcom.com> +Signed-off-by: Kalle Valo <kvalo@codeaurora.org> +--- + +--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c ++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c +@@ -371,6 +371,7 @@ int brcmf_fweh_activate_events(struct br + int i, err; + s8 eventmask[BRCMF_EVENTING_MASK_LEN]; + ++ memset(eventmask, 0, sizeof(eventmask)); + for (i = 0; i < BRCMF_E_LAST; i++) { + if (ifp->drvr->fweh.evt_handler[i]) { + brcmf_dbg(EVENT, "enable event %s\n", |