Transplant RealTek wifi on s5pv210 + android4.0.3 and download it from the RealTek website based on previous experience.
Rtl8188cus driver. After compiling the driver and porting it to 4.0.3, a problem occurs. You can connect to WiFi and obtain the IP address, but you cannot connect to the Internet, you can use an IP address to access a LAN server. Obtain some log: I/systemserver (2119): networkstats servicei/systemserver (2119): networkpolicy servicei/systemserver (2119): wi-fi p2pservicei/systemserver (2119 ): wi-Fi servicee/commandlistener (2025): failed to open/proc/sys/NET/IPv6/CONF/wlan0/disable_ipv6: no such file or directorye/wifistatemachine (2119 ): failed to disable IPv6: Java. lang. illegalstateexception: unable to communicate to native daemo N for disabling ipv6i/systemserver (2119): connectivity serviced/connectivityservice (2119): connectivityservice starting UPE/Ethernet (2119): rundhcp () iface: D/netutils (2119 ): authorization in Env = 0x17584c8 clazz = 0x1d300001 iface = renew = 0i/wifiservice (2119): wifiservice starting up with Wi-Fi enabledd/netutils (2119 ): android_net_utils_rundhcpcommon in Env = 0x17bea08 clazz = 0x1e 100001 iface = wlan0 renew = 0i // system/bin/dhcpcd (2450): dhcpcd [2451]: Version 5.2.10 startingi // system/bin/dhcpcd (2450 ): dhcpcd [2451]: host does not support a monotonic clock-timing can skewi // system/bin/dhcpcd (2450): dhcpcd [2451]: wlan0: rebinding lease of 192.168.1.105i // system/bin/dhcpcd (2450): dhcpcd [2451]: wlan0: Acknowledged 192.168.1.105 from 192.168.1.1i // system/bin/dhcpcd (2450): DHCP CD [2451]: wlan0: leased 192.168.1.105 for 7200 secondsd/netutils (2119): Export dhcp_do_request () return 0, iface = wlan0d/netutils (2119): Export dhcp_do_request () return-1, iface = E/Ethernet (2119): DHCP request error: timed out waiting for init. SVC. dhcpcd _ to start, interface: As you can see, there is actually an Ethernet DHCP request interface that is empty. We suspect this problem is caused, So we track it: Frameworks/base/Core /JNI/jsonjboolean invoke (jnienv * ENV, jobject clazz, jstring ifname, jobject info, bool renew) Static jboolean invoke (jnienv * ENV, jobject clazz, jstring ifname, jobject info) {"rundhcp", "(ljava/lang/string; landroid/NET/dhcpinfointernal;) Z", (void *) android_net_utils_rundhcp }, frameworks/base/CORE/Java/Android/NET/ethernetdatat Racker. javalog. D (TAG, "adding" + iface); log. D (TAG, "Removing" + iface); Public void startmonitoring (context, Handler target) {sifacematch = context. getresources (). getstring (COM. android. internal. r. string. config_ethernet_iface_regex); Case connectivitymanager. type_ethernet: mnettrackers [nettype] = ethernetdatatracker. getinstance (); mnettrackers [nettype]. startmonitoring (context, mhandler); bre AK; tracks the call to reconnect () in startmonitoring (), and finds that it is not here, but below: mcurrentlinkproperties [nettype] = NULL; If (mnettrackers [nettype]! = NULL & mnetconfigs [nettype]. isdefault () {mnettrackers [nettype]. reconnect ();} trace mnetconfigs and find the key string [] nastrings = context. getresources (). getstringarray (COM. android. internal. r. array. networkattributes); found in device/Samsung/smdkv210/overlay/frameworks/base/CORE/RES/values/config. networkattributes in XML only sets Ethernet, but does not have wifi. Add: <string-array translatable = "false" name = "networkattributes"> <item> "WiFi, 1,-1, true "</item> <item>" Ethernet, 9, 1,-1, true "</item> </string-array> <string-array translatable =" false "name =" radioattributes "> <item>" 1, 1 "</item> <item> "9, 1" </item> </string-array> modify and re-compile, wiFi can be connected to the Internet. It is still caused by not carefully reading the guide.