Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp155606ybs; Tue, 26 May 2020 06:08:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH+yqYD7BIN8kXpZi/tCHaWgEoLo7c2ZZ5jMXH9GsSuVJhO7kGB3p12iGi7WME5wo5fSvN X-Received: by 2002:a05:6402:17a3:: with SMTP id j3mr20517064edy.137.1590498510090; Tue, 26 May 2020 06:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590498510; cv=none; d=google.com; s=arc-20160816; b=hEwT9Hwz9TNFKXhdCj2ZSKVvE1nb+syLABKcqC6712I1toViP+zv5J60zfRL7Dk4ae iCr8trrbA91ulw/VVZ4fdA/u3AHrMr5xuXZMsermlmPpguQV7HIUW2JAz3jyDnFLR1RI a08JatMVSGLyAxKWEbNQY9AYw7t3EaeuZxREM8khD05GsAXNiviIO4Y+1d4HbayqXLqd 7QyOHYKiQTTg+q76EBJCzrOpMjtzC0HRrqN/98YH3eSSCz+NSwueUutffwmqaiQNQvDZ uPbA/KCE8S+u+CYkGRXNVv7Itz1flIV4GQhAdDRC+6dcZYG56rrxtNN4ZG+7LVZ6C6t7 nxeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=4U1PPTAWdGa6ftiIaTanHqkADH4ns6B8BZtqs4th/9M=; b=H8of9Q08XvtlcRQB8URuwWsydujN0cLShPQZ/yipiAwQzrKil1Aw0vgDsWsZTs2YXP XMTv8mp2bnLEltfJuzVmOnVFYBt7zmCCfYIs13HswIjyWF2Jhbi+vty5dEHvlZJbB2oB qtix3QIdj53vFDk+/yhAH+SkQswufou5cNmT0uuNz4rcMDT3fYYiUPctK9YFZWtq75Pj YUojh92cIeWurg9aSVDa5BrYroBzN3giCCaw/5MeaqlPGl8SF78xktlUyyeEE3s81bwv CYzJLtAkvOzlQoiEsrZO9h6U+OK1mYU5mb5BeJ2BOr7VJwjO7pAdpQYFlHkwKCso6WG9 qumw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh10si10771620ejb.678.2020.05.26.06.08.01; Tue, 26 May 2020 06:08:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389012AbgEZMid (ORCPT + 99 others); Tue, 26 May 2020 08:38:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388497AbgEZMid (ORCPT ); Tue, 26 May 2020 08:38:33 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00702C03E96D for ; Tue, 26 May 2020 05:38:32 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jdYql-003QFU-A4; Tue, 26 May 2020 14:38:31 +0200 Message-ID: <68be99836859c4216a667e5784ed0e519cc1143c.camel@sipsolutions.net> Subject: Re: Auth/Assoc/Connect events coming before CMD_CONNECT response (hwsim) From: Johannes Berg To: James Prestwood Cc: linux-wireless@vger.kernel.org Date: Tue, 26 May 2020 14:38:30 +0200 In-Reply-To: (sfid-20200501_193303_702944_53D89397) References: <259da597c3902c79c9d5c6e171e109dcb68564eb.camel@sipsolutions.net> (sfid-20200501_193303_702944_53D89397) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi James, > > I guess you could "fix" that by running with wmediumd? > > We do run with wmediumd, although I hadn't looking into this much. Well, I was sort of assuming that even just running wmediumd would introduce the latency of another userspace roundtrip, and, perhaps more importantly, disconnect the code paths. I didn't really think you need any additional delay, and yes, I don't think wmediumd supports adding additional delay, but it does add its own fake medium acquisition delay. So maybe that means my theory was wrong? johannes