3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

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

Ensures IWD properly handles an adapter which does not support AP mode.
This commit is contained in:
James Prestwood 2019-05-13 14:29:28 -07:00 committed by Denis Kenzior
parent f30c4bf578
commit e5d36bbb33
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[SETUP]
num_radios=1
radio_confs=rad0
[rad0]
iftype_disable=ap

View File

@ -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)