tests: fst_test_common: Remove dead code from HapdRegCtrl
Since refcnt is never incremented, this is dead code, just remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
362d9a49d4
commit
c8e2fc1fd5
1 changed files with 0 additions and 5 deletions
|
@ -24,14 +24,9 @@ fst_test_def_reg_domain = '00'
|
||||||
|
|
||||||
class HapdRegCtrl:
|
class HapdRegCtrl:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.refcnt = 0
|
|
||||||
self.ifname = None
|
self.ifname = None
|
||||||
self.changed = False
|
self.changed = False
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
if self.refcnt != 0 and self.changed == True:
|
|
||||||
self.restore_reg_domain()
|
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if self.ifname != None:
|
if self.ifname != None:
|
||||||
hapd = hostapd.Hostapd(self.ifname)
|
hapd = hostapd.Hostapd(self.ifname)
|
||||||
|
|
Loading…
Reference in a new issue