wlan: Register Callback for fullPower before posting message.

In pmcRequestFullPower, driver is posting message to enter
in full power with wpa_supplicant thread.
 After posting message to enter in full power
context has been switched to MC thread.
MC thread starts processing IMPS RESPONSE, even before Supplicant
thread can add callback entry to requestFullPowerList,
so in effect the IMPS response handler does not invoke any callbacks,
 and command sitting in roam pending list does not get processed.

Fix this by posting callback before posting message to enter in
full power. If enter full power get fails remove the entry.

Change-Id: If3d32d6998bf7f65171a8d501db69e72a6ee2865
CRs-Fixed: 903963
1 file changed
tree: 45a8feb9e9edb5625cd1c28d447b40a960fb2ee9
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile