wlan: Avoid reg domain intersection after load if NV CC is non 00

If NV country code is non 00, during unload driver set country
code 00 in kernel. Due to this next time driver load the kernel
is making an intersection of def NV country and 00 and power
limits are set according to 00.

To solve this avoid sending 00 country during unload if default
country in NV is non 00.
When kernel send the hint by user or core for the previous
country during reload, copy the kernel country in
linux_reg_cc, before returning if loading is in progress,
So that in vos_nv_getRegDomainFromCountryCode driver wont send
the country hint to kernel, if kernel and driver country are
same and thus avoiding the 3 sec delay.
Also reduce the regwait time from 3 sec to 300ms.

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