From patchwork Wed Jan 15 11:09:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1223313 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sipsolutions.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=hHcVEwOQ; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47yPkL4scZz9sNx for ; Wed, 15 Jan 2020 22:10:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nmwHJMhsCVAiG3c8fsYZ5s9oVV2DmLQ9SA/ARCZS3Fs=; b=hHcVEwOQcW6W9u 6Uauxi9v09kUOuDZLfNrBA/u8HPWbzzTshoVukJj3SVmKZRCKf6/9jZPAdjJwKAcEts/nv1nghgpT 2kLwbaLSDI4UpYhrXFybpv6ya//l/elqFsTCczNjkDk/PQkoFTop2cAO0l5KubJuXJDaYiqRcmAZl 2peSZV51fEL6e4TK+TORA0vnKdzqgTkTd0FSp/cilOjgFN3u6AN9XDy/1bxJ+2WP+mi1h32lwMBSn SliPR10Y62uX6Vr7WHe6toZTcxMw9zuZL31sdsr2r/vRPYNhBUp6kmD0l+vi1wmtXK5MPQyMwFWSx QsBLGArnuwi+u8tLiVpQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irgYv-00019Z-Vg; Wed, 15 Jan 2020 11:10:13 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irgYq-0000G6-74 for hostap@lists.infradead.org; Wed, 15 Jan 2020 11:10:12 +0000 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1irgYj-008uKJ-PF; Wed, 15 Jan 2020 12:10:01 +0100 From: Johannes Berg To: hostap@lists.infradead.org Subject: [PATCH] tests: rrm: sleep between the many good updates Date: Wed, 15 Jan 2020 12:09:57 +0100 Message-Id: <1579086597-I3537c19232bc4e5f6f0a415deb332d97404d512e@changeid> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200115_031008_259925_D97D12BB X-CRM114-Status: UNSURE ( 9.28 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.3 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Johannes Berg Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg These are all going to the kernel, and with powersave now supported in hwsim, the frames are not transmitted immediately but queued up. But the kernel has a limit of 64 queued up frames when TX status ACK is requested, so this test fails. Give it a minimal amount of time between frames so that they can actually go out - 10ms for each means we get only 10 in each beacon period before the other side wakes up and pulls them, so we don't hit the 64 limit. Signed-off-by: Johannes Berg --- tests/hwsim/test_rrm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index dde98932b6a6..34939e1c5129 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -1803,6 +1803,7 @@ def run_rrm_beacon_req_ap_errors(dev, apdev): raise Exception("Invalid REQ_BEACON accepted") for i in range(257): + time.sleep(0.01) if "FAIL" in hapd.request("REQ_BEACON " + addr + " 510b0000640000ffffffffffff"): raise Exception("REQ_BEACON failed") dev[0].dump_monitor()