Android Wifi Driver Porting
来源:互联网 发布:渥太华大学 知乎 编辑:程序博客网 时间:2024/09/21 09:18
1. 修改 build/target/board/generic/BoardConfig.mk 2. 修改hardware/libhardware_legacy/wifi/wifi.c wifi.c 是 wifi 的hardware 抽像层,必须修改 wifi_load() . wifi_unload() 两个函数来装载特定 wifi chip 的FW , 以及insmod wifi driver. 3. 配置 wpa_supplicant 3.1 修改out/target/product/generic/root/init.rc # For wifi chmod 0660 /data/misc/wifi/wpa_supplicant.conf service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant / 这里wpa_supplicant 使用wireless extension 作为 driver, wlan0 为intercace, /data/misc/wifi/wpa_supplicant.conf 3.2 wpa_supplicant.conf wpa_supplicant 的配置文件内容如下 ----------------------------------------------------------------------------------- # This option can be used to allow wpa_supplicant to overwrite configuration # Parameters for the control interface. If this is specified, wpa_supplicant ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=1010 ----------------------------------------------------------------------------------- 第一个参数表明,ap 配置会被最近一次的修改覆盖, 第二个参数指定wpa_supplicant 可被其他系统服务访问的管道以及访问的Group权限是AID_WIFI用户(GROUP=1010) 4. 配置 dhcpc 4.1 修改out/target/product/generic/root/init.rc mkdir /data/misc/dhcp 0770 dhcp dhcp service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -BK -f /system/etc/dhcpcd/dhcpcd-wlan0.conf wlan0 4.2 dhcpcd 配置文件 dhcpcd-wlan0.conf ------------------------------------------------------------------------------- # dhcpcd configuration for Android Wi-Fi interface # dhcpcd-run-hooks uses these options. --------------------------------------------------------------------------------
定义使用 wireless extension 作为wpa_supplicant 的driver.
# Wifi related defines
BOARD_WPA_SUPPLICANT_DRIVER := WEXT
mkdir /data/misc/wifi 0770 wifi wifi
mkdir /data/misc/wifi/sockets 0770 wifi wifi
mkdir /data/system/wpa_supplicant 0770 wifi wifi
-Dwext -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf
disabled
oneshot
作为配置文件
# file whenever configuration is changed (e.g., new network block is added with
# wpa_cli or wpa_gui, or a password is changed). This is required for
# wpa_cli/wpa_gui to be able to store the configuration changes permanently.
# Please note that overwriting configuration file will remove the comments from
# it.
update_config=1
# will open a control interface that is available for external programs to
# manage wpa_supplicant. The meaning of this string depends on which control
# interface mechanism is used. For all cases, the existance of this parameter
# in configuration is used to determine whether the control interface is
# enabled.
# When configuring both the directory and group, use following format:
# DIR=/var/run/wpa_supplicant GROUP=wheel
# DIR=/var/run/wpa_supplicant GROUP=0
# (group can be either group name or gid)
chown dhcp dhcp /data/misc/dhcp
disabled
oneshot
# See dhcpcd.conf(5) for details.
interface wlan0
option subnet_mask, routers, domain_name_servers
- Android Wifi Driver Porting
- Android Wifi Driver Porting
- Android Wifi Driver Porting
- Android Wifi Driver Porting
- 【转】Android Wifi Driver Porting
- Porting Wifi driver on Android
- Android wifi porting
- android wifi porting
- android wifi porting
- Android wifi porting document
- Android wifi porting
- Android wifi porting
- android wm9714 ASoC driver porting
- Porting WiFi drivers to Android
- Porting WiFi drivers to Android
- Porting WiFi drivers to Android
- Wifi Porting for Android 2.3
- Porting WiFi drivers to Android
- [转载]The Programmer's Bill of Rights
- 同余方程组有解的条件
- 我的OTB经历
- 情人节里的7大攻势
- 入职中企动力一月有感
- Android Wifi Driver Porting
- 编号(长度)为状态的动态规划(LCS,LIS等)
- xz压缩文件
- magento开发 -- 修改当前用户的客户组
- 庆祝my blog开通
- mysql 简单命令学习
- ADS生成.bin文件
- ubuntu linux中firefox浏览器flash中文显示为方框的问题
- linux管道编程