qcacld-3.0: Acquire mutex before accessing p2p context

Every access to remain_on_chan_ctx need to be protected
with mutex lock.

This change refactors the code in the function wlan_hdd_
cancel_existing_remain_on_channel() and wlan_hdd_cancel_
pending_roc().

Change-Id: Ie4551ab7cc4297f04ea2980aff7e613f6d3d2bb6
CRs-Fixed: 2020554
1 file changed
tree: 0fc5f03ec94416d6ecbb52ba461a1f414e2f7b33
  1. core/
  2. uapi/
  3. Android.mk
  4. Kbuild
  5. Kconfig
  6. Makefile
  7. README.txt