wlan: Fix Race Condition in WDA_TxPacket.

In WDA_TxPacket(VosMCThread) in case of Tx timeout, 1st callback
is set as null and then flag is set as timeout. While in
WDA_TxComplete(VosTXThread), 1st it check whether flag is timedout
and then it checks for callback to free Vos Pkt. Hence a race
condition arises whereby Vos Pkt can never be free.
As a prt of fix made sure that in both thread condition check is
in same order.
Change-Id: Ic01d433b40f6282e4b4b049c1e7ddae66220733d
CRs-Fixed: 771010
1 file changed
tree: fefda7930859e67f40ff6bb91b74665ec86f3c3b
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile