349-0002-brcmfmac-fix-clearing-wowl-wake-indicators.patch 1.2 KB

123456789101112131415161718192021222324252627
  1. From: Hante Meuleman <hante.meuleman@broadcom.com>
  2. Date: Mon, 11 Apr 2016 11:35:22 +0200
  3. Subject: [PATCH] brcmfmac: fix clearing wowl wake indicators
  4. Newer firmwares require the usage of the wowl wakeind struct as size
  5. for the iovar to clear the wake indicators. Older firmwares do not
  6. care, so change the used size.
  7. Reviewed-by: Arend Van Spriel <arend@broadcom.com>
  8. Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
  9. Signed-off-by: Hante Meuleman <hante.meuleman@broadcom.com>
  10. Signed-off-by: Arend van Spriel <arend@broadcom.com>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  14. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
  15. @@ -3608,7 +3608,8 @@ static void brcmf_configure_wowl(struct
  16. if (!test_bit(BRCMF_VIF_STATUS_CONNECTED, &ifp->vif->sme_state))
  17. wowl_config |= BRCMF_WOWL_UNASSOC;
  18. - brcmf_fil_iovar_data_set(ifp, "wowl_wakeind", "clear", strlen("clear"));
  19. + brcmf_fil_iovar_data_set(ifp, "wowl_wakeind", "clear",
  20. + sizeof(struct brcmf_wowl_wakeind_le));
  21. brcmf_fil_iovar_int_set(ifp, "wowl", wowl_config);
  22. brcmf_fil_iovar_int_set(ifp, "wowl_activate", 1);
  23. brcmf_bus_wowl_config(cfg->pub->bus_if, true);