Fix the errors identified by Static source code analysis in MAC

This commit fixes the errors identified by the static source code
analysis in MAC module.

Change-Id: Ie77862c77d3a0627f1e8cec3cbdecded9c3d503e
CRs-fixed: 609573
TDLS: Introduce optional TDLS Off Channel capability parameter.

This commit provides an option to configure tdls offchannel
capability through ini parameter, gEnableTDLSOffChannel and also
propogates this to the firmware and LIM layer.

Change-Id: Ia19d74c5defa789e053a4240392c87cc4da5bf65
CRs-Fixed: 610536
WDA/WDI: Pass Operating Channel and Class information to the firmware.

This commit ensures to pass the TDLS peer's operating channel to the
firmware in LinkEstablishRequest.

Change-Id: I0638d254ec3330afb9cee5a6fa979e7adaa59f7d
CRs-Fixed: 610536
wlan: Do not process SIGNAL_POLL request if roaming is in progress

When framework issues signal_poll request to get the statistics of
the station, supplicant shall get blocked for a maximum period of
800 msec waiting for the response if the processing of the
corresponding command fails in the host driver. This time out is
configured by WLAN_WAIT_TIME_STATS.
It is observed that if the signal_poll command is issued when the
device is trying to roam, the host driver times out to get the
response and thus the supplicant is blocked for this duration.
This results in the failed security association (4-way handshake)
with the AP as the supplicant shall not receive any of the events
from the driver till it gets the response from the driver as part
of the signal_poll command.
Thus do not process signal_poll request in the host driver if the
device is in the roaming state.

Change-Id: I0bea7027fd2fc54ac188251082e14b0d84d877aa
CRs-Fixed: 593755
wlan: log host and fw caps from bit 32 to 127

During module load host and fw caps are logged only from 0
to 31.

Add support to log the capabilities from bit 32 to 127
as well.

Change-Id: Ib05b905163cbc3c0b80a65936aced83dc7ff4c3b
CRs-Fixed: 611215
wlan: Roam Scan Channels buffer size changed

Currently SIR_ROAM_MAX_CHANNELS is defined as
NUM_RF_CHANNELS. But, NUM_RF_CHANNELS value is
tightly coupled with the nv bin file being used.
To make LFR related scan cache not to be coupled
with other features, the size of SIR_ROAM_MAX_CHANNELS
is defined to a constant value.

Change-Id: Id04d2bf9d75bc56fc2bd261ea593810c2b4e0981
CRs-Fixed: 606397
wlan: PE: 11r roaming logs cleanup

The logs which are improperly categorized as error are adding
delay during 11r roaming which is causing roaming faiure.
This fix is to mark these logs appropriately.

Change-Id: I06f6404ba9c714ca0ba1140098a5d8fb10b3c119
CRs-Fixed: 602044
wlan: Reason code for scan abort.

Add a reason code for scan abort. Currently, this is required to
know if the abort is because of a band change. It can be enhanced
further to cater the requirements.

Change-Id: I641f36245d881b4f2cba70223f0abf90edd55b28
CRs-Fixed: 592516
wlan: Flush/filter temp scan results along with the main results

Flush the temp scan results along with main scan results in
csrScanFlushResult(). This is required to flush the results
completely , as the results are getting updated from temp list to
the main list only after completion of scan.
Filter the temp scan results based on valid channels list along
with the main scan results in csrScanFilterResults().

CRs-Fixed: 592516
Change-Id: Id0c66b9edbd513800418490d296749466a250ef1
Wlan: Revision 3.2.3.239

Revision 3.2.3.239