eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit e5d36bbb335f4057ae7efbf7e059093f6fb0ed0a
parent f30c4bf578ea92a0b2e2be8974241444b6344589
Author: James Prestwood <james.prestwood@linux.intel.com>
Date:   Mon, 13 May 2019 14:29:28 -0700

auto-t: add AP test with no AP iftype support

Ensures IWD properly handles an adapter which does not support AP mode.

Diffstat:
Aautotests/testAP-no-support/hw.conf | 6++++++
Aautotests/testAP-no-support/test.py | 28++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/autotests/testAP-no-support/hw.conf b/autotests/testAP-no-support/hw.conf @@ -0,0 +1,6 @@ +[SETUP] +num_radios=1 +radio_confs=rad0 + +[rad0] +iftype_disable=ap diff --git a/autotests/testAP-no-support/test.py b/autotests/testAP-no-support/test.py @@ -0,0 +1,28 @@ +#! /usr/bin/python3 + +import unittest +import sys + +sys.path.append('../util') +import iwd +from iwd import IWD + +class Test(unittest.TestCase): + def test_connection_success(self): + wd = IWD() + + dev = wd.list_devices(1)[0] + + with self.assertRaises(iwd.NotSupportedEx): + dev.start_ap('TestAP2', 'Password2') + + @classmethod + def setUpClass(cls): + pass + + @classmethod + def tearDownClass(cls): + IWD.clear_storage() + +if __name__ == '__main__': + unittest.main(exit=True)