概述
1.modify add wifi ap6236
diff --git a/android/device/softwinner/t3-p1/init.sun8iw11p1.rc b/android/device/softwinner/t3-p1/init.sun8iw11p1.rc
index 43af231..dbe4700 100755
--- a/android/device/softwinner/t3-p1/init.sun8iw11p1.rc
+++ b/android/device/softwinner/t3-p1/init.sun8iw11p1.rc
@@ -30,8 +30,9 @@ on fs
insmod /system/vendor/modules/mali.ko
# insmod touch_panel gt82x
- insmod /system/vendor/modules/gt82x.ko
-
+# insmod /system/vendor/modules/gt82x.ko
+ insmod /system/vendor/modules/gt9xx_newts.ko
+
#install ir driver . by Gary.
# insmod /system/vendor/modules/sunxi-ir-rx.ko
@@ -79,7 +80,7 @@ on boot
write /sys/power/scene_lock "super_standby"
# bluetooth
- chmod 0660 /dev/ttyS3
+ chmod 0666 /dev/ttyS3
chown bluetooth net_bt_stack /dev/ttyS3
mkdir /data/misc/bluedroid 770 bluetooth net_bt_stack
@@ -141,12 +142,12 @@ service ril-daemon /system/bin/rild #-l /system/lib/libzte-ril.so
# wifi service
# 1 wifi station and softap
-service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
- p2p_supported=false
- class main
- socket wpa_wlan0 dgram 660 wifi wifi
- disabled
- oneshot
+#service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
+# p2p_supported=false
+# class main
+# socket wpa_wlan0 dgram 660 wifi wifi
+# disabled
+# oneshot
# 1. realtek & eagle wifi service
# 1.1 realtek & eagle wifi sta service
@@ -178,9 +179,25 @@ service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
# oneshot
# 2 wifi sta p2p concurrent service
-service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
- p2p_supported=true
+#service p2p_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant
+# p2p_supported=true
+# class main
+# socket wpa_wlan0 dgram 660 wifi wifi
+# disabled
+# oneshot
+service wpa_supplicant /system/bin/wpa_supplicant -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
+ -O/data/misc/wifi/sockets
+ -g@android:wpa_wlan0
+ class main
+ socket wpa_wlan0 dgram 660 wifi wifi
+ group wifi
+ disabled
+ oneshot
+service p2p_supplicant /system/bin/wpa_supplicant -Dnl80211 -ip2p0 -c/data/misc/wifi/p2p_supplicant.conf -N -Dnl80211 -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
+ -O/data/misc/wifi/sockets
+ -g@android:wpa_wlan0
class main
socket wpa_wlan0 dgram 660 wifi wifi
+ group wifi
disabled
oneshot
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/bcm43436b0.hcd b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/bcm43436b0.hcd
new file mode 100755
index 0000000..e2473b9
Binary files /dev/null and b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/bcm43436b0.hcd differ
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/device-bcm.mk b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/device-bcm.mk
new file mode 100755
index 0000000..c29cb80
--- /dev/null
+++ b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/device-bcm.mk
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2008 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+-include hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk
+
+WIFI_DRIVER_FW_PATH_STA := "/system/vendor/modules/fw_bcm43436b0.bin"
+WIFI_DRIVER_FW_PATH_P2P := "/system/vendor/modules/fw_bcm43436b0_p2p.bin"
+WIFI_DRIVER_FW_PATH_AP := "/system/vendor/modules/fw_bcm43436b0_apsta.bin"
+
+PRODUCT_COPY_FILES +=
+ hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0.bin:system/vendor/modules/fw_bcm43436b0.bin
+ hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_apsta.bin:system/vendor/modules/fw_bcm43436b0_apsta.bin
+ hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_p2p.bin:system/vendor/modules/fw_bcm43436b0_p2p.bin
+ hardware/broadcom/wlan/bcmdhd/firmware/ap6236/nvram_ap6236.txt:system/vendor/modules/nvram_ap6236.txt
+ hardware/broadcom/wlan/bcmdhd/firmware/ap6236/bcm43436b0.hcd:system/vendor/modules/bcm43436b0.hcd
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0.bin b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0.bin
new file mode 100755
index 0000000..6263983
Binary files /dev/null and b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0.bin differ
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_apsta.bin b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_apsta.bin
new file mode 100755
index 0000000..93e3107
Binary files /dev/null and b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_apsta.bin differ
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_p2p.bin b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_p2p.bin
new file mode 100755
index 0000000..59972d5
Binary files /dev/null and b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/fw_bcm43436b0_p2p.bin differ
diff --git a/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/nvram_ap6236.txt b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/nvram_ap6236.txt
new file mode 100755
index 0000000..3537469
--- /dev/null
+++ b/android/hardware/broadcom/wlan/bcmdhd/firmware/ap6236/nvram_ap6236.txt
@@ -0,0 +1,65 @@
+#AP6236_NVRAM_V1.1_20170804
+# NVRAM file for BCM943430WLPTH, Bx Chip
+# 2.4 GHz, 20 MHz BW mode
+
+# The following parameter values are just placeholders, need to be updated.
+manfid=0x2d0
+prodid=0x0727
+vendid=0x14e4
+devid=0x43e2
+boardtype=0x0727
+boardrev=0x1331
+boardnum=22
+macaddr=00:90:4c:c5:12:38
+sromrev=11
+boardflags=0x00404201
+boardflags3=0x08000000
+xtalfreq=26000
+nocrc=1
+ag0=255
+aa2g=1
+ccode=ALL
+
+pa0itssit=0x20
+extpagain2g=0
+#PA parameters for 2.4GHz, measured at CHIP OUTPUT
+pa2ga0=-202,5582,-671
+AvVmid_c0=0x0,0xc8
+cckpwroffset0=5
+
+# PPR params
+maxp2ga0=74
+txpwrbckof=6
+cckbw202gpo=0x2222
+legofdmbw202gpo=0x55555555
+mcsbw202gpo=0x76666666
+propbw202gpo=0xcc
+
+# OFDM IIR :
+ofdmdigfilttype=18
+ofdmdigfilttypebe=18
+# PAPD mode:
+papdmode=1
+pacalidx2g=42
+papdepsoffset=-22
+papdendidx=58
+
+# LTECX flags
+ltecxmux=0
+ltecxpadnum=0x0102
+ltecxfnsel=0x44
+ltecxgcigpio=0x01
+
+il0macaddr=00:90:4c:c5:12:38
+wl0id=0x431b
+
+deadman_to=0xffffffff
+# muxenab: 0x1 for UART enable, 0x2 for GPIOs, 0x8 for JTAG
+muxenab=0x10
+# CLDO PWM voltage settings - 0x4 - 1.1 volt
+#cldo_pwm=0x4
+
+#VCO freq 326.4MHz
+spurconfig=0x3
+
+AvVmidIQcal=0x2,0xa8
No newline at end of file
diff --git a/android/hardware/libhardware_legacy/wifi/Android.mk b/android/hardware/libhardware_legacy/wifi/Android.mk
index b8e0131..c23b249 100755
Binary files a/android/hardware/libhardware_legacy/wifi/Android.mk and b/android/hardware/libhardware_legacy/wifi/Android.mk differ
diff --git a/android/hardware/libhardware_legacy/wifi/wifi.c b/android/hardware/libhardware_legacy/wifi/wifi.c
index eb09317..ce607b1 100755
Binary files a/android/hardware/libhardware_legacy/wifi/wifi.c and b/android/hardware/libhardware_legacy/wifi/wifi.c differ
diff --git a/lichee/linux-3.10/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c b/lichee/linux-3.10/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c
index 07d69d1..bc69484 100755
--- a/lichee/linux-3.10/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c
+++ b/lichee/linux-3.10/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc.c
@@ -233,11 +233,11 @@ sdioh_detach(osl_t *osh, sdioh_info_t *sd)
}
/* Disable Function 1 */
- if (sd->func[1]) {
+ /* if (sd->func[1]) {
sdio_claim_host(sd->func[1]);
sdio_disable_func(sd->func[1]);
sdio_release_host(sd->func[1]);
- }
+ }*/
sd->func[1] = NULL;
sd->func[2] = NULL;
最后
以上就是机灵抽屉为你收集整理的全志 添加AP6236 WIFI Patch的全部内容,希望文章能够帮你解决全志 添加AP6236 WIFI Patch所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复