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

tools/ios_convert: use join rather than manually looping

This commit is contained in:
James Prestwood 2019-08-26 16:34:21 -07:00 committed by Denis Kenzior
parent de2c808970
commit 202f65be69

View File

@ -144,13 +144,7 @@ def write_network(network, root_ca_path):
name + '.conf' name + '.conf'
output += "[Hotspot]\n" output += "[Hotspot]\n"
output += "NAIRealmNames=" output += "NAIRealmNames="
output += ','.join(network.nai_realms)
for i in range(len(network.nai_realms)):
output += network.nai_realms[i]
if i < len(network.nai_realms) - 1:
output += ','
output += "\n" output += "\n"
output += "Name=%s\n" % name output += "Name=%s\n" % name