wifi note:
1.java中实现log的方法是
Log.v(TAG, "Static IP configuration succeeded");
1.
D/WifiStateTracker( 860): DhcpHandler: DHCP request started
发生在 ./frameworks/base/wifi/java/android/net/wifi/WifiStateTracker.java:2285
2.
java层运行dhcp的地方有两个
./frameworks/base/ethernet/java/android/net/ethernet/EthernetStateTracker.java
./frameworks/base/wifi/java/android/net/wifi/WifiStateTracker.java
定义在
./frameworks/base/core/java/android/net/NetworkUtils.java
runDhcp的jni实现./frameworks/base/core/jni/android_net_NetUtils.cpp:231
对应的函数是android_net_utils_runDhcp,此函数会调用dhcp_do_request, dhcp_do_request定义在./system/core/libnetutils/dhcp_utils.c中
3.rt3070 wifi 驱动适配层在./hardware/libhardware_legacy/wifi/wifi_ralink3070.c
Ethernet分析
1.EthernetNative.java的jni在./frameworks/base/core/jni/android_net_ethernet.cpp
阅读(2495) | 评论(0) | 转发(0) |