wlan: Add support for configuration of AKM suite

Changes to allow setting the configuration item for
AKM suite (wpa_key_mgmt) in hostapd
configuration file.  This is needed for PMF
(802.11w) to add SHA256 to the list when
necessary.

Change-Id: Ia6fd4976241fb11525f4be6c11801b9c471d4427
CRs-Fixed: 523705
Fix: SIGPIPE issue while querying softap enabled status

Before downloading commands to driver through softap SDK we are
checking if SoftAP is enabled are not by running ps in popen.
This sometime throws SIGPIPE error (signal) which is not handled,
due to this we were facing application crash. To fix this we modify
to check the operation mode of the driver through ioctl.

Change-Id: Ia0703ff343d401801655d3b666ade66107a4789e
CRs-Fixed: 535340
Merge "Fix: SIGPIPE issue while querying softap enabled status"
wlan: make qsap compatible w.r.t ndc implementation.

changes to make qsap compatible w.r.t ndc implementation by
correcting argument mismatch.

Change-Id: I6722ce3fdcf2b4bc45c44d82d56f2c5a14435d7c
CRs-Fixed: 436332
Merge "wlan: make qsap compatible w.r.t ndc implementation."
softap: sscanf sanity check for SoftAP service

The sscanf return value is verified whether the three channel
variables, i.e. start channel, end channel and channel band,
are properly updated. If malformed input is given to sscanf, then
these variables may not properly updated. To provide validation
of input,  verifying that sscanf returned a correct value of 3.

Change-Id: Ibd185e7a0ffcf5803927990531fc33f0e8977cc9
CRs-fixed: 554349
qcom: softap: Fix potential string null termination and buffer overflow

Fix potential string null termination and buffer overflow

Change-Id: I05e28b30a4e3134625d20fb5591b239ea4b9f3a4
CRs-fixed: 554078
Merge "softap: sscanf sanity check for SoftAP service"
Merge "qcom: softap: Fix potential string null termination and buffer overflow"
wlan: Don't overwrite the channel configured in hostapd.conf

When SAP is turned on through GUI, hostapd.conf file
will be overwritten by the framework parameters.Since
in Kit-Kat framework,channel value is hard coded to 6,
same is getting over written whenever we turn on SAP
through GUI, this will cause SAP to come up always on
channel 6.
To mitigate this issue, avoid overwriting the channel
parameter in hostap.conf file by ignoring the channel
parameter from the framework.

Change-Id: I4d87cf70868ad705f63211b2bd10ac2a67646d09
CRs-Fixed: 584112
Merge "wlan: Don't overwrite the channel configured in hostapd.conf"
SAP: Make QSAP SDK compatible w.r.t Android framework.

SAP parameter ignore_broadcast_ssid always set to
"broadcast" due to improper handling of SAP parameters
at SAP SDK.

To mitigate this issue update the ignore_broadcast_ssid
parameter based on the value configured in the framework.

Change-Id: Ia1a35a38464710088921b94269b624d8b1910abc
CRs-Fixed: 588560
Revert "wlan: Don't overwrite the channel configured in hostapd.conf"

This reverts commit 2addd175cc9a81a5c26a21fce30b26cf0458c6fa.

Change-Id: I1b4a145bc1b491d65f49dfc0f5990e52de8a4f37
CRs-Fixed: 589261
Merge "SAP: Make QSAP SDK compatible w.r.t Android framework."
Merge "Revert "wlan: Don't overwrite the channel configured in hostapd.conf""
Merge "Revert "wlan: Don't overwrite the channel configured in hostapd.conf""
Updated string banned functions strncpy and memcpy

Banned call strncpy has been updated
with strlcpy

Change-Id: I992c2d3580dce24981a4ec9fd9d50ecca109c044
CRs-Fixed: 554334
Merge "Updated string banned functions strncpy and memcpy"
softap: Fix for hostapd.conf corruption

SoftAP fails to load the default hostapd.conf file
which was left behind as part of failed attempt to
start the softAP. The default hostapd.conf is required
to be copied in case of accidental corruption of
hostapd.conf

Change-Id: I4e6ab7a6bc67fcdcfe225e7e1a811fafe402ebc7
CRs-Fixed: 626022
Merge "softap: Fix for hostapd.conf corruption"