-
-
[求助]如何让WIFI和3G共存
-
发表于: 2014-11-16 21:09 4665
-
现有一需求,需要WIFI连接局域网获取数据,3G连接外网服务器传送数据。手机是SAMSUNG SM-T311。
我的步骤如下:(root是必须的)
1,svc wifi disable
2,svc data enable;
3,insmod /lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt";
4,netcfg wlan0 up;
5,cd /data/misc/wifi/. ;
6,wpa_supplicant -B -Dnl80211 -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf;
7,dhcpcd wlan0;
8,分配路由
在第六步时,wpa_supplicant.conf里有一个配置好的AP,但是运行后没有连接信息,请各位大大指导.
dmesg | grep wlan后显示
<6>[21884.741963] c0 ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<4>[21885.370527] c0 brcm_wlan_power Enter: power off
<6>[21885.370563] c0 111brcm_wlan_power Enter: power off
<4>[21891.156323] c0 brcm_wlan_power Enter: power on
<6>[21891.156366] c0 111brcm_wlan_power Enter: power on
<4>[21891.951399] c1 Broadcom Dongle Host Driver: register interface [wlan0] MAC: fc:7a:e2
<7>[21909.900344] c1 wlan0: no IPv6 routers present
我的步骤如下:(root是必须的)
1,svc wifi disable
2,svc data enable;
3,insmod /lib/modules/dhd.ko "firmware_path=/system/etc/wifi/bcmdhd_apsta.bin nvram_path=/system/etc/wifi/nvram_net.txt";
4,netcfg wlan0 up;
5,cd /data/misc/wifi/. ;
6,wpa_supplicant -B -Dnl80211 -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf;
7,dhcpcd wlan0;
8,分配路由
在第六步时,wpa_supplicant.conf里有一个配置好的AP,但是运行后没有连接信息,请各位大大指导.
dmesg | grep wlan后显示
<6>[21884.741963] c0 ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
<4>[21885.370527] c0 brcm_wlan_power Enter: power off
<6>[21885.370563] c0 111brcm_wlan_power Enter: power off
<4>[21891.156323] c0 brcm_wlan_power Enter: power on
<6>[21891.156366] c0 111brcm_wlan_power Enter: power on
<4>[21891.951399] c1 Broadcom Dongle Host Driver: register interface [wlan0] MAC: fc:7a:e2
<7>[21909.900344] c1 wlan0: no IPv6 routers present
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
赞赏
他的文章
看原图
赞赏
雪币:
留言: