fix(reliability): resolve STA netdev by phy membership (netifd ignores ifname); sae-mixed for PSK uplinks
This commit is contained in:
@@ -38,7 +38,16 @@ class RfPlanTest(unittest.TestCase):
|
||||
args = list(args)
|
||||
self.seq.append('cmd:' + ' '.join(str(a) for a in args))
|
||||
self.runs.append((args, timeout))
|
||||
if args == ['iw', 'dev']:
|
||||
# interface enumeration: radio1 STA comes up as phy1-sta0
|
||||
return 0, ('Interface wlan1mon\n'
|
||||
'\ttype monitor\n'
|
||||
'Interface phy1-sta0\n'
|
||||
'\ttype managed\n'), ''
|
||||
if args[0] == 'readlink' and 'phy80211' in args[1]:
|
||||
return 0, '../../devices/platform/usb/phy1\n', ''
|
||||
if args[0] == 'iw':
|
||||
# iw dev <iface> link
|
||||
if self.iw_fail_left > 0:
|
||||
self.iw_fail_left -= 1
|
||||
return 0, 'Not connected.\n', ''
|
||||
@@ -108,7 +117,7 @@ class RfPlanTest(unittest.TestCase):
|
||||
'uci set wireless.wlan1up.mode=sta',
|
||||
'uci set wireless.wlan1up.network=cli',
|
||||
'uci set wireless.wlan1up.ssid=Net',
|
||||
'uci set wireless.wlan1up.encryption=psk2',
|
||||
'uci set wireless.wlan1up.encryption=sae-mixed',
|
||||
'uci set wireless.wlan1up.key=key',
|
||||
'uci set wireless.wlan1up.disabled=0',
|
||||
'uci set network.cli=interface',
|
||||
@@ -146,7 +155,7 @@ class RfPlanTest(unittest.TestCase):
|
||||
self.assertEqual(result['assoc'], 'aa:bb:cc:dd:ee:ff')
|
||||
self.assertEqual(len(self.sleeps), 3)
|
||||
iw_calls = [c for c in self.cmds
|
||||
if c.startswith('iw dev wlan1up link')]
|
||||
if c.startswith('iw dev phy1-sta0 link')]
|
||||
self.assertEqual(len(iw_calls), 3)
|
||||
|
||||
def test_assoc_poll_exhaustion_reverts_uplink(self):
|
||||
|
||||
Reference in New Issue
Block a user