From 5df28473cb23a757ccaac6a9759e1c7a3aa9906c Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 11 Sep 2020 11:11:28 -0700 Subject: [PATCH] auto-t: fix set_neighbor SSID escaping Before the re-write there was interesting escapes being used for set_neighbor. Curiously now hostapd fails to set the neighbor due to these escapes so they have been removed. --- autotests/util/hostapd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py index 3f0edd9e..7c0d8385 100644 --- a/autotests/util/hostapd.py +++ b/autotests/util/hostapd.py @@ -152,7 +152,7 @@ class HostapdCLI: return [line for line in lines.split('\n') if line] def set_neighbor(self, addr, ssid, nr): - cmd = self.cmdline + ['set_neighbor', addr, 'ssid=\\""%s"\\"' % ssid, 'nr=%s' % nr] + cmd = self.cmdline + ['set_neighbor', addr, 'ssid="%s"' % ssid, 'nr=%s' % nr] ctx.start_process(cmd, wait=True) def send_bss_transition(self, device, nr_list):