ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
kidplayer666 has quit [Quit: Connection closed for inactivity]
pounce has quit [Ping timeout: 480 seconds]
pounce has joined #asahi-alt
possiblemeatball has joined #asahi-alt
hightower3 has joined #asahi-alt
hightower2 has quit [Ping timeout: 480 seconds]
jeisom has quit [Read error: Connection reset by peer]
jeisom has joined #asahi-alt
jeisom has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Quit: Quit]
kidplayer666 has joined #asahi-alt
veebop has joined #asahi-alt
pjakobsson_ has quit [Ping timeout: 480 seconds]
kidplayer666 has quit [Quit: Connection closed for inactivity]
kidplayer666 has joined #asahi-alt
<yuka> my wpa_supplicant keeps disconnecting from my wifi with kernel asahi-6.6-2, does anyone else have that?
<yuka> "wlp1s0f0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1"
<yuka> this is a regression from asahi-5.5-29
<mps> yuka: don't know about wpa_s but iwd works fine with 6.6-2
<yuka> it only happens with my unifi wifi
<yuka> not with pixel android hotspot
<j`ey> yuka: DannyB did most (all?) of the changes to the brcm driver recently, I invited him here, so maybe he can help at some point if you dont fix it beofre then
<yuka> I'm rebuilding my kernel with BRCMDBG y BRCM_TRACING y now :)
kloenk has joined #asahi-alt
jeisom has joined #asahi-alt
jeisom has quit [Quit: Leaving]
DannyB has joined #asahi-alt
john-cabaj has joined #asahi-alt
<DannyB> logs?
<yuka> my home wifi (unifi) is being disconnected once per minute: https://termbin.com/mpi3
<DannyB> What kind of auth do you use?
<yuka> WPA2 PSK
<yuka> I think
<DannyB> This is fedora 39?
<DannyB> or 38?
<DannyB> I ask becasue it's using wpa_supplicant which is weird
<yuka> it's not fedora
<yuka> which is why we are in #asahi-alt :)
<DannyB> ah
<DannyB> oaky
<yuka> NixOS
<yuka> at least my wpa_supplicant.conf only has an "ssid=" and "key=" for this wifi, so no sae_password or anything
<DannyB> Okay, so what's happening is that there is some bad interaction with the external supplicant. Can you recompile a kernel? If so i can make this very easy to debug. If not, i can figure it out but it will take longer
<yuka> I can recompile the kernel
<DannyB> Can you set the options BRCM_TRACING and BRCMDBG in your kernel config, and then shove options brcmfmac debug=1097734 in /etc/modprobe.d/brcmfmac.conf
<DannyB> That will tell me what commands it's sending back and forth tot he chip and what the response is
<yuka> good that I already rebuilt with those options :)
<DannyB> oh
<DannyB> then yeah you can just rmmod it and re-modprobe it
<DannyB> with those options
possiblemeatball has joined #asahi-alt
<DannyB> i think what is happening is that the management frame handling is screwed up somehow
<DannyB> still
<j`ey> DannyB: thanks for joining!
<DannyB> Oh, the patch to handle management frames properly never made it into the branch
<DannyB> oh no it didn, looking at wrong branch
<DannyB> oh, i know what it is
<DannyB> i think
<DannyB> give me a sec i'll send you a patch
<yuka> perfect, I'll try that
<DannyB> actually one sec that's not complete, i forgot a function or two
<DannyB> i forgot to add the external auth function on the branch
<DannyB> try
<DannyB> instead
<yuka> do you have a base commit for that?
<DannyB> This is against the current asahi-wip branch
<DannyB> FWIW, it may not be enough, but if that's the case, i know what is missing :)
<yuka> does not apply cleanly to asahi-wip. last item in brcmf_cfg80211_ops is .del_pmk and not .set_cqm_rssi_config
<yuka> but I am building it now
<yuka> ^ this does actually apply
pounce has quit [Ping timeout: 480 seconds]
<DannyB> got it
<DannyB> oh
<DannyB> i know why
<DannyB> yes that's my fault
<DannyB> i have patches i haven't sent yet for that iece
<DannyB> that are under this
<yuka> fails to compile: https://termbin.com/kw5p
<DannyB> let me rebase it myself against asahi-wip and paste a new one
<yuka> yes, thanks!
pounce has joined #asahi-alt
<DannyB> that should apply to asahi-wip
<DannyB> i hope
<DannyB> ;)
possiblemeatball has quit [Remote host closed the connection]
possiblemeatball has joined #asahi-alt
<yuka> it does apply
possiblemeatball has quit [Remote host closed the connection]
<DannyB> As an aside
<DannyB> you should get out of the land of wpa_supplicant if you can.
<DannyB> One thing you are losing by doing this is that is not setting up PSK offload
<DannyB> i think i added code that may turn it on in this case, but you are going to discover whether it works or not :)
<yuka> migrating the config is work
<yuka> sadly it doesn't work
<yuka> I'm still being disconnected
<DannyB> Send me the logs
<DannyB> so it acutally connected this time
<DannyB> so progress
<DannyB> it looks like it's not getting the key at this point
<yuka> it's the same behavior as without the patch: it connects, stays connected, and after about one minute disconnects with "reason=3 locally_generated=1"
pounce has quit [Ping timeout: 480 seconds]
pounce has joined #asahi-alt
<DannyB> Yes, but that's not what was really happening
<DannyB> you are looking at what wpa supplicant is saying
<DannyB> i'm looking at what the chip is saying :)
<DannyB> the chip before was saying it couldn't handle external station auth
<DannyB> that is what the Nov 28 16:20:29 m1 wpa_supplicant[1433]: nl80211: kernel reports: Registration to specific type not supported
<DannyB> means
<DannyB> and so it was not even trying to hande the management frames to wpa_supplicant
<DannyB> Can you set the debug options to 1098758 and regenerate the log
pounce has quit [Ping timeout: 480 seconds]
pounce has joined #asahi-alt
pounce has quit [Ping timeout: 480 seconds]
<DannyB> okay, this is odd
<DannyB> but i think i can fix it
pounce has joined #asahi-alt
<DannyB> so what is happening is acutally that wpa_supplicant is asking us to disocnnect
<yuka> but why is it doing that with one kernel version and not another?
<DannyB> So i think maybe this thing by marcan broke it by accident
<DannyB> because it's the only real change i see
<DannyB> the patch i gave you would work if supplicant was doing it one way but it's not
<DannyB> and the way it's doing it this is the only code path difference
<DannyB> let's give it a shit
<DannyB> shot
pounce has quit [Ping timeout: 480 seconds]
<yuka> DannyB: with this patch it does not manage to establish the connection in the first place. https://termbin.com/ce53
<yuka> At this point it might be easier for me to move to iwd, however other users of non-Fedora asahi might run into it as well
<yuka> I'm also patient and thankful if someone wants to continue debugging
<DannyB> Yeah what the supplicant is doing doesn' make any sense
<DannyB> what is happening is that we connect
<DannyB> and report we connected
<DannyB> and everything is fine
<DannyB> and it sends a deauth message for no obvious reason
<DannyB> so we disconnect
<DannyB> i don't get it
<DannyB> Most of this code was broken in past kernels
<DannyB> and wpa supplicant was getting lucky somehow
<DannyB> it's now not lucky
<yuka> oef
<DannyB> The last thig i would try is the following, which reverts support for more auth suites
<janneg> fedora asahi uses wpa-supplicant but is patched. I'm only aware of patches for sae offload though
<mps> how/where I can see packaging scripts/source for mesa-asahi on gentoo
<mps> j`ey: thanks
<mps> oh, they also use old one
<mps> ah, and one of newest 20231120
<mps> good
<j`ey> there's 20231126 now too
<j`ey> hm, failed to build for fedora though
<mps> I've built 20231126 for alpine and it works with some issues
<mps> ah, ok, understand
<mps> yes, I'm using 20231126 two days now
pounce has joined #asahi-alt
<mps> but don't want to merge to alpine because I see some issues
<DannyB> janneg: There is nothing obvious in why the wpa_supplicant is choosing to disconnect in his case. With the patches (except the last one), it connects successfully, we report a successful connection, then the *suppllicant* decides to disconnect us anyway and we disconnect. it is not the driver deciding to disconnect on its own. The reason it gives us "DEAUTH_LEAVING" - IE it is choosing to leave this BSS for some other
<DannyB> so it's extra weird
<DannyB> because i doubt there are local patches tof edora that affect this
<DannyB> the exact sequence of events post-patches is:
<DannyB> driver auth and report success
<DannyB> supplicant tells driver to auth
<DannyB> Supplicant reports connect success
<DannyB> ...
<DannyB> Supplicant asks us to change station
<DannyB> Supplicant asks us to deauth and disconnect
<DannyB> I can't see anything wrong in the driver logs - we are setting the key right, we are authing and reporting success, etc
pounce has quit [Ping timeout: 480 seconds]
<chadmed> mps: we try not to pull in updates that are unreleased unless absolutely necessary since its just bm to package and distribute unreleased software
<chadmed> new tags for the kernel, mesa and friends that are earmarked for release get staged locally and i test them before pushing to the remote
<mps> chadmed: I do similarly for alpine, so I understand you
<mps> I test all tags locally first and if I don't see anything problematic I then push
asimpson has quit [Read error: Connection reset by peer]
d4ve has quit [Read error: Connection reset by peer]
signaryk has quit [Read error: Connection reset by peer]
alethkit has quit [Write error: connection closed]
handlerug has quit [Write error: connection closed]
probie has quit [Write error: connection closed]
okt has quit [Write error: connection closed]
tsujp has quit [Write error: connection closed]
pldtf has quit [Write error: connection closed]
asimpson has joined #asahi-alt
probie has joined #asahi-alt
tsujp has joined #asahi-alt
okt has joined #asahi-alt
signaryk has joined #asahi-alt
handlerug has joined #asahi-alt
alethkit has joined #asahi-alt
pldtf has joined #asahi-alt
d4ve has joined #asahi-alt
jeisom has joined #asahi-alt