转载时请注明出处和作者文章出处:http://blog.youkuaiyun.com/lbmygf
1、 char driver_status[PROPERTY_VALUE_MAX];
property_get("wlan.driver.status", driver_status, NULL);
获得 "wlan.driver.status" 的属性,放到 driver_status 数组中。
2、 property_set("wlan.driver.status", "timeout");
将 "wlan.driver.status" 属性设置为 timeout。
相应的命令:
getprop "wlan.driver.status"
setprop "wlan.driver.status" "timeout"