Content-Type: multipart/mixed; boundary="===============4542587096862619000==" MIME-Version: 1.0 From: Denis Kenzior Subject: Re: Possible MFP problem Date: Thu, 02 Apr 2020 00:47:55 -0500 Message-ID: <58b24d82-083b-fbca-4cb0-a7ff56b48538@gmail.com> In-Reply-To: <1260039796.1141537.1585767703945@mail.yahoo.com> List-Id: To: iwd@lists.01.org --===============4542587096862619000== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Albert, On 4/1/20 2:01 PM, Albert Pretorius wrote: > Hi > I was on IRC earlier about this problem: my new ZyXel router (and aruba = > access point) does not connect: > = > src/netdev.c:netdev_control_port_frame_cb() 0 > New Key for Group Mgmt failed for ifindex: 4 > = So from the pcap log I was able to discern that the kernel is replying = with a -EINVAL here, which suggests that some of the info we're getting = from the AP is likely invalid. I have heard reports of some routers sending a key index that is = improperly formatted (i.e. in big endian and not little endian). I = think recent versions of wpa_s have a workaround for this. If you're able, can you apply the attached patch on top of iwd (and ell) = git HEAD and tell me if this solves this issue? > which works but with the caveat that I now have to manually do iwctl = > connect and type the password in. strange. This setting should have no effect on iwctl or any other = behavior. It simply picks whether BIP is advertised as a local = capability to the AP. Regards, -Denis --===============4542587096862619000== Content-Type: text/x-patch MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-netdev-work-around-APs-that-send-igtk-in-big-endian.patch" RnJvbSBmZDY4MjBkZTQ3Yjc1NjZlMmZhOWU2ZjExZWJlMzVlZmE5NGM0Y2ZhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBEZW5pcyBLZW56aW9yIDxkZW5rZW56QGdtYWlsLmNvbT4KRGF0 ZTogVGh1LCAyIEFwciAyMDIwIDAwOjQ1OjU1IC0wNTAwClN1YmplY3Q6IFtQQVRDSF0gbmV0ZGV2 OiB3b3JrIGFyb3VuZCBBUHMgdGhhdCBzZW5kIGlndGsgaW4gYmlnIGVuZGlhbgoKLS0tCiBzc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