wlan: Change timer context to global pMac from local pMac

This problem is due to race between driver unload and
timer expiry in kernel.In this case, SYS_MSG_ID_MC_STOP
msg is posted from RM thread context during driver unload.
As part of processing this msg, roaming module sets
tCsrTimerInfo->pMac to NULL in MC thread context. Meanwhile,
timer msg also is enqueued from kernel thread. After completion
of SYS_MSG_ID_MC_STOP msg, MC thread will call timer callback
which accesses tCsrTimerInfo->pMac which becomes NULL though
pMac still exists.

This issue is fixed now by having the timer use global pMac
which will get freed after stopping all threads and keep
these timers in synergy.

Change-Id: I37154e1da3f9f9477a73cc864218be952a1b1bbe
CRs-Fixed: 777052
2 files changed
tree: bb8bf2a8ea40898649744750736b140ef8fc49b8
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile