[11:40] <mctom> Hello!
[11:41] <mctom> Is there any change to get some help with netplan around here? :)
[11:42] <mctom> chance* :D
[11:43] <tomreyn> mctom: hi. not unless you'll ask a concrete question.
[11:44] <mctom> Anyway, 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:45] <tomreyn> do your wireless chipset and its driver actually support AP mode?
[11:45] <mctom> Yes, it's a Raspberry Pi 4 onboard WiFi
[11:45] <mctom> So, I'm trying to use NEtworkManager renderer, because the docs say this is the only renderer where "mode: ap" is supported.
[11:46] <mctom> Here's the relevant part of netplan yaml:
[11:46] <mctom>     wifis:
[11:46] <mctom>         wlan0:
[11:46] <mctom>             dhcp4: false
[11:46] <mctom>             dhcp6: false
[11:46] <mctom>             optional: true
[11:46] <mctom>             access-points:
[11:46] <mctom>                 "SultanatTatarski":
[11:46] <mctom>                     mode: ap
[11:46] <mctom>                     band: 2.4GHz
[11:46] <mctom>                     channel: 2
[11:46] <mctom>                     auth:
[11:46] <mctom>                         key-management: psk
[11:46] <mctom>                         password: "szczerze"
[11:47] <mctom> After 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] <mctom> The access point is not discoverable, of course.
[11:49] <mctom> I 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:55] <tomreyn> this 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-netplan
[11:57] <mctom> Yes, 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:58] <tomreyn> did this work? https://raspberrypi.stackexchange.com/questions/109425/ubuntu-server-18-wifi-hotspot-setup
[12:00] <mctom> Hmm... Not sure if I tried this one, looks not familiar. I'll give it a try.
[12:07] <mctom> well, before that I tried "nmcli radio wifi on" and goodness gracious, I see the access point!
[12:07] <mctom> Why on earth would netplan fail to do it on its own?
[12:14] <tomreyn> did you both netplan generate AND apply?
[12:20] <mctom> I don't do generate, I thought "apply" does all that. It seemed to work so far, at least..
[12:22] <mctom> Well, anyway I rebooted and the access point is up - perhaps I should have done it first.
[12:23] <mctom> Thanks for your effort anyway. Now the problem is that the authentication doesn't work for any reason.
[12:26] <mctom> Are there any logs that I could examine?