]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use error probability model instead of SNR model
authorMasashi Honma <masashi.honma@gmail.com>
Tue, 21 Mar 2017 01:50:32 +0000 (10:50 +0900)
committerJouni Malinen <j@w1.fi>
Mon, 27 Mar 2017 14:33:44 +0000 (17:33 +0300)
If wmediumd changes its SNR model, these tests need 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 <masashi.honma@gmail.com>
tests/hwsim/test_wmediumd.py

index 1eba908111d005f3115928a3675bae9435a2275e..68bd4e158b740334376de0d51ad3dd5d20fb0f91 100644 (file)
@@ -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)
     );
 };
 """