/srv/irclogs.ubuntu.com/2021/08/29/#netplan.txt

mctomHello!11:40
mctomIs there any change to get some help with netplan around here? :)11:41
mctomchance* :D11:42
tomreynmctom: hi. not unless you'll ask a concrete question.11:43
mctomAnyway, I'm trying to set up a WiFi access point. Tons of materials on the web, and none seems to work for me. Also many people claiming to have similar problems. Right now I'm trying to set up any access point, leave alone bridging it or whatever.11:44
tomreyn(i may nor be able to help, just saying)11:44
tomreyndo your wireless chipset and its driver actually support AP mode?11:45
mctomYes, it's a Raspberry Pi 4 onboard WiFi11:45
mctomSo, I'm trying to use NEtworkManager renderer, because the docs say this is the only renderer where "mode: ap" is supported.11:45
mctomHere's the relevant part of netplan yaml:11:46
mctom    wifis:11:46
mctom        wlan0:11:46
mctom            dhcp4: false11:46
mctom            dhcp6: false11:46
mctom            optional: true11:46
mctom            access-points:11:46
mctom                "SultanatTatarski":11:46
mctom                    mode: ap11:46
mctom                    band: 2.4GHz11:46
mctom                    channel: 211:46
mctom                    auth:11:46
mctom                        key-management: psk11:46
mctom                        password: "szczerze"11:46
mctomAfter applying this, the rfkill soft switch is set to "blocked", ifconfig don't see whan0 at all, and if I unblock rfkill manually it doesn't change anything.11:47
mctomThe access point is not discoverable, of course.11:47
mctomI had some success setting up AP with networkd and hostapd on my own, but it was very unreliable and gave up on it after 10 hours, so most certainly the hardware is capable of this feat.11:49
tomreynthis claims to have a working example (though using systemd-networkd + seperately configured hostapd) https://askubuntu.com/questions/1222278/detailed-how-to-or-example-needed-to-setup-an-access-point-using-netplan11:55
mctomYes, been there, and in many other places, and tried a lot. I'm trying to make it work for about 20 hours now. The networkd solution did work to some extent, but broke connections every minute or so. That's why I turned to the NetworkManager, as it is officially supported by netplan in terms of ap mode.11:57
tomreyndid this work? https://raspberrypi.stackexchange.com/questions/109425/ubuntu-server-18-wifi-hotspot-setup11:58
mctomHmm... Not sure if I tried this one, looks not familiar. I'll give it a try.12:00
mctomwell, before that I tried "nmcli radio wifi on" and goodness gracious, I see the access point!12:07
mctomWhy on earth would netplan fail to do it on its own?12:07
tomreyndid you both netplan generate AND apply?12:14
mctomI don't do generate, I thought "apply" does all that. It seemed to work so far, at least..12:20
mctomWell, anyway I rebooted and the access point is up - perhaps I should have done it first.12:22
mctomThanks for your effort anyway. Now the problem is that the authentication doesn't work for any reason.12:23
mctomAre there any logs that I could examine?12:26

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!