qcacld-3.0: set modules_inprogress only when modules state is < 3

check if the modules are enabled before setting the
start_modules_in_progress flag. In some scenario one
thread could be checking if the modules is enabled
by setting start_modules_inprogress flag, in the
other thread context some process reading this flag
can take a wrong decision resulting in
not expected output even though modules are properly enabled.

Hence, set the start_modules_inprogress only if
modules are not enabled.

CRs-Fixed: 2142855
Change-Id: I24345375bb1ad21d055ff934a72b3df4d815ea16
1 file changed
tree: 4ec35855a20ff21fbe13214ecc1d4a153c54f221
  1. components/
  2. core/
  3. uapi/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile
  8. README.txt