correctly enable dhcp4 when configuring a ssid for a wlan interface

This commit is contained in:
Michael Hudson-Doyle 2020-05-19 11:34:22 +12:00
parent acd6ee0032
commit 7236771d2f
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class NetworkConfigureWLANStretchy(Stretchy):
if self.device.configured_ssid[0] is None and self.form.ssid.value:
# Turn DHCP4 on by default when specifying an SSID for
# the first time...
self.device.dhcp4 = True
self.device.config['dhcp4'] = True
if self.form.ssid.value:
ssid = self.form.ssid.value
else: