commit 541dca499ad81d074e7db9a8bc8bf5ab8ad2a8d8 parent 876ac5f5698fe36905578e7947899bc0a1fb5b1e Author: James Prestwood <prestwoj@gmail.com> Date: Thu, 12 Aug 2021 16:12:33 -0700 auto-t: hostapd.py: remove get_freq()/get_config_value() Diffstat:
| M | autotests/util/hostapd.py | | | 14 | -------------- |
1 file changed, 0 insertions(+), 14 deletions(-)
diff --git 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