tests: Clean up hostapd ctrl_iface debug logging

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-01-05 07:47:42 +02:00
parent 1d646f5ee1
commit d45e417f7b

View file

@ -62,7 +62,6 @@ class Hostapd:
return "PONG" in self.request("PING") return "PONG" in self.request("PING")
def set(self, field, value): def set(self, field, value):
logger.debug(self.ifname + ": SET " + field + "=" + value)
if not "OK" in self.request("SET " + field + " " + value): if not "OK" in self.request("SET " + field + " " + value):
raise Exception("Failed to set hostapd parameter " + field) raise Exception("Failed to set hostapd parameter " + field)
@ -109,11 +108,11 @@ class Hostapd:
self.set("wep_key0", key) self.set("wep_key0", key)
def enable(self): def enable(self):
if not "OK" in self.ctrl.request("ENABLE"): if not "OK" in self.request("ENABLE"):
raise Exception("Failed to enable hostapd interface " + self.ifname) raise Exception("Failed to enable hostapd interface " + self.ifname)
def disable(self): def disable(self):
if not "OK" in self.ctrl.request("ENABLE"): if not "OK" in self.request("ENABLE"):
raise Exception("Failed to disable hostapd interface " + self.ifname) raise Exception("Failed to disable hostapd interface " + self.ifname)
def dump_monitor(self): def dump_monitor(self):