01-31-2025, 10:16 PM
(01-31-2025, 10:06 PM)philrandal Wrote: OK, I have made some progress.
Default AP on a Pi 3B has connection proto "rsn". Even after using nmcli to set pairwise to "ccmp" advertises tkip and ccmp, which I suspect is the problem.
I can login from windows 11 but not from my Android 14 phone.
Changing the proto to "wpa" enables me to connect from both my phone and from windows, with warnings of insecure connection, of course.
Thanks Phil.
Below is the code that generates the Hotspot.nmconnection file. Is the fix to set "proto=wpa\n" for Pi-3B ?
If yes then I'll find my 3B and run some tests.
Code:
// Wireless: Hotspot
$fh = fopen('/etc/NetworkManager/system-connections/Hotspot.nmconnection', 'w');
$data = "#########################################\n";
$data .= "# This file is managed by moOde \n";
$data .= "# Wireless: Hotspot \n";
$data .= "#########################################\n\n";
$data .= "[connection]\n";
$data .= "id=" . $cfgNetwork[2]['wlanssid'] . "\n";
$data .= "uuid=" . $cfgNetwork[2]['wlanuuid'] . "\n";
$data .= "type=wifi\n";
$data .= "interface-name=wlan0\n";
$data .= "autoconnect=false\n";
$data .= "[wifi]\n";
$data .= "mode=ap\n";
$data .= "ssid=" . $cfgNetwork[2]['wlanssid'] . "\n";
$data .= "[wifi-security]\n";
$data .= "group=ccmp\n";
$data .= "pairwise=ccmp\n";
$data .= "proto=rsn\n";
$data .= "key-mgmt=wpa-psk\n";
$data .= "psk=" . $cfgNetwork[2]['wlanpsk'] . "\n";
$data .= "[ipv4]\n";
$data .= "method=shared\n";
$data .= "address1=" . $_SESSION['ap_network_addr'] . "\n";
$data .= "[ipv6]\n";
$data .= "addr-gen-mode=default\n";
$data .= "method=ignore\n";
fwrite($fh, $data);
fclose($fh);