344-0012-brcmfmac-increase-timeout-for-tx-eapol.patch 1.3 KB

123456789101112131415161718192021222324252627282930
  1. From: Hante Meuleman <meuleman@broadcom.com>
  2. Date: Wed, 17 Feb 2016 11:27:01 +0100
  3. Subject: [PATCH] brcmfmac: increase timeout for tx eapol
  4. When keys get set and updated this has to happen after eapol got
  5. transmitted (without key or old key) before the key can be updated.
  6. To make sure the order of sending eapol and configuring key is done
  7. correctly a timeout for tx of eapol is applied. This timeout is set
  8. to 50 msec, which is not always enough. Especially in AP mode and
  9. key updates the timeout may need to be much longer because client(s)
  10. can be in powersave. Increase the timeout from 50 to 950 msec.
  11. Reviewed-by: Arend Van Spriel <arend@broadcom.com>
  12. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
  13. Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
  14. Signed-off-by: Arend van Spriel <arend@broadcom.com>
  15. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  16. ---
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
  19. @@ -42,7 +42,7 @@ MODULE_AUTHOR("Broadcom Corporation");
  20. MODULE_DESCRIPTION("Broadcom 802.11 wireless LAN fullmac driver.");
  21. MODULE_LICENSE("Dual BSD/GPL");
  22. -#define MAX_WAIT_FOR_8021X_TX msecs_to_jiffies(50)
  23. +#define MAX_WAIT_FOR_8021X_TX msecs_to_jiffies(950)
  24. /* AMPDU rx reordering definitions */
  25. #define BRCMF_RXREORDER_FLOWID_OFFSET 0