($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Daniel Barter <danielbarter@gmail.com>
To: James Prestwood <prestwoj@gmail.com>
Cc: Denis Kenzior <denkenz@gmail.com>, iwd@lists.linux.dev
Subject: Re: roaming issues on a residential LAN with multiple APs
Date: Wed, 29 Nov 2023 09:47:17 -0800	[thread overview]
Message-ID: <CAJODeCCVvGx6FkJKeczSukVcsKs_ohmRA_tY39nyJZaUbKS2vQ@mail.gmail.com> (raw)
In-Reply-To: <437c600a-3dad-4a78-883c-c2cc2939ba00@gmail.com>

Thanks James, that does seem like it is related.

I have done a few more tests on the machine (booting from various
nixos iso images):

6.1, iwd: no roaming
6.1, wpa_supplicant: no roaming
6.2, wpa_supplicant: no roaming
6.2, iwd: no roaming
6.6, iwd: no roaming

i have a Debian-12, 6.1 machine with the same network card running
wpa_supplicant that is able to roam, which suggests it may be some
issue with how the kernel is configured.

here is some dmesg output if in case it is useful:

$ dmesg | grep wifi
[    3.113334] iwlwifi 0000:aa:00.0: enabling device (0000 -> 0002)
[    3.130735] iwlwifi 0000:aa:00.0: Detected crf-id 0x400410, cnv-id
0x400410 wfpm id 0x80000000
[    3.130992] iwlwifi 0000:aa:00.0: PCI dev 2725/0024, rev=0x420, rfid=0x10d000
[    3.180360] iwlwifi 0000:aa:00.0: api flags index 2 larger than
supported by driver
[    3.180388] iwlwifi 0000:aa:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.41
[    3.180877] iwlwifi 0000:aa:00.0: loaded firmware version
83.e8f84e98.0 ty-a0-gf-a0-83.ucode op_mode iwlmvm
[    3.586622] iwlwifi 0000:aa:00.0: Detected Intel(R) Wi-Fi 6 AX210
160MHz, REV=0x420
[    3.594294] iwlwifi 0000:aa:00.0: WRT: Invalid buffer destination
[    3.753298] iwlwifi 0000:aa:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[    3.753319] iwlwifi 0000:aa:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    3.753332] iwlwifi 0000:aa:00.0: WFPM_AUTH_KEY_0: 0x90
[    3.753343] iwlwifi 0000:aa:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    3.754727] iwlwifi 0000:aa:00.0: loaded PNVM version 181407b3
[    3.770223] iwlwifi 0000:aa:00.0: Detected RF GF, rfid=0x10d000
[    3.840925] iwlwifi 0000:aa:00.0: base HW address: f4:7b:09:9c:04:3c
[    3.882078] iwlwifi 0000:aa:00.0: WRT: Invalid buffer destination
[    4.041703] iwlwifi 0000:aa:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[    4.041789] iwlwifi 0000:aa:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    4.041834] iwlwifi 0000:aa:00.0: WFPM_AUTH_KEY_0: 0x90
[    4.041847] iwlwifi 0000:aa:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0
[    4.148311] iwlwifi 0000:aa:00.0: Registered PHC clock:
iwlwifi-PTP, with index: 0
[    5.616569] iwlwifi 0000:aa:00.0: WRT: Invalid buffer destination
[    5.786287] iwlwifi 0000:aa:00.0: WFPM_UMAC_PD_NOTIFICATION: 0x20
[    5.786351] iwlwifi 0000:aa:00.0: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    5.786364] iwlwifi 0000:aa:00.0: WFPM_AUTH_KEY_0: 0x90
[    5.786382] iwlwifi 0000:aa:00.0: CNVI_SCU_SEQ_DATA_DW9: 0x0






On Wed, Nov 29, 2023 at 4:49 AM James Prestwood <prestwoj@gmail.com> wrote:
>
> Hi Daniel,
>
> On 11/26/23 21:00, Denis Kenzior wrote:
> > Hi Daniel,
> >
> > On 11/25/23 18:32, Daniel Barter wrote:
> >> here are my logs:
> >> https://gist.github.com/danielbarter/65ddf6aee78546a0e8f9e2d3af65308c
> >>
> >> notice that this is a mix of iwd 2.4 (my distro default) and iwd 2.8.
> >>
> >> Default roaming thresholds are in the 70s right? I am getting down to
> >> -90dBm without a roam happening.
> >
> > Default thresholds are -70 db for 2.4 Ghz and -76 for 5Ghz.
> >
> > I'm not seeing any CQM events in your log, except for this one:
> >
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_mlme_notify()
> > MLME notification Notify CQM(64)
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_cqm_event()
> > Beacon lost event
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_mlme_notify()
> > MLME notification Notify CQM(64)
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_cqm_event()
> > Beacon lost event
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_link_notify()
> > event 16 on ifindex 3
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_mlme_notify()
> > MLME notification Del Station(20)
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_mlme_notify()
> > MLME notification Deauthenticate(39)
> > Nov 24 16:34:15 jasper iwd[768]:
> > src/netdev.c:netdev_deauthenticate_event()
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_mlme_notify()
> > MLME notification Disconnect(48)
> > Nov 24 16:34:15 jasper iwd[768]: src/netdev.c:netdev_disconnect_event()
> > Nov 24 16:34:15 jasper iwd[768]: Received Deauthentication event,
> > reason: 4, from_ap: false
> > Nov 24 16:34:15 jasper iwd[768]:
> > src/station.c:station_disconnect_event() 3
> > Nov 24 16:34:15 jasper iwd[768]: src/station.c:station_disassociated() 3
> > Nov 24 16:34:15 jasper iwd[768]:
> > src/station.c:station_reset_connection_state() 3
> > Nov 24 16:34:15 jasper iwd[768]:
> > src/station.c:station_roam_state_clear() 3
> > Nov 24 16:34:15 jasper iwd[768]: src/station.c:station_enter_state()
> > Old State: connected, new state: disconnected
> >
> > Basically a lost-beacon event comes in (twice for some reason) and
> > we're disconnected almost instantly after that.  There's no other CQM
> > events that would indicate low signal strength where iwd can actually
> > take some action.  Try setting a more aggressive roam threshold and
> > see if that helps?  man 5 iwd.config, RoamThreshold and RoamThreshold5G.
> >
> >>
> >> kernel version is 6.6.0.
> >>
> >
> > It could also be the kernel folks made some change that broke this.
> > For example, this looks to be touching the general area:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git/commit/?id=37c20b2effe987b806c8de6d12978e4ffeff026f
> >
> >
> > Try reverting or using a version prior to that commit?
>
> It does appear _something_ is wrong with QCM notifications in the
> kernel. There was an RFC fix with one user commenting that roaming in
> wpa_supplicant is broken as of 6.1. I am able to roam fine on ath11k
> with a stock 6.2 Ubuntu kernel so not sure if its only some drivers or what.
>
> https://lore.kernel.org/linux-wireless/20231106231715.3a506ac2dadb.Ie774b85b9d4ff934a1236e77096cb9c6c9fe6561@changeid/
>
> Thanks,
>
> James
>

      reply	other threads:[~2023-11-29 17:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-25 19:46 roaming issues on a residential LAN with multiple APs Daniel Barter
2023-11-25 23:28 ` Denis Kenzior
2023-11-26  0:32   ` Daniel Barter
2023-11-27  5:00     ` Denis Kenzior
2023-11-29 12:49       ` James Prestwood
2023-11-29 17:47         ` Daniel Barter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJODeCCVvGx6FkJKeczSukVcsKs_ohmRA_tY39nyJZaUbKS2vQ@mail.gmail.com \
    --to=danielbarter@gmail.com \
    --cc=denkenz@gmail.com \
    --cc=iwd@lists.linux.dev \
    --cc=prestwoj@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).