From: Masashi Honma Date: Tue, 21 Mar 2017 01:50:32 +0000 (+0900) Subject: tests: Use error probability model instead of SNR model X-Git-Tag: hostap_2_7~1416 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739779877aa7be9d0cc54cc510ff2e3732c37639;p=thirdparty%2Fhostap.git tests: Use error probability model instead of SNR model 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 --- diff --git a/tests/hwsim/test_wmediumd.py b/tests/hwsim/test_wmediumd.py index 1eba90811..68bd4e158 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) ); }; """