Quantcast
Channel: Active questions tagged adb - Android Enthusiasts Stack Exchange
Viewing all articles
Browse latest Browse all 355

How to change network interface used by Android?

$
0
0

When I boot up my Android Device and go to WiFi settings, the status of WiFi remains "Turning Wi-Fi on" forever. I looked it up in logcat logs, and below is the error that I see.

E/wpa_supplicant( 1713): nl80211: Could not set interface 'wlan0' UPE/wpa_supplicant( 1713): wlan0: Failed to initialize driver interfaceE/wpa_supplicant( 1713): Could not read interface wlan0 flags: No such device

Below is some useful information.

root@android:/ # netcfgnetcfg    lo       UP     127.0.0.1/8   0x00000049 00:00:00:00:00:00gannet0  DOWN     0.0.0.0/0   0x00001082 1e:e9:6e:bf:45:f7dummy0   DOWN     0.0.0.0/0   0x00000082 ba:ad:f6:ae:6a:09rmnet0   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet1   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet2   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet3   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet4   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet5   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet6   DOWN     0.0.0.0/0   0x00000000 00:00:00:00:00:00rmnet7   DOWN     0.0.0.0/0   0x00000001 00:00:00:00:00:00sit0     DOWN     0.0.0.0/0   0x00000080 00:00:00:00:00:00ip6tnl0  DOWN     0.0.0.0/0   0x00000080 00:00:00:00:00:00

Contents of /system/etc/wifi/wpa_supplicant.conf:

update_config=1ctrl_interface=wlan0eapol_version=1ap_scan=1fast_reauth=1

Question: How can I enable Android to use some other interface other than wlan0?

Things tried:

  1. I tried to edit ctrl_interface parameter in /system/etc/wifi/wpa_supplicant.conf using adb pull and adb push to other interfaces shown by netcfg, but Android still tries to use wlan0.

  2. I also tried to start wpa_supplicant daemon using the below command.

    /system/bin/wpa_supplicant -Dnl80211 -idummy0 -c/system/etc/wifi/wpa_supplicant.conf

    but this gives an error.

    E/wpa_supplicant( 5390): dummy0: Failed to initialize driver interface

Viewing all articles
Browse latest Browse all 355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>