Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Raspberry Pi OS 12 (Bookworm) released
#40
Switching horses for a bit, I'm wondering how much longer we'll use hostapd.

True, hostapd is available in the RPiOS Bookworm distro but nmcli also can bring up the WiFi interface in AP mode and provide open, WEP, and WPA-PSK authentication.

nmcli is a bit of a Swiss Army knife when it comes to networking; an advantage to using it is all the configuration-related stuff is kept under one roof. nmcli can switch among the defined connections with a single command.

Case in point:

At the moment, my pi400 has two WiFi connections defined: blitch, which is my LAN AP SSID, and blonch, which is the SSID I defined for the pi400 in AP mode (SSIDs changed to protect the innocent).


With the pi400 WiFi interface in infrastructure mode and connected to the LAN AP, I can switch the interface to AP mode simply by entering


Code:
sudo nmcli connection up blonch

and similarly to switch back to bletch in infrastructure mode.

If an Ethernet connection happens to be present, it remains up.

Cool beans.

Regards,
Kent
Reply


Messages In This Thread
RE: Raspberry Pi OS 12 (Bookworm) released - by TheOldPresbyope - 10-27-2023, 07:24 PM

Forum Jump: