All of lore.kernel.org
 help / color / mirror / Atom feed
From: KeithG <ys3al35l@gmail.com>
To: iwd@lists.01.org
Subject: Re: ap mode problem
Date: Mon, 10 May 2021 17:22:54 -0500	[thread overview]
Message-ID: <CAG17S_N_wNs17CCkr-fDoN4qdDCZZVSw1Yz4yRzzTFM4cJiPwQ@mail.gmail.com> (raw)
In-Reply-To: <a0872cff318c23d5d6383cb2308129283e21b6fc.camel@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4384 bytes --]

On Mon, May 10, 2021 at 12:56 PM James Prestwood <prestwoj@gmail.com> wrote:
>
> Hi Keith,
>
> > I am using a pre-packages Arch Linux iwd package. It reports 1.14-1.
> > I
> > have built iwd-git, but am trying to use the Arch current if
> > possible.
>
> Did you notice the same behavior? Or were you referring to some
> previous build?
>
> If you are able to build and disable optimization (dsiable-optimization) that would tell us whether this is a compiler
> issue or not. Based on what I have seen I am certain it is, but it
> would tell us definitively.
>
> Finding out exactly where the compiler has gone awry is the difficult
> part since I cannot reproduce. It may require me finding my old RPi and
> getting that set up again.
>
> I know the Arch package maintainer is around sometimes (on IRC at
> least). Maybe they have some insight into what GCC version is being
> used? Ill try finding them on IRC.
>
> >
> > This is what is said today when I tried to connect:
> >
> > May 10 11:35:38 deskrune iwd[4565]: AP Probe Request from
> > f8:1f:32:39:fe:32
> > May 10 11:35:38 deskrune iwd[4565]: AP Probe Response delivered OK
> > May 10 11:35:38 deskrune iwd[4565]: AP Authentication from
> > f8:1f:32:39:fe:32
> > May 10 11:35:38 deskrune iwd[4565]: AP Authentication frame 2 ACKed
> > by STA
> > May 10 11:35:38 deskrune iwd[4565]: AP Association Request from
> > f8:1f:32:39:fe:32
> > May 10 11:35:38 deskrune iwd[4565]: AP (Re)Association Response ACK
> > received
> > May 10 11:35:40 deskrune iwd[4565]: 4-Way handshake failed for
> > ifindex: 3, reason: 15
> >
> > When I run the test-eapol, I get:
> > # ./test-eapol
> > TEST: /EAPoL Key/Key Frame 1
> > TEST: /EAPoL Key/Key Frame 2
> > TEST: /EAPoL Key/Key Frame 3
> > TEST: /EAPoL Key/Key Frame 4
> > TEST: /EAPoL Key/Key Frame 5
> > TEST: /EAPoL Key/Key Frame 6
> > TEST: /EAPoL Key/Key Frame 7
> > TEST: /EAPoL Key/Key Frame 8
> > TEST: /EAPoL Key/Key Frame 9
> > TEST: /EAPoL Key/Key Frame 10
> > TEST: /EAPoL Key/Key Frame 11
> > TEST: /EAPoL Key/Key Frame 12
> > TEST: /EAPoL Key/Key Frame 13
> > TEST: /EAPoL Key/Key Frame 14
> > TEST: /EAPoL Key/Key Frame 15
> > TEST: /EAPoL Key/Key Frame 16
> > TEST: /EAPoL Key/Key Frame 17
> > TEST: /EAPoL Key/Key Frame 18
> > TEST: /EAPoL Key/Key Frame 19
> > TEST: /EAPoL Key/Key Frame 20
> > TEST: /EAPoL Key/Key Frame 21
> > TEST: /EAPoL Key/Key Frame 22
> > TEST: /EAPoL Key/Key Frame 23
> > TEST: /EAPoL Key/Key Frame 24
> > TEST: /EAPoL Key/Key Frame 25
> > TEST: /EAPoL Key/Key Frame 26
> > TEST: /EAPoL Key/Key Frame 27
> > TEST: /EAPoL Key/Key Frame 28
> > TEST: /EAPoL Key/Key Frame 29
> > TEST: /EAPoL Key/Key Frame 30
> > TEST: /EAPoL Key/Key Frame 31
> > TEST: /EAPoL Key/Key Frame 32
> > TEST: /EAPoL Key/MIC Test 1
> > TEST: /EAPoL Key/MIC Test 2
> > TEST: /EAPoL Key/Calculate MIC Test 1
> > TEST: EAPoL/WPA2 4-Way Handshake
> > TEST: EAPoL/WPA2 4-Way & GTK Handshake
> > TEST: EAPoL/WPA 4-Way & GTK Handshake
> > TEST: EAPoL/WPA2 PTK State Machine
> > TEST: EAPoL IGTK & 4-Way Handshake
> > TEST: EAPoL/WPA2 PTK & GTK State Machine
> > TEST: EAPoL/WPA PTK & GTK State Machine Test 1
> > TEST: EAPoL/WPA PTK & GTK State Machine Test 2
> > TEST: EAPoL/WPA2 Retransmit Test
> > TEST: EAPoL/FT-Using-PSK 4-Way Handshake
> > TEST: EAPoL/Supplicant+Authenticator 4-Way Handshake
> > test-eapol: unit/test-eapol.c:3698: eapol_ap_sta_handshake_test:
> > Assertion `s.ap_success && s.sta_success' failed.
> > Aborted (core dumped)
> >
> > Regards,
> >
> > Keith
>
> Thanks,
> James
>
>
I believe they are using GCC 10.2.0 as am I. I rebuilt the iwd-git AUR
with the addition of the suggested 'disable-optimization'. I installed
it and restarted the iwd service and get the same result with the
test-eapol:
...
TEST: EAPoL/FT-Using-PSK 4-Way Handshake
TEST: EAPoL/Supplicant+Authenticator 4-Way Handshake
test-eapol: unit/test-eapol.c:3698: eapol_ap_sta_handshake_test:
Assertion `s.ap
_success && s.sta_success' failed.
Aborted (core dumped)

**BUT** now that I an using the latest iwd-git without optimizations
and try to connect to it in AP mode, I connect. Also if I let connman
use it as a tether, I also connect. If I re-build iwd-git 'with
optimizations' and try again, it fails.

This is on an "Raspberry Pi Model B Plus Rev 1.2"

Keith

  reply	other threads:[~2021-05-10 22:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 16:51 ap mode problem KeithG
2021-04-21 19:19 ` James Prestwood
2021-04-26 18:58   ` KeithG
2021-04-26 19:03     ` KeithG
2021-04-26 19:24       ` James Prestwood
2021-04-26 21:26         ` KeithG
2021-04-26 21:53           ` James Prestwood
2021-04-26 22:27             ` KeithG
2021-04-26 22:37               ` James Prestwood
2021-04-27 21:56                 ` KeithG
2021-05-10 14:47                   ` KeithG
2021-05-10 16:10                     ` James Prestwood
2021-05-10 17:46                       ` KeithG
2021-05-10 17:56                         ` James Prestwood
2021-05-10 22:22                           ` KeithG [this message]
2021-05-10 23:27                             ` James Prestwood

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=CAG17S_N_wNs17CCkr-fDoN4qdDCZZVSw1Yz4yRzzTFM4cJiPwQ@mail.gmail.com \
    --to=ys3al35l@gmail.com \
    --cc=iwd@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.