I am trying to get my OnePlus 5T to work as a headless server to host AdGuardHome, a static site, and a couple of other small stuff. However, I am having a lot of trouble with establishing a stable internet connection because I seem to lose the wireless wlan0 interface completely after reboot.

Basic details

  • Device: OnePlus5T (codename: dumpling)
  • Method of flashing: pmbootstrap (version: 3.10.1) on a Linux machine.
  • PostmarketOS kernel used: linux-postmarketos-qcom-msm8998
  • Repositories used: 25.12 (mainline)
  • Init system: OpenRC
  • WiFi backend: wpa_supplicant (default)
  • GUI: Console (no keyboard)

Problem faced

I ssh into the device with USB and give wireless connection successfully with nmcli as shown here (https://wiki.postmarketos.org/wiki/Using_a_phone_as_a_server). After a set a static IP (with nmcli modify), installing AdGuardHome, etc. everything works for a while. Then when I reboot the phone (or keep it off for more than 2 h and start), I seem to completely lose the wlan0 interface.

Diagnoses

  • I tried ip a and found the wlan0 completely missing.

  • I tested to see if the drivers were indeed present:

$ apk info | grep firmware 

device-oneplus-dumpling-nonfree-firmware 
firmware-oneplus-msm8998 
firmware-oneplus-msm8998-openrc 
firmware-qcom-adreno-a530 
linux-firmware-qca soc-qcom-msm8998-nonfree-firmware 
soc-qcom-msm8998-nonfree-firmware-openrc
  • I tried to look at the logs with dmseg | tail -20 :
[ 17.116168] qcom,apr 17300000.remoteproc:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:3 
[ 17.116239] qcom,apr 17300000.remoteproc:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:4 
[ 17.116262] qcom,apr 17300000.remoteproc:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:7 
[ 17.116284] qcom,apr 17300000.remoteproc:glink-edge.apr_audio_svc.-1.-1: Adding APR/GPR dev: aprsvc:apr-service:4:8 
[ 17.186076] q6asm-dai 17300000.remoteproc:glink-edge:apr:apr-service@7:dais: No dais found in DT 
[ 17.186084] q6asm-dai: probe of 17300000.remoteproc:glink-edge:apr:apr-service@7:dais failed with error -22 
[ 1830.969129] ath10k_snoc 18800000.wifi: supply vdd-3.3-ch1 not found, using dummy regulator
  • I tried cat /sys/devices/platform/soc/18800000.wifi/power/runtime_status

and got the output: unsupported.

I tried

  • sudo nmcli con up MyHomeWifi

Request

  • Help get the wifi drivers working properly
  • I have a “Portronics” USB-to-Ethernet adapter, but it seems the OS doesn’t recognise that either. So using it as an alternate route for internet is not possible. Please help with that as well (or alternatively) if possible.