[Bug 1814012] Re: netplan type wifis needs a device option
Mathieu Trudel-Lapierre
mathieu.tl at gmail.com
Wed Mar 20 21:22:30 UTC 2019
That's not quite the device, but a driver value though. I wonder if it
wouldn't be best to either always set -Dnl80211 on wireless (and -Dwired
for 802.1x on ethernet...), or to make it possible to use an alternative
value if matching by driver.
For example:
wifis:
wlan1:
match:
driver: wext
name: wlan1
access-points:
[...]
dhcp4: yes
** Changed in: netplan
Status: New => Triaged
** Changed in: netplan
Importance: Undecided => High
** Also affects: netplan.io (Ubuntu)
Importance: Undecided
Status: New
** Changed in: netplan.io (Ubuntu)
Status: New => Triaged
** Changed in: netplan.io (Ubuntu)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/1814012
Title:
netplan type wifis needs a device option
Status in netplan:
Triaged
Status in netplan.io package in Ubuntu:
Triaged
Bug description:
Some wifi adaptors need to use the -Ddevicename argument for
wpa_supplicant to successfully associate with an AP.
The netplan yaml spec doesn't currently support an optional device
property for the wifis type.
For instance, here's my 01-netcfg.yaml:
network:
version: 2
renderer: networkd
ethernets:
ens32:
dhcp4: no
dhcp6: no
addresses: [192.168.0.222/24]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
wifis:
wlx4cedfb37602e:
optional: true
dhcp4: no
dhcp6: no
addresses: [192.168.1.222/24]
access-points:
"myssid":
password: "mywpapsk"
This isn't currently enough to get the wifi interface to associate. I
have to hand-edit:
/run/systemd/system/multi-user.target.wants/netplan-
wpa at wlx4cedfb37602e.service
..to include the proper device name. E.g.:
[Service]
Type=simple
ExecStart=/sbin/wpa_supplicant -c /run/netplan/wpa-%I.conf -i%I -Dnl80211
Once that edit has been made and systemctl daemon-reload run, the wifi
interface associates.
It would be nice if netplan included a..
device: "devicename"
..option for the yaml file that would add the -Ddevicename to the unit
file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1814012/+subscriptions
More information about the foundations-bugs
mailing list