wlan: lim: Correct return value in limIsSmeGetAssocSTAsReqValid

Return value is inconsistent in limIsSmeGetAssocSTAsReqValid()
causing incorrect return check in limProcessSmeGetAssocSTAsInfo()
hence structure getAssocSTAsReq is being accessed uninitialized
after the return value check.

In limProcessSmeGetWPSPBCSessions(), on failure of function
limIsSmeGetWPSPBCSessionsReqValid(), struct GetWPSPBCSessionsReq
is accessed uninitialized after 'limGetWPSPBCSessionsEnd' label.

Correcting return value in limIsSmeGetAssocSTAsReqValid().
Returning on failure case in limProcessSmeGetAssocSTAsInfo()
and limProcessSmeGetWPSPBCSessions().

Change-Id: Icb2682046039e712ff620ba96255425ae0e8e407
CRs-Fixed: 699142
wlan: Remove Passive scan Restrication for non-zero Default CC & world reg.

When Country code in nv.bin file is Non-world and Reg Domain is world;
it's neither CUSTOM nor STRICT regulatory. In this case,
if country code is Non-world and domain is world; driver will not
change channel to Active.
Fixed this by adding check for US CC and World reg domain.

CRs-Fixed: 710980
Change-Id: Ie07248efed2d2333a7ee337c6729a695e6d6699e
wlan: Switch off the carrier in case of NULL bss.

In hdd_AssociationCompletionHandler, if we get NULL bss
from wlan_hdd_cfg80211_update_bss_db, it returns from
there only. But when it does, hdd_AssociationCompletionHandler
has to make sure that it does not leave the carrier on with
TX queues enabled, this leads to hdd_tx_timeout being called
continuously.
This crash is avoided by turning off the carrier when
wlan_hdd_cfg80211_update_bss_db fails.

Change-Id: Ie927cb920f20bfaf89c4a2319397a16d4efa4d8f
CRs-Fixed: 716690
wlan: Flush Stale scan results for PNO Scan.

When scan is issued from host and simultaneously if PNO
indication is given to FW because of Apps power collapase;
A situation arises in FW where PNO can't be triggered because of
host scan. When host scan is over and there are many bssid
for same profile and connect is issued to such profile, it
might happen that because there are many stale entries connection
to bssid fails.But the PNO service manager in FW only waits for
10 sec for PNO to trigger,resulting in FW crash.

As a part of Fix, as part of PNO trigger flush stale scan result
in sme.

CRs-Fixed: 718160
Change-Id: I4303079eb49392859bdef59677c673629955bb9a
Wlan: Revision 3.2.3.408

Revision 3.2.3.408

Change-Id: I6f5707d6710c31f879f7551703b6eece81534176
CRs-Fixed: 688141