I have a project for which I'd like to automate configuring the network settings on a Raspberry Pi. I can create a WPA1 hotspot very easily with the following bash one-liner.
nmcli connection add \
con-name wifi_hotspot \
ifname wlan0 \
type wifi \
autoconnect no \
ipv4.method shared \
802-11-wireless.band bg \
802-11-wireless.mode ap \
802-11-wireless.ssid "wifi_hotspot" \
802-11-wireless-security.key-mgmt wpa-psk \
802-11-wireless-security.psk "rubberbabybuggybumpers" \
It seems like the NetworkManager parameter
802-11-wireless-security.key-mgmt is missing an option to specify WPA2 over WPA1.
Is there a way to create a hotspot with WPA2 encryption?
I found that specifying
802-11-wireless-security.proto rsn enables WPA2, but also leaves WPA1 enabled. How can I enable only WPA2?