From patchwork Sun Mar 12 22:36:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 737897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vhGCJ5shpz9s75 for ; Mon, 13 Mar 2017 09:39:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iPmggJi2"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jABh5L3u"; dkim-atps=neutral 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=nWsHXGLAPYXFXSupryP+6l2iEOoWvZy9OdJx9YBL/J0=; b=iPmggJi2IuVSze+7GDK8PcDmIM bIsJ3Uf7c93UFoTT+XXxB4W0eLzjqkgAMx1vQPNqaQ5jGtJzpDkNOPBlL+vHkxak+RM+y46Cdv1Z8 LATu6KxLMz0WvezIirwTewG2p56hjeapL/bbyZ8SCSR1kX/v0EP5Je5i0O+BPjLZnE21kXcfqeOOc XaKhV7LKYrnhxKnjslSSYHhWZK/U8w6+KaXZFUGeJLKiBqvWP174m6T2bZH+LqNhT4786PBsrXm3l EqMm0zH1/43iqwTC3WP7u70mIPPMVt38J2d9NyQ12AwuyL+U+uE9ccwON6dR+Rl7cSE6xYHh3yKXn pCjmIyIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cnC8l-0005jY-6V; Sun, 12 Mar 2017 22:39:03 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnC6m-0004QS-D3 for hostap@lists.infradead.org; Sun, 12 Mar 2017 22:37:02 +0000 Received: by mail-pf0-x243.google.com with SMTP id 67so17045463pfg.2 for ; Sun, 12 Mar 2017 15:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gGyy7UYY2kcLiDR34zyB1qe/sEurVQnF5W7etv3A0tI=; b=jABh5L3uxUaMdX4aXxGifuq0mpcNPdzSTsexATlJk/6D//vEZJ/O1ezS/z79DeMM5m uauHF+MEKQ9mFHBxMgN0dmqDD5b800/0cvoJDODKn/95elEzYZMvP+Qouicx1GVj4fZg cbCtoKNt0aLnwdZ93ve4p3mAPxZ6eufOA9Ye4y5zBfii855hgGz8X8XdFU/s+rkBn2Xy N+6LKt0e0+K/9vbkXdXNYEaRXqMxxQ7B+06jNuWbyhv5EoO7gRJjIKex+EQHnPyCEJHW PZp9AIcCgj8nGd2k70GgK0wMlskDhh6sbRnmj+Bgxgtic21XHQQIhvcL3EQzAO2y8twI DzXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gGyy7UYY2kcLiDR34zyB1qe/sEurVQnF5W7etv3A0tI=; b=NoPuXPsM9rS006yYJWwcYTjEuIehw5n1V2NcUzXsIe2NsmmcPD65hI99TRQ7eqT/ZR ddd4Yhmts0h7Z3ISFU7NeOIlQSs/gQEDaEUOKijynZbTThf5IuxBil9EUctqKwp6xIBa ICVzkL2gVNF3lb84jUdvvY7QzfoUf+F55pMgJUMNFLVI47YALpXddC/8wGv/gOmxfkbb znUup/0AMMt+I4B6bIFi53BY1CvZUnVhxGeij50g2QqQv0jkTNwX4pJxeryJklfq/jk0 iywf4Oqv7g0oP686ZG/o7HitoCNQesloHvZxaug3r4pv+BmR+aVh4ign8IApFxdF54w0 rJpA== X-Gm-Message-State: AMke39ng8JDp10bjoSKk2suy68H2J8VxKlg/9M8IGCB0r8tZGvQ0bU9cXfip36ihI89iMA== X-Received: by 10.84.171.195 with SMTP id l61mr42125185plb.84.1489358199656; Sun, 12 Mar 2017 15:36:39 -0700 (PDT) Received: from localhost.localdomain (p6e1217.kngwnt01.ap.so-net.ne.jp. [218.110.18.23]) by smtp.gmail.com with ESMTPSA id s65sm29902638pgb.64.2017.03.12.15.36.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 12 Mar 2017 15:36:39 -0700 (PDT) From: Masashi Honma To: hostap@lists.infradead.org Subject: [PATCH v5 3/4] tests: Use error probability model instead of SNR model Date: Mon, 13 Mar 2017 07:36:17 +0900 Message-Id: <1489358178-7729-3-git-send-email-masashi.honma@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489358178-7729-1-git-send-email-masashi.honma@gmail.com> References: <1488332457-23457-1-git-send-email-masashi.honma@gmail.com> <1489358178-7729-1-git-send-email-masashi.honma@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170312_153700_471074_04C1F8D3 X-CRM114-Status: UNSURE ( 7.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (masashi.honma[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j@w1.fi, Masashi Honma , me@bobcopeland.com MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org If wmediumd will change it's SNR model, these tests needs to be modified (ex. previously SNR = 0 means disconnection, on the new model, SNR should be -10 for disconnection). So use error probability model not to be influenced by SNR model change. Signed-off-by: Masashi Honma --- tests/hwsim/test_wmediumd.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/hwsim/test_wmediumd.py b/tests/hwsim/test_wmediumd.py index 6678dbb..f8367f9 100644 --- a/tests/hwsim/test_wmediumd.py +++ b/tests/hwsim/test_wmediumd.py @@ -28,11 +28,16 @@ CFG2 = """ ifaces : { ids = ["%s", "%s", "%s"]; +}; + +model: +{ + type = "prob"; links = ( - (0, 1, 50), - (0, 2, 50), - (1, 2, -10) + (0, 1, 0.000000), + (0, 2, 0.000000), + (1, 2, 1.000000) ); }; """