summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wireless.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-28 21:06:28 +0100
committerGitHub <noreply@github.com>2020-03-28 21:06:28 +0100
commitedfb41097096af6127e3932f186cde37c27b5bfc (patch)
treeb6b2dd741b570b4d10e17239a797b099055a4b0d /src/conf_mode/interfaces-wireless.py
parentd74f6594be0a6d7697c9deb5a677a82576139b98 (diff)
parent72a47361a4a7d352a8be61ea3feaa0f7f6e66745 (diff)
downloadvyos-1x-edfb41097096af6127e3932f186cde37c27b5bfc.tar.gz
vyos-1x-edfb41097096af6127e3932f186cde37c27b5bfc.zip
Merge pull request #282 from thomas-mangin/T2057-mac-hwid
ifconfig: T2057: Do not set empty hw_id mac
Diffstat (limited to 'src/conf_mode/interfaces-wireless.py')
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 2c67c39ae..454ad96dc 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -1496,7 +1496,7 @@ def apply(wifi):
# if custom mac is removed
if wifi['mac']:
w.set_mac(wifi['mac'])
- else:
+ elif wifi['hw_id']:
w.set_mac(wifi['hw_id'])
# configure ARP filter configuration