sta_connect.py: Use name_to_eid to parse name of radio

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-12-13 17:05:23 -08:00
parent 0687cc1b27
commit 4a871c9516

View File

@@ -160,10 +160,12 @@ class StaConnect(Realm):
elif self.dut_security == OPEN:
pass
radio = LFUtils.name_to_eid(self.radio)
add_sta_data = {
"shelf": 1,
"resource": self.resource,
"radio": self.radio,
"shelf": radio[0],
"resource": radio[1],
"radio": radio[2],
"ssid": self.dut_ssid,
"key": self.dut_passwd,
"mode": self.sta_mode,