According to the APIs change of libhardware_legacy and libnetutils, to modify corresponding code
for letting wifi working.