Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8175c9c7 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by Hamad Kadmany
Browse files

wil6210: prevent double disconnect command issuing



Disconnect flow may be invoked either from upper layer request,
or from event reported by the firmware.

In case of firmware event, driver need to release resources for the station but
not send another disconnect WMI command.

In case of upper layer request, WMI_DISCONNECT_STA_CMDID command need to
be issued for the firmware to perform disconnect on the MAC layer. Eventually,
event is expected to confirm MAC disconnect, but it is better to not wait for
firmware event and release station resources immediately. FW may fail to
report disconnect for various reasons, so one could not rely on event always reported.

Introduce parameter to distinguish 2 cases above to prevent double WMI command
issuing.

Change-Id: I2a3b385f61c780565d4ea0cc75b3a5a9be4b7f2f
Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Git-commit: b516fcc5542d41041156b8e5f93f47cbb603c4b7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git


[hkadmany@codeaurora.org: trivial backport to kernel 3.10]
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 0695f5d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment