Commit Graph

32 Commits

Author SHA1 Message Date
Ming-yi Lin 14645fa97a init: wifi: Set power control
Remove echo auto to power control. Currently, when wlan device is
enumerated as HSIC mode, HSIC HCD will be unbind.

Change-Id: I6c027a51473b9323dd09bdb81030defe5a47a896
2013-07-18 18:15:32 +08:00
Linux Build Service Account f19755510b Merge "init: wifi: Modify owner/permission for security reason." 2013-07-10 22:23:33 -07:00
Linux Build Service Account 47ed633343 Merge "Bluetooth: Set btsoc as ath3k, once atheros soc is detected." 2013-07-10 22:20:01 -07:00
Ming-yi Lin 1ba059ba08 init: wifi: Modify owner/permission for security reason.
1. Change the ower/group of HSIC HCD bind/unbind to system
2. Change the permssion of HSIC HCD bind/unbind to owner write only
3. Change ower/group and permission of SDIO polling

Change-Id: If746aa718acaf7356e5188c9bf648d35577547ef
2013-07-09 15:49:17 +08:00
Linux Build Service Account 8c016e6711 Merge "init: wifi: Add new device ID for AR6004-SDIO" 2013-07-03 02:46:27 -07:00
Ilia Lin ab4077f1b9 init: wifi: Add new device ID for AR6004-SDIO
Added new device ID 0x0402 fo AR6004 SDIO.
This is required in order to recognize correctly new
AR6004 HW components.

Change-Id: Ifd80edf1d8101e7c12c695034f025cc08a1eb5f5
2013-07-02 20:06:11 +03:00
Pradeep Panigrahi 2282d76703 Bluetooth: Set btsoc as ath3k, once atheros soc is detected.
Atheros soc is dynamically detected in wifi init script during
boot. So setting btsoc variable to ath3k. This variable enables
audio script to use AUXPCM config file.

CRs-fixed: 484273

Change-Id: I148eb809556cab24a610645978ef9cd55003aa4a
2013-06-21 10:45:24 +05:30
Ilia Lin dea0e0a9e1 init: wifi: Fix symlink creation for AR6004 FW 3.0
The old symbolic link should be deleted prior creating the new one.

Change-Id: I80cdf86ef3c6d76e26bf0d3d42dca705e466bca8
2013-06-09 08:43:08 +03:00
Ming-yi Lin eafda3faa2 init: wifi,bluetooth: Set power control and modify permission
1. Set auto to power control, if device is connnected to HSIC bus.
2. Change permission for bind/unbind of HSIC HCD.
3. Change permission for polling mode of SDIO host controller
4. Set system property needed for atheros bluetooth

Change-Id: I9235c335a9b5a081cfb6e15edd41b3431e7b3ba2
2013-05-27 13:51:20 +08:00
Linux Build Service Account 37644a44d9 Merge "wcnss: Indicate calibrated data availability" 2013-05-10 18:12:10 -07:00
Sameer Thalappil a588db6164 wcnss: Indicate calibrated data availability
Before triggering WCNSS platform driver, indicate thru a /sys parameter
that calibrated data is available at user space. So platform driver
should wait for the Android daemon to transfer this data; and then
download this data to WCNSS. This change also removes the support for
loading WCNSS platform driver as DLKM.

Change-Id: Ie627f1f112c29c2811cead88e8e2a58abd783c1a
2013-04-26 14:15:39 -07:00
Sameer Thalappil 8c423f2223 msm8610: Enable trigger of wcnss driver
Enable trigger of wcnss driver during msm8610 boot up. Wcnss firmware
will be loaded and wcnss will be released from reset.

Change-Id: I460312eb4bc1889e56474e2fdb6d88edc40dec91
2013-04-25 19:06:18 -07:00
Ming-yi Lin 613ab009a1 init: wifi: Assign wlan without detect when needed in 8974
Sometimes we need to assign specific wlanchip without detection

Change-Id: I697c6d935b6e8f5e7ee9f743cf1be24ff0295de8
2013-04-05 14:45:57 +08:00
Linux Build Service Account c2a2abea71 Merge "wlan: Use different wpa_supplicant.conf between wcn and ath6kl modules" 2013-03-23 03:24:34 -07:00
Ming-yi Lin 30ab7a2d67 wlan: Use different wpa_supplicant.conf between wcn and ath6kl modules
For different wlan driver (wcn and ath6kl), it needs to use different
wpa_supplicant.conf. Symbolic link the template wpa_supplicant.conf
as the corresponding wireless module when it's detected.

CRs-Fixed: 465923
Change-Id: If7346ae4a78e83aad2a6f5e58695a60568437977
2013-03-21 18:21:35 +08:00
Sheng Fang e686c6d17a msm8226: Enable trigger of wcnss driver
Enable the trigger of msm8226 wcnss driver during boot up. wcnss firmware
will be loaded and wcnss will be released from reset.

Change-Id: I9a38c9948271172ee5c4e3f53115859743b38727
2013-03-20 12:29:15 +08:00
Jeff Johnson aa2c74034a wlan: update logic to populate WCNSS_qcom_wlan_nv.bin
In MR1-based releases we have expected the nv.bin file to be present
on the data partition.  If it did not exist, it would be created,
either from the version on the persist partition (if it had been
created there by the manufacturing process) or from a "canned" version
from the system partition, created there by the build process.  In
particular we did not update the nv.bin on the data partition if the
file already existed.  This meant that if a device had an nv.bin on
the data partition, and if it's nv.bin on the persist partition was
updated by the manufacturing process, the updated nv.bin on persist
was not being used.

To avoid this issue update the logic to conform to the pre-MR1
behavior.  There will only be one nv.bin on the device, and it will
exist on the persist partition.

CRs-fixed: 448163
Change-Id: Iadb74028b1b6f6640e83c73b03a85b2b38b02e95
2013-02-25 08:39:42 -08:00
Ming-yi Lin 641bcf5767 init: wifi: disable HSIC host controller if there is no WLAN device plugged
HSIC host controller don't to be active generally.We en
able it for our device. We check if deivce is plugged a
nd disable HSIC host controller in order to save power.

Change-Id: I75257f2c54bd68294c7536e2bd8fba1cfe48cde8
2013-02-22 12:32:13 +08:00
Linux Build Service Account f0889873a4 Merge "init: wifi: add auto card detect for AR6004 and WCN on 8974" 2013-02-20 10:13:14 -08:00
Duy Truong 0c0744e022 Update copyright to The Linux Foundation
Change-Id: Id084b09bf3a083ea5c0389900bbeb5ef149b3108
2013-02-10 06:35:11 -08:00
Ming-yi Lin 01dbec50ec init: wifi: add auto card detect for AR6004 and WCN on 8974
Auto card detection for AR6004 and WCN so they could use
the same file structure.

Change-Id: I2b6d869240d6dee62b60509489f4d277f53b2696
2013-02-04 11:54:06 +08:00
Jeff Johnson 46b89d91e3 wlan: update handling of nv.bin and cfg.ini.
Support the following semantics for nv.bin and cfg.ini:

nv.bin:
- A "template" nv.bin file will be installed in /system/etc/wifi.
- A "production" nv.bin may be present in /persist as a result of the
  manufacturing process
- A symbolic link will be populated in the firmware directory which
  points to the /data partition
- The file in the /data partition will be populated from the
  production file in /persist if it exits, otherwise it will be
  populated from the template file.

cfg.ini:
- A "template" cfg.bin file will be installed in /system/etc/wifi.
- A symbolic link will be populated in the firmware directory which
  points to the /data partition
- The file in the /data partition will be populated from the template
  file.

Change-Id: I87580ae43f7182b128a4af68f3ad69937d6ba5b6
2012-12-18 13:35:21 -08:00
Sameer Thalappil 5af892fb01 wcnss: Move cfg80211 to wcnss specific location
The default cfg80211 module is for wcnss solution, so move this to wcnss
specific directory at first boot. This move was done in wlan driver
makeifile; however this is preventing the binary only builds to run
because cfg80211 is an open source module and cannot be packaged with
properietary module.

Change-Id: Id180953245cf7cd63ae359bbac77ccf780f5924c
2012-10-24 10:43:23 -07:00
Ming-yi Lin fcfc2a6358 init: wifi: Assign wlan without detect when needed
Sometimes we need to assign specific wlanchip without detection

Change-Id: If3abb25cba4b0d57bc4e818d25eecded540514a1
2012-10-15 16:45:06 +08:00
David Ng 758a27dd67 init: qcom: Move system partition remount stage to early-boot
During initialization the system partition needs to be
remounted as read-write in order for changes to be made
to the /system partition (e.g. creating target-specific
symlinks, etc.).  Earlier this was done in the post-fs
stage where Android property service has not been
initialized.  This change moves these initializations to
the early-boot stage.

Update the wifi initialization script to use command
line parameters since getprop is not yet available in
early-boot.  Also fix bug in 8974 changes that breaks
8960 and other targets.

Call audio init script from wifi script rather than
directly from syspart-fixup since retrieving Android
property is not yet available.

TODO:  Init sequence needs to be redone for cleanup
and boot up speed.

Change-Id: I2a7338af91df951d0a4617d4f54db123aca839e3
2012-09-09 10:23:33 -07:00
Sameer Thalappil 201093a215 wlan: Add support for 8974
Change-Id: Ide539f896a713774e2bdd5d626ce609813a3652a
2012-09-06 17:28:37 -07:00
Santosh Sajjan ee218b58bc Changes done for wifi bring up on JB for 7x30 platform
Change-Id: If7fc9cef0a4b4ffd7b6f267acac68c7b23d013fe
2012-08-25 04:55:11 -06:00
Santosh Sajjan e96e4e71f7 wifi: Remove mount and unmount of file system.
Remove mount and unmount file system from wifi shell script
as they are taken care in init.post_fs.sh.

Change-Id: I49b9659b8081f0cc6adfd34a307c6da76f3eb24f
2012-08-13 11:59:18 +05:30
Santosh Sajjan 90e357de1f wlan:init.qcom.wifi.sh: Changes to support AR6004 USB and SDIO modules.
Add chnages to auto detect AR6004-SDIO wlan card inserted, and link
the ath6kl wlan firmware and boarddata file to corresponding
USB and SDIO versions based on AR6K chipt type.

Set the property 'wlan.driver.ath' to indicate ATH WLAN,
and is used by application to determine the type of AR6K.
if set to 1->AR6003/5, 2->AR6004(USD & SDIO vesrion)

Change-Id: I5d63e9d7a8b82038ed351069c2e4514b00d66357
2012-07-27 11:02:30 +05:30
Shashank Mittal 385037aa45 init: Add init.qcom.post_fs.sh script.
Some of the qcom services require to remount system partition with read-write
permission. But since all of them running as independent asyncronous services
so this can cause some issue.

init.post_fs.sh is responsible to call all such services syncronously and
in the end remount system partition as read-only.

Change-Id: I4c03a67df5eb429b2ede633f81135e8b5c457673
2012-07-23 17:07:34 -07:00
Royston Rodrigues 762e8625ed Bluetooth: Merge system/core script changes (.rc & .sh) of 'ics' to 'jb'.
Squashed commit of the following:

commit fef7046a2ace2c5e766d1eab249f86523213d702
Author: Royston Rodrigues <roystonr@codeaurora.org>
Date:   Thu Jul 12 08:42:20 2012 +0530

    Bluetooth: Add permissions for smd and rfcomm device nodes.

    Change-Id: Id4bbb9269635560ec71880eb340fafc5c6b85878

commit 4eab8848774920ec0ed786f57446f831b2e6a5c9
Author: Peter Krystad <pkrystad@codeaurora.org>
Date:   Mon Mar 12 16:46:55 2012 -0700

    Bluetooth: Remove references to amploader utility

    Amploader utility was specific to 1312 chip, and functionality has been
    disabled. Remove these references so the utility itself can be removed.

    Change-Id: I40e842309dbd24c98e240753c53748e432583f18
    CRs-fixed: 336688

Change-Id: I0474027db9bccffcf4ab42c9f652a2b5a0aaed78
2012-07-15 18:43:36 +05:30
Shashank Mittal b0aaab087e qcom: Add qcom init and ueventd scripts.
Change-Id: I388a154054c07631ca853e334ffaeea2451da6c1
2012-06-21 18:04:00 -07:00