wlan: use correct values for power limits

In function create_linux_regulatory_entry, the power values sent by the
kernel already are in DBM. Therefore, remove the division by 100.
Also remove the unused function create_linux_regulatory_entry_from_regd.

Change-Id: I8852b7bf6f2f1233c9893e2b8527cc3d8c5ed558
CRs-Fixed: 585454
wlan: HDD: removing newlines from the debug logs

dmesg log is a limited and extremely precious
debugging tool. Any unnecessary prints are avoided.

Change-Id: I94c77696af432b856967a7a0d628c06f2b3f8679
CRs-Fixed: 540451
wlan: Fix of WLS_BATCHING SET command failure

In hdd_ioctl() while handling WLS_BATCHING SET DEV IOCTL HDD
is only checking for STA and P2P client mode of pAdapter where
as in latest builds pAdapter mode is coming as P2P device. In additon to
this this gerrit is also fixing a potential null pointer dereference
in hdd_batch_scan_result_ind_callback

Change-Id: I0edee3597d5aff6b6f05eb365c950a5c86be4928
CRs-fixed: 585666
wlan: check for sus_res_mcastbcast_filter_valid before resetting

Check for the value of sus_res_mcastbcast_filter_valid before resetting
it to false. The driver can unload/load while the wlan driver has been
suspended. In such a case, the value of flag sus_res_mcastbcast_filter
would be reset. Check for the value of the flasg to take care of this case.

Change-Id: Ia3daaa218b6609623d34d7951f7f94cfa74642a5
CRs-Fixed: 582346
wlan: wait for thread execution to stop before exiting the driver

TX, RX and MC Threads should complete exexution before
the exit routine tries to free the dynamic data these threads
are trying to process. The current implementation does an
interruptible wait for completion of the threads; but it has been
observed that if the process which initiated the driver unload
receives SIGKILL while waiting for threads to complete, the process
will continue without waiting for threads to complete and the threads
will try to access invalidated data after the module has been removed
leading to a kernel panic. To fix this make the wait uninterruptible
and ensure that the driver threads complete execution before the driver
exits.

Change-Id: I3f7e9b4b80b9cc55e6942197bfa30fa41f8e30aa
CRs-Fixed: 550318
wlan: Populate IE into Beacon Report

Populate the IE's into the beacon report
only if the AP has actually advertised the
capability

Change-Id: I2cd03c71177aa7e087d76e8369c31101116d4bb1
CRs-Fixed: 584874
wlan: Handle disconnect in connecting state of Wi-Fi.

Disconnect command is being dropped during wifi
connecting state, which results in mismatch of the
wifi states between nl80211 layer and wlan driver.

To mitigate this issue handle disconnect command in
connecting state of wifi.

CRs-Fixed: 582830

Change-Id: I1d80bfdaa8f05bacf67be50647f73252c7fa8b3f
wlan: Reduce log level fatal to info.

Avoiding Watchdog Bark due to Excessive logging.
Reducing log level fatal to Info level.

CRs-Fixed: 582560
Change-Id: I45326e5052e21fd950b6059ee46f19d42b309224
wlan: Custom Event Buffer Length Calculation

strlen should not be used to calculate the data
size of the buffer. For instance, the buffer may
contain MAC Address as part of the data and it
may contain 0x00 as one of the octets.If we use
strlen, then it will consider this as end of the
string and result in inappropriate length.

Change-Id: Id095bd137ce79a14343318f047f90d542e208f46
CRs-Fixed: 574384
wlan: Home Away Time and Set Channels Enhancements

Retain the values of SCANHOMEAWAYTIME and ROAMSCANCHANNELS
If the input does not meet certain criteria, then modify it
only while sending down the parameters to the firmware and
retain the original values in the global configuration
parameters.The retained values would be again used in future
for any further runtime config operations.

Change-Id: I436e04e78a562b0f79617b966f0dbd7d0ad8af06
CRs-Fixed: 580603
wlan: Flush scan results on PNO indication event.

Flush scan results during PNO indication, so as to avoid
indication/updation of stale entries to above layers,
which may not have aged out during APPS collapse.

Change-Id: Id9a086bd0bf58fd1714619cbb46af0c74d3fde0e
CRs-Fixed: 585517
Wlan: Revision 3.2.3.205

Revision 3.2.3.205