TDLS: Avoid race condition in Implicit trigger mode

Modify wlan_hdd_tdls_pre_setup function to include
wlan_hdd_tdls_timer_restart function in tdls_lock mutex
to avoid a possible race condition.

Change-Id: Ica968648b3feaa6280f47a298168a3dfe6ceb674
CRs-fixed: 755177
wlan: Stop traffic as soon as driver started unloading.

If driver unload happens through GUI, supplicant issue
hdd_stop and do initial cleanup before putting driver
in unloading mode while this is not case with CLI.
In case of CLI, as soon as rmmod happens,
driver goes into unloading state and traffic queues are still
active.
Ideally As soon as driver has set unload flag; driver
should stop traffic.
Need to flush traffic queue as soon as unload flag is set.

CRs-Fixed: 753417
Change-Id: I4e684f8cd1f75aa342c4f0f24393c15670bfafa7
wlan: Avoid race between IP notifier register unregister

Avoid race condition between IP notifier registration and
de-registration by moving the registration out into the
initialization path.

Change-Id: I835f19290d55aed18d2bea2dc39ca95aac557e4a
CRs-Fixed: 750261
wlan: fix driver load failure with legacy regulatory code

When driver is compiled without CONFIG_ENABLE_LINUX_REG flag
the function vos_getCurrentCountryCode() is declared and used
but never defined which results in failure to load the driver.
Make sure that the function is not used when using legacy
regulatory code.

Change-Id: I9b1d3b6eb31bf1ecf601f14cf2c75156e581bd35
CRs-Fixed: 759463
Wlan: Release 3.2.3.460

Release 3.2.3.460

Change-Id: I98d2a7ea6688974248636b90ebc48a3db685385e
CRs-Fixed: 688141