Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A395E17BAB for ; Mon, 25 Mar 2024 17:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711387573; cv=none; b=SvzszFPbDtho3reAY4CocZw0MI0qQcvybyHj/jeRwkNN+w50wTMcjEZpsVpnCYDnVqpCaFG4gcJrjioowLbRd6EOw2vj75OTjXBN6fWWVvPORgtYJ2/23vJWwk6zuW8p8IEllOJwRVD5Oeai1QU9xV28UPUre+/iwmX3xXCzLfA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711387573; c=relaxed/simple; bh=4c96cP52Jcisq4O2sXae4VvdzUShSPS8ypLt+FY9+gk=; h=From:Content-Type:Date:Cc:To:MIME-Version:Message-ID:Subject; b=Tv1VG7wK3hlf/DB9ye3neZTWvHJSGXBcHU0gBb04ZBF0MsfQHvX6WOdr/TGSqoNp55voZNmYSf0bX0s5KzdCy2dzPjdkerEwWznT0fWp2z1NuCFLuNMFqLnHwDdOQeOcXr69IY+pS6FnM2vvYnzTZ+JEe9lwC+3MUNTzDG2rVdE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Received: from harlem.collaboradmins.com (harlem.collaboradmins.com [IPv6:2a01:4f8:1c0c:5936::1]) by madrid.collaboradmins.com (Postfix) with ESMTP id 60C8A37810C0; Mon, 25 Mar 2024 17:26:09 +0000 (UTC) From: "Jeremy Whiting" Content-Type: multipart/mixed; boundary="----=_=-_OpenGroupware_org_NGMime-2602023-1711387569.171470-2------" X-Forward: 127.0.0.1 Date: Mon, 25 Mar 2024 17:26:09 +0000 Cc: "Edmund Smith" , "Alvaro Soliverez" To: iwd@lists.linux.dev Precedence: bulk X-Mailing-List: iwd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <27b427-6601b380-b-46ef6f80@167641064> Subject: ios hotspot fix User-Agent: SOGoMail 5.10.0 ------=_=-_OpenGroupware_org_NGMime-2602023-1711387569.171470-2------ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Length: 1631 Hello, In recent testing it has been found that when trying to connect to an i= os hotspot some messages are missed by iwd. It seems to be a timing iss= ue, doesn't happen every time, but does happen often enough to be a pro= blem. In testing the device fails to connect more than half of the atte= mpts. Ed Smith has created a patch that seems to fix the problem here. I've a= ttached the patch after rebasing on iwd master. Here's a bit of background and explanation: iwd has difficulty in connecting to iOS hotspots as of 2.7 (and not fixed according to our testing as of 2.16 - latest at the time this is done). This is because of several factors: The iOS hotspot does not repeat its initial EAPOL challenge, where most APs will. The iOS hotspot is not reactive to EAPOL-Start (client request to be challenged); it sends exactly one challenge, and then the connection times out. The iOS hotspot sends its challenge very quickly, more quickly than iwd is prepared for. iwd is not ready to receive the challenge packet before the association event is fired by the kernel's wifi stack, but the iOS hotspot's challenge packet consistently arrives before this. This patch moves iwd's frame listener registration for EAPOL back to the authenticate event fired by the kernel. At this point, the necessary details about what kind of connection we expect to have (e.g. are we an AP) are available, but it's not possible for any plausible EAPOL packet to arrive yet (because authenticate requires us to take action - EAPOL happens after association, which can't happen before we respond to authenticate). thanks, Jeremy ------=_=-_OpenGroupware_org_NGMime-2602023-1711387569.171470-2------ Content-Type: text/x-patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Register-EAPOL-frame-listeners-earlier.patch" Content-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