3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02:00

tools/ios_convert: Use tag instead of text for IsHotspot

The IsHotspot key just contains a tag after it (true/false), not
a tag with inner text.
This commit is contained in:
James Prestwood 2019-08-22 15:37:21 -04:00 committed by Denis Kenzior
parent 54a5791195
commit b05689fc81

View File

@ -44,7 +44,7 @@ def process_payload_array(parray):
network.nai_realms.append(nai_array[i].text) network.nai_realms.append(nai_array[i].text)
continue continue
elif parray[l].text == "IsHotspot": elif parray[l].text == "IsHotspot":
if parray[l + 1].text == "True": if parray[l + 1].tag.lower() == "true":
network.is_hotspot = True network.is_hotspot = True
else: else:
network.is_hotspot = False network.is_hotspot = False