soypat / cyw43439

Driver for the Wifi+bluetooth integrated circuit on the pico.
MIT License
111 stars 6 forks source link

Unable to get a connection to either of two WIFI networks #55

Open pnunn opened 4 days ago

pnunn commented 4 days ago

I tried to connect the pico w to two different wifi networks (using quite powerful AP's) but in both cases (one an open network, the other encrypted) could not get the device to connect.

This is the case with two different pico w devices.

I tried to connect to my phone hotspot and that did work.

How would I fault find this issues? ` The failures looked like time=1970-01-01T00:00:13.664Z level=INFO msg=rxEvent event=SET_SSID status=1 reason=0 flags=0 dev.linkstate=3
time=1970-01-01T00:00:13.665Z level=ERROR msg="wifi join faled" err="join:SET_SSID failed"
time=1970-01-01T00:00:18.666Z level=INFO msg=joinWpa2 ssid=EarlNetNew len(pass)=12
time=1970-01-01T00:00:18.666Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19
time=1970-01-01T00:00:18.677Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:18.678Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC len=4
time=1970-01-01T00:00:18.689Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:18.690Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=23
time=1970-01-01T00:00:18.701Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:18.702Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=31
time=1970-01-01T00:00:18.713Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:18.714Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=27
time=1970-01-01T00:00:18.725Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:18.825Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC_PMK len=68
time=1970-01-01T00:00:18.836Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:18.837Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_INFRA len=4
time=1970-01-01T00:00:18.848Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:18.849Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_AUTH len=4
time=1970-01-01T00:00:18.860Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:18.861Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WPA_AUTH len=4
time=1970-01-01T00:00:18.872Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:18.872Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_SSID len=36
time=1970-01-01T00:00:18.903Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:22.145Z level=DEBUG msg=rx len=258 hdr=asyncev
time=1970-01-01T00:00:22.146Z level=DEBUG msg=rx len=260 hdr=asyncev
time=1970-01-01T00:00:22.146Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1
time=1970-01-01T00:00:22.147Z level=DEBUG msg=rx len=259 hdr=asyncev
time=1970-01-01T00:00:22.148Z level=DEBUG msg=rx len=258 hdr=asyncev
time=1970-01-01T00:00:22.149Z level=DEBUG msg=rx len=260 hdr=asyncev
time=1970-01-01T00:00:22.149Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1
time=1970-01-01T00:00:22.150Z level=DEBUG msg=rx len=259 hdr=asyncev
time=1970-01-01T00:00:22.151Z level=DEBUG msg=rx len=258 hdr=asyncev
time=1970-01-01T00:00:22.152Z level=INFO msg=rxEvent event=SET_SSID status=1 reason=0 flags=0 dev.linkstate=3
time=1970-01-01T00:00:22.153Z level=ERROR msg="wifi join faled" err="join:SET_SSID failed"
time=1970-01-01T00:00:27.153Z level=INFO msg=joinWpa2 ssid=EarlNetNew len(pass)=12
time=1970-01-01T00:00:27.154Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19
time=1970-01-01T00:00:27.165Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:27.166Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC len=4
time=1970-01-01T00:00:27.177Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:27.178Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=23
time=1970-01-01T00:00:27.189Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:27.189Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=31
time=1970-01-01T00:00:27.200Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:27.201Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=27
time=1970-01-01T00:00:27.212Z level=DEBUG msg=rx len=259 hdr=ctl
time=1970-01-01T00:00:27.313Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC_PMK len=68
time=1970-01-01T00:00:27.324Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:27.325Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_INFRA len=4
time=1970-01-01T00:00:27.336Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:27.336Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_AUTH len=4
time=1970-01-01T00:00:27.347Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:27.348Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WPA_AUTH len=4
time=1970-01-01T00:00:27.359Z level=DEBUG msg=rx len=256 hdr=ctl
time=1970-01-01T00:00:27.360Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_SSID len=36
time=1970-01-01T00:00:27.391Z level=DEBUG msg=rx len=256 hdr=ctl

This was the case with both my code and any of the example code.

Ta.

pnunn commented 2 days ago

I've tried adding a static IP to the DHCP example, but the same behaviour is seen. With debug = true, the log stack is.

time=1970-01-01T00:00:23.155Z level=DEBUG msg=rx len=258 hdr=asyncev time=1970-01-01T00:00:23.156Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:23.157Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1 time=1970-01-01T00:00:23.157Z level=ERROR msg="wifi join faled" err="join:wait for ssid" time=1970-01-01T00:00:28.158Z level=INFO msg=joinWpa2 ssid=EarlNetNew len(pass)=12 time=1970-01-01T00:00:28.159Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19 time=1970-01-01T00:00:28.160Z level=DEBUG msg=rx len=259 hdr=asyncev time=1970-01-01T00:00:28.171Z level=DEBUG msg=rx len=258 hdr=asyncev time=1970-01-01T00:00:28.182Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:28.182Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1 time=1970-01-01T00:00:28.193Z level=DEBUG msg=rx len=259 hdr=asyncev time=1970-01-01T00:00:28.204Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:28.215Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:28.216Z level=INFO msg=rxEvent event=AUTH status=5 reason=0 flags=0 dev.linkstate=4 time=1970-01-01T00:00:28.227Z level=DEBUG msg=rx len=258 hdr=asyncev time=1970-01-01T00:00:28.227Z level=INFO msg=rxEvent event=SET_SSID status=1 reason=0 flags=0 dev.linkstate=3 time=1970-01-01T00:00:28.238Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:28.239Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC len=4 time=1970-01-01T00:00:28.250Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:28.251Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=23 time=1970-01-01T00:00:28.262Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:28.263Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=31 time=1970-01-01T00:00:28.274Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:28.275Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=27 time=1970-01-01T00:00:28.286Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:28.387Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC_PMK len=68 time=1970-01-01T00:00:28.388Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:28.389Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_INFRA len=4 time=1970-01-01T00:00:28.390Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:28.390Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_AUTH len=4 time=1970-01-01T00:00:28.391Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:28.392Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WPA_AUTH len=4 time=1970-01-01T00:00:28.403Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:28.404Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_SSID len=36 time=1970-01-01T00:00:28.435Z level=DEBUG msg=rx len=256 hdr=ctl

I seems the SSID isn't found????

soypat commented 2 days ago

I'd suggest going into the router configuration and checking the security configuration- also make sure you match the case of the SSID perfectly! Right now cyw43439 driver chooses WPA2 security here https://github.com/soypat/cyw43439/blob/a62ee4027d66bc0f92d4f7bc3902627fb8e6ed6b/wifi.go#L321. If you are using a different security configuration I'd suggest either changing your router security to WPA2 or cloning this repo and setting the security to your router's current configuration.

This is what a a succesful connection looks like:

``` tinygo flash -target=pico -stack-size=8kb -monitor ./examples/dhcp Connected to /dev/ttyACM0. Press Ctrl-C to exit. starting program time=1970-01-01T00:00:02.002Z level=INFO msg="initializing pico W device..." time=1970-01-01T00:00:02.274Z level=DEBUG msg="read back bus ctl" got=177 time=1970-01-01T00:00:02.275Z level=DEBUG msg="current bus ctl" val=65584 got=4276993709 time=1970-01-01T00:00:02.276Z level=DEBUG msg=Init:alp time=1970-01-01T00:00:02.279Z level=DEBUG msg="flashing firmware" chip_id=43439 fwlen=230321 time=1970-01-01T00:00:02.280Z level=DEBUG msg=bp_write addr=0 len=230321 time=1970-01-01T00:00:02.458Z level=DEBUG msg="flashing nvram" time=1970-01-01T00:00:02.459Z level=DEBUG msg=bp_write addr=523540 len=742 time=1970-01-01T00:00:02.461Z level=DEBUG msg=Init:start-core time=1970-01-01T00:00:02.464Z level=DEBUG msg="core up" time=1970-01-01T00:00:02.483Z level=DEBUG msg=Init:intr-mask time=1970-01-01T00:00:02.567Z level=DEBUG msg="base init done" time=1970-01-01T00:00:02.567Z level=DEBUG msg=initControl clm_len=4752 time=1970-01-01T00:00:02.568Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=1044 time=1970-01-01T00:00:02.570Z level=DEBUG msg=rx len=256 hdr=asyncev time=1970-01-01T00:00:02.571Z level=DEBUG msg=tryPoll:ignore_spurious err="whd: invalid EtherType" time=1970-01-01T00:00:02.582Z level=DEBUG msg=rx len=256 hdr=asyncev time=1970-01-01T00:00:02.582Z level=DEBUG msg=tryPoll:ignore_spurious err="whd: invalid EtherType" time=1970-01-01T00:00:02.593Z level=DEBUG msg=rx len=1072 hdr=ctl time=1970-01-01T00:00:02.594Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=1044 time=1970-01-01T00:00:02.606Z level=DEBUG msg=rx len=1072 hdr=ctl time=1970-01-01T00:00:02.607Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=1044 time=1970-01-01T00:00:02.619Z level=DEBUG msg=rx len=1072 hdr=ctl time=1970-01-01T00:00:02.620Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=1044 time=1970-01-01T00:00:02.632Z level=DEBUG msg=rx len=1072 hdr=ctl time=1970-01-01T00:00:02.633Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=676 time=1970-01-01T00:00:02.644Z level=DEBUG msg=rx len=704 hdr=ctl time=1970-01-01T00:00:02.645Z level=DEBUG msg=clmload:done time=1970-01-01T00:00:02.646Z level=DEBUG msg=sendIoctl kind=0 cmd=GET_VAR len=15 time=1970-01-01T00:00:02.656Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:02.657Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=15 time=1970-01-01T00:00:02.668Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:02.669Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=10 time=1970-01-01T00:00:02.680Z level=DEBUG msg=rx len=258 hdr=ctl time=1970-01-01T00:00:02.681Z level=DEBUG msg=sendIoctl kind=0 cmd=GET_VAR len=14 time=1970-01-01T00:00:02.692Z level=DEBUG msg=rx len=258 hdr=ctl time=1970-01-01T00:00:02.693Z level=DEBUG msg=MAC mac=28:cd:c1:05:4d:bb time=1970-01-01T00:00:02.693Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=20 time=1970-01-01T00:00:02.725Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:02.825Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_ANTDIV len=4 time=1970-01-01T00:00:02.836Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:02.837Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=15 time=1970-01-01T00:00:02.838Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:02.939Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19 time=1970-01-01T00:00:02.950Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.051Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=15 time=1970-01-01T00:00:03.062Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.162Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=46 time=1970-01-01T00:00:03.173Z level=DEBUG msg=rx len=258 hdr=ctl time=1970-01-01T00:00:03.274Z level=DEBUG msg=sendIoctl kind=2 cmd=UP len=0 time=1970-01-01T00:00:03.285Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.386Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_GMODE len=4 time=1970-01-01T00:00:03.397Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.398Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_BAND len=4 time=1970-01-01T00:00:03.409Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.510Z level=DEBUG msg=set_power_management mode=PowerSave time=1970-01-01T00:00:03.510Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=18 time=1970-01-01T00:00:03.521Z level=DEBUG msg=rx len=258 hdr=ctl time=1970-01-01T00:00:03.522Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=15 time=1970-01-01T00:00:03.533Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.534Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=16 time=1970-01-01T00:00:03.545Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.546Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=17 time=1970-01-01T00:00:03.557Z level=DEBUG msg=rx len=257 hdr=ctl time=1970-01-01T00:00:03.557Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_PM len=4 time=1970-01-01T00:00:03.568Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.569Z level=INFO msg=Init:done took=1.565548s time=1970-01-01T00:00:03.570Z level=INFO msg=cyw43439:Init duration=1.566397s time=1970-01-01T00:00:03.571Z level=INFO msg="joining WPA secure network" ssid=Patoniato passlen=15 time=1970-01-01T00:00:03.571Z level=INFO msg=joinWpa2 ssid=Patoniato len(pass)=15 time=1970-01-01T00:00:03.572Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19 time=1970-01-01T00:00:03.583Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.584Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC len=4 time=1970-01-01T00:00:03.595Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.596Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=23 time=1970-01-01T00:00:03.607Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.608Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=31 time=1970-01-01T00:00:03.619Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.619Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=27 time=1970-01-01T00:00:03.630Z level=DEBUG msg=rx len=259 hdr=ctl time=1970-01-01T00:00:03.731Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WSEC_PMK len=68 time=1970-01-01T00:00:03.742Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.743Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_INFRA len=4 time=1970-01-01T00:00:03.754Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.755Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_AUTH len=4 time=1970-01-01T00:00:03.756Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.757Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_WPA_AUTH len=4 time=1970-01-01T00:00:03.768Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:03.768Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_SSID len=36 time=1970-01-01T00:00:03.779Z level=DEBUG msg=rx len=256 hdr=ctl time=1970-01-01T00:00:07.021Z level=DEBUG msg=rx len=261 hdr=asyncev time=1970-01-01T00:00:07.022Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:07.023Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1 time=1970-01-01T00:00:07.024Z level=DEBUG msg=rx len=259 hdr=asyncev time=1970-01-01T00:00:07.025Z level=DEBUG msg=rx len=261 hdr=asyncev time=1970-01-01T00:00:07.025Z level=DEBUG msg=rx len=258 hdr=asyncev time=1970-01-01T00:00:07.026Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:07.027Z level=DEBUG msg=rx len=261 hdr=asyncev time=1970-01-01T00:00:07.028Z level=INFO msg=rxEvent event=SET_SSID status=0 reason=0 flags=0 dev.linkstate=2 time=1970-01-01T00:00:07.029Z level=DEBUG msg=rx len=260 hdr=asyncev time=1970-01-01T00:00:07.030Z level=INFO msg="wifi join success!" mac=28:cd:c1:05:4d:bb ```
pnunn commented 2 days ago

Thanks so much for getting back to me on this Patricio. I think that the system I'm trying to connect to is configured as you require. (Shot attached).

Screenshot_24

The SSID is correct and the password seems to be passed correctly as well (from some debug code).

I can't connect to an open network here either, but the mobile phone hot spot works perfectly.

Is there any more debugging I can turn on?

soypat commented 1 day ago

Yes, in examples you can set log level to the lowest level (trace) by setting Level here: https://github.com/soypat/cyw43439/blob/a62ee4027d66bc0f92d4f7bc3902627fb8e6ed6b/examples/dhcp/main.go#L19

Set the Level field of slog.HandlerOptions to -99 to enable all logging.

pnunn commented 1 day ago

OK, starting to get some more information now. I did a dump of an attempt to connect to my home wifi and to my phone hotspot (attache, home wifi net.log, phone hotspot.log).

The files are the same up to line 569 in the net.log which matches to 591 in the hotspot log.

Here the hotspot connects, the home network throws

time=1970-01-01T00:00:06.758Z level=INFO msg=rxEvent event=AUTH status=0 reason=0 flags=0 dev.linkstate=1 570 │ time=1970-01-01T00:00:06.758Z level=DEBUG-3 msg=tryPoll:start 571 │ time=1970-01-01T00:00:06.759Z level=DEBUG-3 msg=f2PacketAvail:start 572 │ time=1970-01-01T00:00:06.760Z level=ERROR msg="wifi join faled" err="join:wait for ssid" 573 │ time=1970-01-01T00:00:11.761Z level=INFO msg=joinWpa2 ssid=EarlNetNew len(pass)=12 574 │ time=1970-01-01T00:00:11.761Z level=DEBUG-2 msg=set_iovar var=ampdu_ba_wsize 575 │ time=1970-01-01T00:00:11.762Z level=DEBUG-2 msg=sendIoctlWait:start 576 │ time=1970-01-01T00:00:11.763Z level=DEBUG-2 msg=log_read 577 │ time=1970-01-01T00:00:11.765Z level=DEBUG-1 msg="000004.317 wl0: JOIN: authentication failure, no ack" 578 │ time=1970-01-01T00:00:11.765Z level=DEBUG-2 msg=waitForCredit:start 579 │ time=1970-01-01T00:00:11.766Z level=DEBUG-2 msg=sendIoctl:start 580 │ time=1970-01-01T00:00:11.767Z level=DEBUG msg=sendIoctl kind=2 cmd=SET_VAR len=19 581 │ time=1970-01-01T00:00:11.768Z level=DEBUG-2 msg=pollForIoctl:start 582 │ time=1970-01-01T00:00:11.768Z level=DEBUG-3 msg=tryPoll:start

The password for the home network ends in a % character, could that be causing issues?

P. hotspot.log net.log

pnunn commented 1 day ago

OK, I set a second SSID and gave it a password without any punctuation and it connected.

Nope.. more testing and it seems to be the AES encryption that's causing the issue. Turn it from Auto to AES only, and it fails to auth every time.

P.

soypat commented 1 day ago

So the % punctuation makes AES fail every time?

pnunn commented 1 day ago

No, sorry to confuse things. I don't think the % has anything to do with it, its the AES that seems to be the problem.

If I set the encryption to auto it connects happily.