Commit 7fde010d authored by Hante Meuleman's avatar Hante Meuleman Committed by Kalle Valo

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
Reviewed-by: default avatarPieter-Paul Giesberts <>
Reviewed-by: default avatarArend Van Spriel <>
Signed-off-by: default avatarHante Meuleman <>
Signed-off-by: default avatarArend van Spriel <>
Signed-off-by: default avatarKalle Valo <>
parent 28e460b0
......@@ -371,6 +371,7 @@ int brcmf_fweh_activate_events(struct brcmf_if *ifp)
int i, err;
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",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment