Remove redundant new line in log messages

Remove the \n in PE log messages to remove the redundant new line
in log messages.

Change-Id: I1e7b4d0707adf347c641a5011e8c672d22245edf
CRs-Fixed: 441138
Fix to handle IMPS failure crash issue.

Avoid the enter IMPS req loop when the previous IMPS req fails.
Introduce delay in issueing next enter IMPS req when there is
already IMPS req failed.

Change-Id: Ie5e976286ee9aac6d5d85d07d5c7bb6b3b481e53
CRs-Fixed: 459475
Remove redundant new line in PE log messages.

Remove \n in log messages to remove redundant new line in log
messages.

Change-Id: I6c9d4d511868a33c508642039fd6012e73da3f40
CRs-Fixed: 441138
Fix the buffer size in ADDBA response

Fill the buffer size value in ADDBA response with cfg value or
ADDBA req buffer size value

Change-Id: I2a3c258e3ab70281803e43d508cf338614541174
CRs-Fixed: 467894
Added configuration to handle different BI scenario.

New configuration added to support different BI for
GO and STA role. If P2P-GO comes first and then STA connects
next allow the STA connection to go through.
Update the P2P-GO BI during run time based on peer AP BI.

Change-Id: Id31c0e09f0e97b474a12b32ac092cdf2f1be9230
Crs-fixed: 462276
Enable CRDA country 00 to passively scan on channel 12-14 and 5GHz

If CRDA country is configured as 00, we set the channel to be DFS
to allow passive scan.

CRs-Fixed: 447628
Change-Id: I694aab09024292210d533446f5d9411e256f687d
wlan: Fix memory leak in __limHandleSmeStartBssRequest()

Static source code analysis identified an issue whereby many of the
error paths in __limHandleSmeStartBssRequest() would leak the memory
allocated for pMlmStartReq.  Update the code to make sure this memory
is freed, as well as ensure the memory allocated for pSmeStartBssReq
is properly freed.

Change-Id: Ib345d9288543590b4ffa7f9c630f97e78e8e1704
CRs-fixed: 470188
wlan: fix memory leak in __limInsertSingleShotNOAForScan()

Change "wlan:Fix the errors observed in static PE source code
analysis" addressed several issues, including a memory leak in
__limInsertSingleShotNOAForScan().  Unfortunately the fix for this
leak was not correct, so update the code to correctly free the
allocated pMsgNoA.

Change-Id: I7bb2acb079c4d4ac14850d949f4c4906561c3b6b
CRs-fixed: 470188
wlan: Fix potential memory leak in sme_QosAddTsReq()

Static source code analysis identified an error path in
sme_QosAddTsReq() which could leak allocated memory, so fix the leak.

Change-Id: I25404ab2d4014e264c9900832f9cbe602e5ca6d5
CRs-fixed: 470188
wlan: sanitize net device event flags

Static source code analysis identified an issue that the pAdapter
event_flags field can overflow.  The cause is that the individual
flags were defined as bit masks, but they were being primarily used as
bit numbers.  Change the definition of the event flags so they have
"bit number" semantics, and change the usage of DEVICE_IFACE_OPENED
(the only one that was being used with "bit mask" semantics) to also
use "bit number" semantics.

Change-Id: I2b60ed31ca684a4b22da0f9e8cb23c5680da08cf
CRs-fixed: 470188
wlan: Avoid overrun when processing GETROAMSCANCHANNELS

Static source code analysis indicated that hdd_ioctl(), when
processing the "GETROAMSCANCHANNELS" command, may use index value(s)
128..255 on array 'extra' of size 128.  Due to the data involved this
is probably a "false positive" but it is easy to suppress the warning
by changing the declaration of 'len' from u8 to int, so change the
declaration.

Change-Id: I9529a6d81f779aeebd928a5c8db91de8cc80ae48
CRs-fixed: 470188
wlan: fix memory leak in iw_set_dynamic_mcbc_filter()

Static source code analysis identified a potential memory leak in
iw_set_dynamic_mcbc_filter().  Relocate the allocation of
wlanRxpFilterParam so that it is only allocated in the code path where
it is used.

Change-Id: I131f9710219e7b3b159047e98d899472ed8b9208
CRs-fixed: 470188
wlan: Fix NULL pointer dereference in wlan_hdd_tdls_add_station()

Static source code analysis identified an issue in function
wlan_hdd_tdls_add_station() where a pointer that had been positively
checked for NULL could subsequently be dereferenced.  Modify the code
so that if the StaParams pointer is NULL processing does not continue.

Change-Id: Ib92c225cb978b05d8750220763e41806f60a8302
CRs-fixed: 470188
wlan: Fix NULL check after dereference in limIbssStaAdd()

Static source code analysis identified an issue in limIbssStaAdd()
where a pointer was being tested for NULL after it had already been
dereferenced.  Remove the unnecessary NULL check.

Change-Id: If07712ed4fc0fde8e9b3a6c51f482ef06cea60a8
CRs-fixed: 470188
Release 3.2.3.98