wlan: Address kernel panic due to asynchronous access of ROC context

Due to the race between supplicant thread and McThread where the
remain_on_chan context is made NULL and the __wlan_hdd_mgmt_tx
function in supplicant thread context tries to access the released
roc context results in kernel panic.

To mitigate this issue extend mutex lock to wlan_hdd_mgmt_tx function
to avoid asynchronous access to the remain_on_chan_ctx.

Change-Id: Ia70eed2e518e0fa64b86654cca3004a426f57c6b
CRs-Fixed: 771604
1 file changed
tree: 0c2aadec25b3ccf425129b054fb6ea3a9d2dd197
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile