wlan:Fix race condition between NV country and kernel country code.

During wlan init kernel gives last stored CC and wlan driver
also reads country from NV and gives regulatory hint for the
NV country. There is race condition where SME may delay
processing country from kernel which causes channel list to
be out of sync betweeen kernel and driver.
Due to this race first NV country is processed and
updated to kernel . After this SME processes
WNI_SME_GENERIC_CHANGE_COUNTRY_CODE command and will
change driver channel list as per previously stored CC
of kernel while kernel has channel list of NV country.
Fix this by ignoring country from kernel if driver has non zero
default cc in NV during driver load time.

CRs-Fixed: 695944
Change-Id: Iff52ce0f1fdff85dcb0a8f9cea91f94019f684cb
2 files changed
tree: 0fedc4c5c5bd076dfccf1d43593cef1792b54089
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile