Commit Graph

44 Commits

Author SHA1 Message Date
Mingcheng Zhu
70700a0773 qcom: softap: Fix potential string null termination and buffer overflow
Fix potential string null termination and buffer overflow

Change-Id: I05e28b30a4e3134625d20fb5591b239ea4b9f3a4
CRs-fixed: 554078
2014-01-02 21:32:20 +00:00
Shake M Subhani
5d5650caf1 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-12-06 14:35:34 +01:00
Vinay Krishna Eranna
52fd77178b 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-11-27 01:43:15 +00:00
Mahesh A Saptasagar
fe07ff9ee2 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-25 17:48:14 +01:00
Linux Build Service Account
2b78d84937 Merge "Update ini_file buffer size to be PROPERTY_VALUE_MAX" cm-10.2-M1 cm-10.2.0 cm-10.2.1 2013-09-25 01:07:53 -07:00
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
Linux Build Service Account
17c8f5319a Merge "wlan: Add support for configuration of 802.11w" 2013-08-23 17:31:38 -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
Linux Build Service Account
62ff31e514 Merge "system/qcom: passing incorrect MAC Address to Driver" 2013-03-22 03:56:05 -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
Duy Truong
d48aa31d6c Update copyright to The Linux Foundation
Change-Id: Ib6513cab2cffefb1ef83c90081a6f01fd3749116
2013-02-10 02:16:54 -08:00
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
Linux Build Service Account
070ff77ac5 Merge "wlan: Add default hostapd configuration file" 2012-10-23 09:23:32 -07: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
Linux Build Service Account
baad0d7814 Merge "Replace init.svc.hostapd with wifi.hostapd." 2012-02-16 11:52:38 -08: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
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
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
Linux Build Service Account
72fde61473 Merge "Close file descriptors for socket appropriately during SoftAP disconnect." 2011-07-27 17:59:22 -07:00
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
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
Linux Build Service Account
14a3ea2c0a Merge "SDK set's channel 12 and 13 also in 11B mode incorrectly." 2011-07-08 20:31:43 -07:00
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
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
Satya Durga Srinivasu Prabhala
3a2525cc41 Cleanup QCOM usage of LOCAL_MODULE_TAGS
Starting from GB, modules which doesn't have LOCAL_MODULE_TAGS
defined (default to user tag) or which has user tag and not part
of GRANDFATHERED_USER_MODULES does throgh ERROR/WARNING
message. To supress these WARNING messages, we need to add
optional tag.

Targets tested on:
msm8660_surf

Tests:
Did a build from scratch

Change-Id: I006ae23366cf1f517f0c68f66f607be1455b4ba9
2011-03-15 20:09:36 +05:30
Linux Build Service Account
f4a2696f9a Merge "Add Path defines for SDIO and WIFI driver so customers can relocate their driver" 2011-03-14 00:55:21 -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
Yunsen Wang
a1ff5e8700 Add Path defines for SDIO and WIFI driver so customers can relocate their driver
Change-Id: Ic5b08542fb40809badf9f8cc8813d04a9ef8e4e3
2011-03-11 22:40:02 -08:00
Ajay Dudani
7e46ea01e8 Fix string literal compiler error
Change-Id: Id83e70332688077ec0f6fdbff6d982d795730e9b
2010-12-18 18:52:20 -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
Nasser Grainawi
c89f94fd46 Initial commit 2010-08-24 17:21:54 -06:00