Opened 23 months ago
Closed 19 months ago
#18255 closed bug (not reproducible)
Wifi doesn't connect
Reported by: | pulkomandy | Owned by: | waddlesplash |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Drivers/Network/iaxwifi200 | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
On my home network I can't get the Wifi to connect. I have tried both using NetworkStatus and using a script to set the SSID and key.
The wpa_supplicant window sometimes says the network is open (it isn't, it's WPA2). Not a lot of things in the syslog (a few state changes but no error or anything).
How can I debug this?
It used to work on this machine and I think it works with some other access points.
Attachments (2)
Change History (13)
comment:1 by , 23 months ago
comment:2 by , 23 months ago
This is a crazy and unconvenient way to debug things. Can't they just send their logs to syslog or to some logfile of their own? How do you tolerate working this way?
comment:3 by , 23 months ago
Many unix daemons are designed with "log to stdout" per default, and this is certainly true for daemons we import. Yes we could make them log somewhere else, but at this point I'd like to have a proper log viewer integrated into haiku which displays logs graphically and can filter by generating application etc.
There are quite a bit of "logged to stdout" things we don't catch now, also of stuff started by launch_roster.
It's not there yet anyhow, so i'm left with the other way, yes it is inconvenient, I have not found a better way with the current system design.
comment:4 by , 23 months ago
It seems not hard at all to have launch daemon redirect stdout/stderr to some logfile or syslog. That just needs closing stdout and opening the logfile as fd 0, right? Do we really not have anything like that in place yet?
comment:5 by , 23 months ago
I don't think we do, and yes for the "standard" case that would be enough. the logging daemon receiving this would be nicer, it already knows how to roll over log files and such (and would be the place of contact for a log viewer)
comment:6 by , 23 months ago
This is a crazy and unconvenient way to debug things.
wpa_supplicant logging is very verbose most of the time and would clog up the syslog. For OpenBSD drivers it is much less verbose as the kernel stack handles a lot more, but that's another matter.
The wpa_supplicant window sometimes says the network is open (it isn't, it's WPA2).
This sounds relevant. The wpa_supplicant should be getting the encryption type from the network join request. If it doesn't, that parameter getting lost could prevent joins from succeeding.
Try using ifconfig to join and see if it makes any difference.
comment:7 by , 23 months ago
No, ifconfig doesn't help. That's what I meant by "using a script" in the ticket description.
comment:8 by , 21 months ago
I have the same issue here https://dev.haiku-os.org/ticket/18342
I attached syslog and wpa_supplicant log during auth failure.
by , 21 months ago
by , 21 months ago
Attachment: | wpa_supplicant.log added |
---|
comment:9 by , 21 months ago
I tried to look what is going on using a WiFi Monitor running on another machine.
When connecting from Linux, I can clearly see how the card sends an authentication request.
When connected from Haiku, the card does not send anything!
And then wpa_supplicant writes in the log that an authentication timeout has occurred.
comment:10 by , 21 months ago
Your ticket is a very different scenario than this one, because there are two different WPA stacks in use. The driver used with your ticket uses wpa_supplicant's WPA(2) stack, while the driver in this ticket uses the OpenBSD WPA(2) stack. Thus there is a good chance the problems are unrelated.
comment:11 by , 19 months ago
Resolution: | → not reproducible |
---|---|
Status: | new → closed |
I have replaced my wifi access point with a newer one (provided by my ISP), and also did a clean install on my Haiku machine, and now things are working fine. No need to spend more time on this I think.
I think the first part would be to get a log from wpa_supplicant or the net_server itself.
For net_server you need to blacklist net_server so launch_rostet will not autostart it. and the manually launch it in a terminal (from a haiku build i suppose? launch_rostet sadly cant be told a service is just disabled yet)
For wpa_supplicant you can quit the application in teamMonitor and then run it in the terminal directly, and then use the network preferences to get it to do something. (you then get the output to stdout)