[PATCH v5 3/4] tests: Use error probability model instead of SNR model

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <masashi.honma@xxxxxxxxx>
---
 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)
     );
 };
 """
-- 
2.7.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux