Commit graph

35 commits

Author SHA1 Message Date
Ravi Joshi
8b0be84bab 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
2014-03-07 15:58:23 -08:00
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
Linux Build Service Account
0ecf7a3d93 Merge "Revert "wlan: Don't overwrite the channel configured in hostapd.conf"" 2014-01-07 12:04:43 -08:00
Mahesh A Saptasagar
4a7a459864 Revert "wlan: Don't overwrite the channel configured in hostapd.conf"
This reverts commit 2addd175cc.

Change-Id: I1b4a145bc1b491d65f49dfc0f5990e52de8a4f37
CRs-Fixed: 589261
2013-12-16 13:48:46 +05:30
Mahesh A Saptasagar
d289ef3449 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
2013-12-16 11:50:56 +05:30
Mahesh A Saptasagar
2addd175cc 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
2013-12-03 13:32:30 -08:00
Linux Build Service Account
fc7138812d Merge "qcom: softap: Fix potential string null termination and buffer overflow" 2013-11-29 13:30:37 -08:00
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
Shake M Subhani
ff6440b26f 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
2013-11-26 12:06:14 +05:30
Mahesh A Saptasagar
41f17f12e4 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
2013-11-21 11:27:03 -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
Anh Nguyen
43cf2bea85 Update ini_file buffer size to be PROPERTY_VALUE_MAX
Update ini_file size from 64 to PROPERTY_VALUE_MAX to fix
property_get() too small error

Change-Id: I93d71016a7f2dc7ce3866ffce5dcf874a2f831cd
2013-09-24 11:04:11 -07:00
Chet Lanctot
4c15b56910 wlan: Add support for configuration of 802.11w
Changes to allow setting the configuration item for
802.11w (Protected Management Frames) in hostapd
configuration file.

CRs-Fixed: 512764

Change-Id: I4dc7afe8fc56bff79f52eae04a65d573db2746d9
2013-07-26 10:08:27 -07:00
Deepthi Gowri
81a8a73878 system/qcom: passing incorrect MAC Address to Driver
Passing MAC address of STA with which SAP should to
disassociate in data pointer of ioctl was not getting
used by the driver.Current implementation of ioctl in
driver expects address to be present in extra.
Hence changes made in SDK to be compliant with the
expectation of the wireless extensions framework.

CRs-fixed: 455872
Change-Id: I76d23f159afdc8b05c4db1be2d2f2134e14eaed6
2013-02-26 09:49:05 +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
80a36e27ce wlan: Add default hostapd configuration file
If the hostapd configuration files are not present in /data/misc/wifi,
copy it from the default file location /system/etc/wifi/
while starting softAP.

Change-Id: I3b33a283c2713176666d2a84428645cdb7113684

CRs-fixed: 409888
2012-10-18 15:08:16 +05:30
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
Santosh Sajjan
11d59f4bc7 Set the correct operating mode for SoftAP
If the operating mode is NOT 'B' and the
channel to be set is 14 then change the
operating mode to 'B'

CRs-Fixed: 365096

Change-Id: Id21321edb303381b22dda6599454aa2cfd299dba
2012-07-16 12:51:29 +05:30
Deepthi Gowri
6ce5756160 system/qcom: Implement ndc for SAP get auto channel.
Implement ndc for get auto channel and get operating
channel for SAP.

CRs-fixed: 368536

Change-Id: Ie9b760012eafd65686e9ab05b1086c2fe928a5ca
2012-06-29 12:29:57 +05:30
Deepthi Gowri
684d2f9514 system/qcom: Turn off SAP when operating on a LTE interfering channel.
Turn off and restart sap with safe channel list received from android
telephony layer, whenever sap is operating on an channel interfering with
LTE.

Change-Id: Iefec6024a63c820e09b837b7daa7ba5a486ac1d2
2012-06-02 22:49:47 +05:30
Deepthi Gowri
9f0d356f58 system/qcom: Change permissions for /data/hostapd.
After factory reset we create hostapd directory with permission 770
and owner as root which is causing issues.so change the permission
of /data/hostapd from 770 to 771.

Change-Id: I1863c4055870c9556b3ba9bf9380cdaca4a3fdb5
CRs-fixed: 337227
2012-02-25 06:49:31 -07:00
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
ae5a4f7fc4 Add NDC support for "set Tx Power" command
Added support to change wlan softap Tx power using ndc command.
It will write tx power cap to ini file.

Change-Id: I5c9031ab35d67f4531e6f440b359d51c09a321d3
CRs-fixed: 329941
2012-01-31 19:39:06 +05:30
Deepthi Gowri
6344a80689 system/qcom: Implement set and get ndc commands for ap_isolate
Added support so that  packet forwarding between associated stations
within a BSS can be enabled and disabled using ndc commands.

Change-Id: Ie460d38bfc0b549b0a7e027ad3cdefe9471a3fe9
2012-01-19 20:44:04 +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
Santosh Sajjan
47e3a84761 Added fix to not to generate hostapd.conf dynamically
hostapd.conf be default will be /data/misc/wifi folder

Change-Id: Id30858a2062402227322574385bcb28432b7e3d0
2011-12-10 21:11:12 +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
9b0caba774 system/qcom: stores data rate info in qcom_cfg.ini.
In qsap_set_channel function, write the gFixedRate to qcom_cfg.ini
file instead of trying to write to hostapd.conf.

Change-Id: I9b9fa65dde580ec2489bbe8e0e37af5bfd44d72a
CRs-fixed: 298556
2011-08-08 19:16:19 +05:30
santosh sajjan
1a6aff9ff6 Close file descriptors for socket appropriately during SoftAP disconnect.
Change-Id: Idadae26ce6bbdf1ea6f6b1eaa63cd890bbfcb541
CRs-Fixed: 293934
2011-07-18 17:22:51 +05:30
Santosh Sajjan
1475de4bbb SDK set's channel 12 and 13 also in 11B mode incorrectly.
CRs-Fixed: 268789

Change-Id: I20f56cd4d2aa5912512478c406776677b965e7f8
2011-07-07 17:27:18 +05:30
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