prima: limit dwell time to 40ms for scan when miracast is running

In the current implementation, the min channel time and max
channel time is 20ms and 40 ms respectively for active scan and
the max channel is 110ms for passive scan.

When scanning the passive channels the device will be offchannel
for 110ms which is affecting the miracast session. So limiting
the max channel time to 40ms when a miracast session is running.

CRs-Fixed: 702516
Change-Id: I08e21bd2974e888696a9708710adee998e3c43fd
wlan: HDD: initialize temp variable before use.

In function __wlan_hdd_cfg80211_get_station, temp will be accessed
uninitialized in case value of sinfo->signal is greater than rssi
values of rssiMcsTbl array.

Initialising temp to number of rows in supported_mcs_rate.

Change-Id: I3fafaf7f1483f5ce3892395a86640f64aef98f65
CRs-Fixed: 703678
wlan: HDD: Free chAvoidInd memory allocated in hdd_restart_softap

In hdd_restart_softap, memory allocated to chAvoidInd is not freed.
Freeing memory before exiting the function.

Change-Id: Id9d52ca1579e94be975522ea22d672a67de51204
CRs-Fixed: 703678
wlan: Initialize vosStatus in hdd_AssociationCompletionHandler

vosStatus will be accessed without initialization if
hddDisconInProgress is set.
Initialising vosStatus to VOS_STATUS_SUCCESS.

Change-Id: I7f8b31482d6ddec49c0078a696155e59490b4241
CRs-Fixed: 703678
wlan: correct NULL pointer dereference

Correct Null pointer dereference with NULL
check pointer condition

CRs-Fixed: 708408
Change-Id: I9186991752ed19e1e23a7d633e91bddd0310ebe0
wlan: Fix Crash in csrProcessScanCommand

While moving smeConfig to heap from stack
in hdd_set_sme_config memzero passed with
wrong arguments (passed pointer instead of
primitive type) which lead to remain
garbage into the fscantwice ini value.

Change-Id: I6b8f536f37f92519a2a7e036d18d1ba77cfea774
CRs-Fixed: 716656
Wlan: Revision 3.2.3.407

Revision 3.2.3.407

Change-Id: I1c78c4c8cb798d7f097b954ac2eb5f9b9d999d84
CRs-Fixed: 688141