MLK-19517-16 brcmfmac: fix full timeout waiting for action frame on-channel tx
authorChung-Hsien Hsu <stanley.hsu@cypress.com>
Mon, 11 Jun 2018 09:32:21 +0000 (17:32 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1f662753a6d87f6dae98d5ddc95406d2bba98c2c
tree68e8515dbd705acb52acf8fd6faaa3a12681a4ce
parent75395e76f8772ac3c7eee6096c5814f2aed97495
MLK-19517-16 brcmfmac: fix full timeout waiting for action frame on-channel tx

The driver sends an action frame down and waits for a completion signal
triggered by the received BRCMF_E_ACTION_FRAME_OFF_CHAN_COMPLETE event
to continue the process. However, the action frame could be transmitted
either on the current channel or on an off channel. For the on-channel
case, only BRCMF_E_ACTION_FRAME_COMPLETE event will be received when
the frame is transmitted, which make the driver always wait a full
timeout duration. This patch has the completion signal be triggered by
receiving the BRCMF_E_ACTION_FRAME_COMPLETE event for the on-channel
case.

Signed-off-by: Chung-Hsien Hsu <stanley.hsu@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit:3758e8288d6feb7b5dc125a4b8107a4f7e5963ab)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.h