Commit Graph

26 Commits

Author SHA1 Message Date
Dan Pasanen
c61e35d742 qsap: Add wifi_qsap_set_tx_power
Change-Id: I9ef277db6f4e068e7b92710f6039b4f261d72282
2022-08-08 17:32:28 +02:00
Arne Coucheron
43f569833a qsap: Move to log/log.h
* cutils/log.h is deprecated.

Change-Id: Id29be75e58dab602ed3abcaa64571b4d565fabb3
2022-03-21 20:18:43 +01:00
Paul Keith
0a9d93707e qsap: Fix remaining compile errors
Change-Id: I65ff436ad4e02032f6fc1fd5639ce22ebf64a033
2022-03-21 13:09:26 -05:00
Jeferson
630de9bda1 qsap: Resolve some compiler warnings
system/qcom/softap/sdk/qsap_api.c:351:59: error: format specifies type 'long' but the argument has type 's32' (aka 'int') [-Werror,-Wformat]
    ALOGD("cmd=%s, Val:%s, INI:%ld \n", pcmd->name, pVal, inifile);
                               ~~~                        ^~~~~~~
                               %d
system/qcom/softap/sdk/qsap_api.c:1308:58: error: format specifies type 'long' but the argument has type 's32' (aka 'int') [-Werror,-Wformat]
    ALOGD("Sap auto channel selection pautochan=%ld \n", *pautochan);
                                                ~~~      ^~~~~~~~~~
                                                %d

Change-Id: Ib6a560c94edd982156fb8b997e7891d4a406a1f4
2022-03-21 18:06:17 +01:00
Veerendranath Jakkam
bfad727b06 qsap: Add NULL check for getpwnam and getgrnam.
Add appropriate checks to avoid NULL pointer dereferencing.

Change-Id: I0961a8e55fea055ee731e20ae28c833c54c32e67
CRs-Fixed: 2263188
2018-06-19 16:38:02 +05:30
Veerendranath Jakkam
c613ebbc1c qsap: Fix VNDK compilation issues of libqsap.
- Removed "android_filesystem_config.h" references.
- Added cutils header library in Android.mk.
- Added required system headers explicitly.

Change-Id: I1213fc40335fba7ea52c4c296b28bc66cba72701
CRs-Fixed: 2244720
2018-05-18 18:42:03 +05:30
Purushottam Kushwaha
a49496aea8 qsap: Remove support for wifi_fst from QSAP APIs
wifi_fst.h is no longer part of /hardware/libhardware_legacy/ ,
therefore, compilation of libqsap_sdk would fail. Remove dependencies
for wifi_fst from QSAP.

Additionally, skip calling 'chown' after changing configuration
parameters as QSAP is not changing ownership.

CRs-Fixed: 2069881
Change-Id: Iaadfa182270f22555e486dac24a5acafc247b943
2017-07-13 12:12:08 +05:30
Hamad Kadmany
421ce6f83e qsap: add functions for calling FST manager start/stop
FST manager start/stop need to be done in sync with start/stop
of softAP controller.
To support such functionality, added general functions that
can be used pre and post softAP start/stop operations.

Change-Id: Ic2dd119b1fbfbf88b7b39000c1633792c8a628c2
CRs-Fixed: 1014736
2016-06-16 12:43:56 +03:00
Dedy Lansky
350c353182 softap: support for starting/stopping Wigig soft AP
Support new command: eCMD_ENABLE_WIGIG_SOFTAP.

Change-Id: Idf747b74191de4904ca939601a263b9fb8f9e971
CRs-Fixed: 1016741
2016-05-17 02:14:25 -07:00
Mahesh A Saptasagar
8e9475b346 wlan: Fix for OSS build compilation issue
Do not include "wpa_ctrl.h" in qsap.c file to avoid compilation
errors on OSS builds.

Change-Id: Ie3afa0bc564a5b2d9c2245b85f4681b83c1d1644
CRs-Fixed: 758764
2014-11-18 20:11:25 +05:30
Hanumantha Reddy Pothula
87d01a1158 Updated string banned functions strncpy and memcpy
Banned call strncpy has been updated
with strlcpy

Change-Id: I992c2d3580dce24981a4ec9fd9d50ecca109c044
CRs-Fixed: 554334
2014-01-17 11:56:22 +05:30
Mingcheng Zhu
69b91cc907 qcom: softap: Fix potential string null termination and buffer overflow
Fix potential string null termination and buffer overflow

Change-Id: I05e28b30a4e3134625d20fb5591b239ea4b9f3a4
CRs-fixed: 554078
2013-11-26 12:23:43 -08:00
Vinay Krishna Eranna
1c4304379e 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
2013-10-01 20:14:57 +05:30
Deepthi Gowri
d0ea69c721 wlan: SAP changes.
1. Fix Compilation error.
3. Changes to make qsap compatible w.r.t android framework.
4. Changes to check if SAP is enabled or not.

Change-Id: I8a21585bc1af92f5fbc885d981227349bb56b0f9
2013-01-15 08:14:26 -08:00
Deepthi Gowri
d4c0315ea3 system/qcom: Fixed compilation errors to add ndc support .
Fixed the compilation errors and also changed wifi_qsap_load_driver to load
cfg80211.ko while loading softap for prima.

Change-Id: Ifb258623c2f53438aacc62c4f6fc7e6f34974eb2
2012-07-19 17:57:11 +05:30
Sameer Thalappil
caf8792027 system/qcom: Add new SoftAP APIs to send new commands to driver
- Add SoftAP API to send initAP cmd to Driver
- Add SoftAP API to send exitAP cmd to Driver
- Add SoftAP API to update macaddr_acl value

CRs-fixed: 331343, 333643

Change-Id: I662b819a4055a652649748461e58b1ab50e0b01e
Acked-by:  Ramasundar Kara Venkata <nkaraven@qca.qualcomm.com>
2012-02-16 17:22:36 -07:00
Deepthi Gowri
9e0869e184 Replace init.svc.hostapd with wifi.hostapd.
Check softap enable status,by getting wifi.hostapd property.

Change-Id: Iee3a0a21fbfbf1cb65d9050c7274b9fc5b245db6
CRs-fixed: 329942
2012-01-31 19:26:37 +05:30
Santosh Sajjan
c463f732b7 wlan: Configure SoftAp via NDC commands.
-Added support for N-only, G-only and 11g profiles
-Added support to configure country and 11d info to hostapd.conf file
-Added support to enable and disable softap via NDC command

Change-Id: Iac22893eaae50d2144aa2ad539f1e99fdfdfe2e2
2011-12-23 11:50:06 +05:30
Yunsen Wang
458db7cae6 system/qcom:Use wlan config path from android property wlan.driver.config
wlan.driver.config android property points to the correct wlan driver
config file. This config file is used to get/set config items related to
wlan driver as indicated from userspace through Qualcomm SoftAP SDK
commands.

Change-Id: I82efd922c72a77b281f007ba95db7042f5ac5e82
CRs-fixed: 315065
2011-11-17 19:30:05 -08:00
Santosh Sajjan
343ec71a59 Disabled the code related to inserting the sdioif module in SoftAP.
Added the sdioif related code under feature 'WIFI_SDIO_IF_DRIVER_MODULE_NAME'
and disabled the same so that sdioif is not inserted in case of SoftAP.

Change-Id: I524f1907e95b6228729f49fe45d66d99153d804a
2011-07-15 14:17:15 +05:30
Yunsen Wang
26a9f6b5f7 Added logic to send MODULE_DOWN_IND to wlan driver on softap.0 interface.
This is done in case sending MODULE_DOWN_IND fails on wlan.0 interface.
It can happen in newer driver when there is NO wlan0 interface and bt
module will not get the message to stop communicating with wlan driver.

Change-Id: Ic828a8bf917d5bf67aa4d02e153fb54d656d0bc4
2011-07-06 11:23:58 -07:00
Raj Kushwaha
13eb75f8cc Add check in code such that if BT is ON then SoftAP cannot be started
Change-Id: I274cefd07401f5b7f2beac78a16e892be73efdae
2011-03-12 10:21:45 -08:00
Raj Kushwaha
ae27f82145 Fixing following issues:
Editing config values in Qocm_cfg.ini disables "save settings" option on GUI.

After fastboot, when SoftAP turned ON first time beacon shows WMM and Country elements info but SoftAP UI shows these options as disabled

After selecting the save-settings button GUI was always sending the command to change the energy_detect_threshold. Code is updated to send
it only if energy_detect_threshold is changed

Bug fixed to return correct security mode

Error happened after saving the SoftAP configuration

CRs-Fixed: 260651 261515 261401

Change-Id: Ic9454c35eeaa23ccc8b6e340695b4c41bca28b47
2010-11-16 08:45:58 -08:00
Raj Kushwaha
41027215e1 Add new features:-
1. AP Auto shut off
  2. Energy Detect Threshold

Change-Id: I454dd0c999131a0d0910b415cf73590d3458f2ad
2010-10-13 00:11:12 -07:00
Raj Kushwaha
ba862bdb95 Code uploaded as per p4 label WLAN_LIBRA_SOFTAP_LAFY_7630_REL10
Change-Id: Ib4973da98606f4cdbea5c6b9621999fbb06c2528
2010-09-17 00:34:16 -07:00
Raj Kushwaha
aaaa518f19 Add initial version of Soft AP SDK
Change-Id: I7f2ca6dbfbb89065722a66bf04cff23362ec543a
2010-09-02 10:11:01 -07:00