Open Dlazder opened 7 months ago
Your error suggests that there is some range condition between your wpa_supplicant
and other network configuration utility. This is not a bug or other issue kind of wpa_supplicant
.
Disable Android WiFi management before using wpa_supplicant
on your own.
@sylirre How can I turn it off? I didn't find any information about this. If you just turn off Wi-Fi then the wlan0 interface will not be available, I don't think that's it.
If you just turn off Wi-Fi then the wlan0 interface will not be available, I don't think that's it.
Indeed you have to turn wifi off. The interface does not disappear. You need to up
it using ifconfig
.
Termux wpa_supplicant and Android OS wifi management can't coexist as will conflict with each other.
@sylirre
If your device uses kernel modules, you need to load one with insmod
first.
insmod
is not provided by Termux. You may need to use one from /system/bin
, /system/xbin
or other system binary directory.
What module to load is device specific. sudo cat /proc/modules
may give some hint: run when wifi enabled in Android and check difference with content when wifi is off.
No difference. In the first case I am connected to home Wi-Fi. In the second just turned off
In this case there is a difference, here I tried turn on Wi-Fi but do not connect to the hotspot
In the /system i have xbin directory, it's empty
I want to add an important detail, wpa_supplicant works, and I can process the output using the stream editor. A lot of different error messages bother me.
Problem description
wpa_supplicant not working as expected.
I am running
sudo wpa_supplicant -i wlan0 -c ./wpa.conf
But get something like thisI have root
What steps will reproduce the bug?
Create wpa.conf using
wpa_passphrase essidname password > wpa.conf
After this
sudo wpa_supplicant -i wlan0 -c ./wpa.conf
What is the expected behavior?
I want to receive a message about successful or unsuccessful connection. I assume that all this depends in particular on the device, so this problem may not be for everyone.
System information
termux-info: