~mil/sxmo-tickets#599: 
Hotspot not available for modern Android devices

Opening it here since i got no user feedback on gitlab: https://gitlab.com/postmarketOS/pmaports/-/issues/2620

Create a hotspot on sxmo/pmos device.

Try to connect with new generation android13/14 device (e.g. samsung A33, A53). It will complain that it can not connect. While another linux device connects without trouble (which makes debugging a bit harder).

To fix it, we need to edit /usr/bin/sxmo_networks.sh on line ~219 and disable pmf:

notify_sucess "Adding hotspot wifi" \
                nmcli device wifi hotspot ifname wlan0 con-name "Hotspot $SSID" \
                ssid "$SSID" channel "$channel" band bg password "$key"
                nmcli con down "Hotspot $SSID"
                nmcli c modify "Hotspot $SSID" 802-11-wireless-security.pmf 1
                nmcli c modify "Hotspot $SSID" wifi-sec.pmf disable
                nmcli con up "Hotspot $SSID"

successfully tested/daily driving on OP6 with postmarketos edge and 23.12 to scared to submit a patch, so its at least documented here....

Status
REPORTED
Submitter
~magdesign
Assigned to
No-one
Submitted
7 months ago
Updated
a month ago
Labels
bug

~proycon a month ago

Good find and sorry for the late reaction again. I suppose it would also work in a one liner right? Or is the down step crucial?

nmcli device wifi hotspot ifname wlan0 con-name "Hotspot $SSID" ssid "$SSID" channel "$channel" band bg password "$key" 802-11-wireless-security.pmf 1 wifi-sec.pmf disable

Did you happen to try that?

I guess we could make a SXMO_WIFI_PMF_DISABLE parameter to toggle this functionality. Disabling security measures by default might be a bit risky (and you say it does work for some devices), though I must admit I don't know at all what PMF does.

Register here or Log in to comment, or comment via email.