add ifaddrs and test whether network interface is wireless or not for android