Changes required to support the softap commands
through ndc cli. This new support as part of the
64bit enablement and ndc is used for cli automation
in softap testcases.
Change-Id: I460a3785c3b4a44656281c7243ebdf921fe20f91
CRs-Fixed: 710050
This function is for end user to set maximun client
connections number and apply this to hostapd module
Change-Id: I6150b376d22756e8c04ebabe666d81cf3af8fc87
strcpy and strcat are not safe, instead use strlcpy and strlcat
which have control over the number of bytes to be written to
the output str or buffer.
CRs-Fixed: 802872
Change-Id: I7b6748946633dda551a1015678d41846c19adeb2
Fix for making SAP SDK code 64 bit compliant. The typedefs
were incorrect on an LP64 architecture since a long int will
be 64-bits.
Change-Id: I4c9f5f2fb2b820193fbe03fdf8e2307c281ea014
CRs-Fixed: 640894
Fix for making SAP SDK code 64 bit compliant. The typedefs
were incorrect on an LP64 architecture since a long int will
be 64-bits.
Change-Id: I4c9f5f2fb2b820193fbe03fdf8e2307c281ea014
CRs-Fixed: 640894
Change location of hostapd accept and deny files
from /data/hostapd to /data/misc/wifi because
SElinux does not allow netd and hostapd to access
/data/hostapd directory.
Change-Id: I61e8521b3a4b6aab759d3b7cbc04acd3da3c8cf3
CRs-Fixed: 756614
Do not include "wpa_ctrl.h" in qsap.c file to avoid compilation
errors on OSS builds.
Change-Id: Ie3afa0bc564a5b2d9c2245b85f4681b83c1d1644
CRs-Fixed: 758764
Read ieee80211d param from hostapd.conf file instead of reading it
from ini file.
Change-Id: I3773652bc91e2f166111704e70231af6845c5ffc
CRs-Fixed: 727043
Copying the softap sdk include files to TARGET obj
so its easy for other modules to include them.
This is required for system/netd/server/Android.mk
file
Change-Id: Ia581cf93b1849866e22ea3f93350906bc4fb8c71
The softap libraries were missing for the 64bit enablement
through ndc commands. Makefile change required to point to
right kernel include files.
Change-Id: I03cdd609c2fa18f9926de7d67a2c7d5957a81317
Fixes for making SAP SDK 64 bit compliant for QCSAP_IOCTL_ASSOC_STA_MACADDR
ioctl
Change-Id: I161ac3113c01752f627bd876f85342d5a9b20ede
CRs-Fixed: 639046
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
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
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
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
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
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
Changes to allow setting the configuration item for
802.11w (Protected Management Frames) in hostapd
configuration file.
CRs-Fixed: 512764
Change-Id: I4dc7afe8fc56bff79f52eae04a65d573db2746d9