wlan: Fix of negative batch scan arguments

Handling negative values passed for batch scan variables in HDD

Change-Id: I865166ae7bdeb6343148e7b2cf77f851cefcc889
CRs-Fixed: 594830
wlan: fix unsafe code after VOS_ASSERT

The WLAN module extensively uses the VOS_ASSERT macro, which either does
nothing or emits a warning (depending on conditional compilation) and
continues, i.e. it does not abort.  Use of VOS_ASSERT is unsafe in
instances where the assert performs out-of-bounds or NULL pointer
checks.
Patch takes care to bailout where ever it is unsafe to continue.

Change-Id: Ida1b72f4292f0b5d30b307b5ee43748e4af99a78
CRs-Fixed: 556307
P2P: Abort ongoing scan when connection is initiated.

When DUT receives Provision Discovery request or
GO negotiation request to initiate p2p connection,
respective action frame's response will be delayed
by wpa_supplicant, if p2p scanning is in progress.
This results in multiple Provision discovery request
retries.

So, abort ongoing scan to remove delay in sending
Provision Discovery response or GO negotiation
response.

Change-Id: I8c099438925f50647aad7654d7630fefd0f399f1
CRs-Fixed: 576285
wlan: Fix module parameters

hdd_set_sme_config will store enable_11d/enable_dfs_chan_scan
value from pHddCtx. Overwrite these two values in pHddCtx before
hdd_set_sme_config by module parameters.

Change-Id: I70d7dbc43cf4a426702f29037409550f048054b4
CRs-Fixed: 592652
Wlan: Revision 3.2.3.212

Revision 3.2.3.212