From 541dca499ad81d074e7db9a8bc8bf5ab8ad2a8d8 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 12 Aug 2021 16:12:33 -0700 Subject: [PATCH] auto-t: hostapd.py: remove get_freq()/get_config_value() --- autotests/util/hostapd.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/autotests/util/hostapd.py b/autotests/util/hostapd.py index 1575d832..be6e1143 100644 --- a/autotests/util/hostapd.py +++ b/autotests/util/hostapd.py @@ -212,20 +212,6 @@ class HostapdCLI: if 'OK' not in proc.out: raise Exception('BSS_TM_REQ failed, is hostapd built with CONFIG_WNM_AP=y?') - def get_config_value(self, key): - # first find the right config file - with open(self.config, 'r') as f: - # read in config file and search for key - cfg = f.read() - match = re.search(r'%s=.*' % key, cfg) - if match: - return match.group(0).split('=')[1] - return None - - - def get_freq(self): - return chan_freq_map[int(self.get_config_value('channel'))] - def ungraceful_restart(self): ''' Ungracefully kill and restart hostapd