-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
won't connect to hotspots generated by linux using hostapd #339
Comments
Are you sure this is a 2.4GHz WiFi network? |
Yes, checked that many ways. Also, |
More config options here explained if there is something else special that needs to be forced: https://wiki.gentoo.org/wiki/Hostapd . |
Does the Bitaxe log (over USB) show anything interesting when it's trying to join this network? |
Does USB give me a serial port? If so, what baud rate? |
115200 baud. The WiFi connection is one of the first things that happens, so you maybe to reset to catch it |
For reference, here's the serial output while connected to an access point created with nmcli while we troubleshoot this:
|
I have a feeling there is a change needed to the hostapd config. I can't quite figure out what though. This unsolved problem seems like a clue. https://esp32.com/viewtopic.php?t=4690 |
I've also tested with ubuntu 20.04 and I get the same result. |
Also, if you want to use
|
Here are some more links related to |
I have gotten to the point where the Bitaxe continually prints this debug output;
|
Here is the BitAxe variant I am using by the way:
WiFi is connected here to an EnGenius access point (which is not what I want, but it works for now). |
One thing to note is linux can connect to the BitAxe as a client of the BitAxe access point during initial setup. However, this issue is about things working the other way around. Is there any security at all for the BitAxe access point? I've tried doing no security on the linux access point. I don't think the BitAxe allows that though. Can you make the BitAxe temporarily try to connect to an unsecure linux access point just to see if that works? |
The Bitaxe setup wifi is open... that is good to know that the RPi STA can connect to the bitaxe AP. Sounds more and more like a security mismatch. I'll try the open RPi STA and see if that works.. |
Actually, I've only connected from a laptop, not raspi to the BitAxe AP, but this issue happens on rasapi or a laptop, so probably it will work for a raspi to connect to the BitAxe AP. |
With some modification to the Bitaxe FW to allow it, I can connect to a RPi open AP! (configured with network manager) here is my Network Manager profile;
further support of the security mismatch hypothesis |
Wondering if the 1$ wifi chip in the BitAxe only supports a security profile that linux has depreciated? |
This is what it looks on the hostap side
|
Surely Linux can handle whatever security -- it does control every other AP that the ESP32 works with. |
Yes, I got that a few times last week when testing with skot, but it was not repeatable. I tried adding the |
@AndySchroder can you try setting your AP password to |
You think there is a min password length? |
I had a more random password originally, it was autogenerated by |
minimum password length for WPA2 is 8.. so |
I was not aware of that constraint in WPA2. The autogenerated password from |
I found one bug that is very likely related. You cannot change the password from something else to password using the Web UI. I opened a PR here to fix that limitation. With this I am able to successfully connect using the above hostapd config. |
|
|
|
I think likely #347 is the fix. I have re-tested my original password, and it works. Last week when I first got started, I did not have the |
Off topic, but I wanted to post here because there is a lot of discussion about connecting to a raspi with a BitAxe in this issue: The raspi only supports a few (4-5) clients in access point mode before the wifi adapter locks up. This issue suggests you should get a bit more than what I have before locking up, but it is still very limited: raspberrypi/linux#3010 . So, the raspi is not a useful solution to connect a lot of BitAxe to the internet, only good for testing with a few. Using another linux machine with a better wifi adapter is not an issue though. |
bitaxe won't connect to a wifi hotspot generated by linux using hostapd. I've tested this on a raspi4 and a purism librem 14 laptop, both with ubuntu 22.04
Here's my hostapd config file:
and no connections are made. However, if trying to connect with a laptop, it works fine and some output comes in the terminal after
wlan0: AP-ENABLED
.I've also tested with
nmcli
(https://ubuntu.com/core/docs/networkmanager/configure-wifi-access-points), and I have the same problems, buthostapd
seems to allow more raw configuration and outputs.The text was updated successfully, but these errors were encountered: