Hello!
I'm working with nRF9160 on a custom board and I'm trying to use SUPL to improve time to first fix, I'm following the sample nrf9160/gnss/src/assistance_supl.c. I'm at a point where the gnss event handler receives NRF_MODEM_GNSS_EVT_AGPS_REQ event in which I call nrf_socket(NRF_AF_UNSPEC, NRF_SOCK_STREAM, NRF_IPPROTO_TCP). However, this returns 22 (EINVAL) which means invalid argument. I tried using nrf_socket(NRF_AF_INET, NRF_SOCK_STREAM, NRF_IPPROTO_TCP) too, but this will hang indefinitely. Any help would be highly appreciated!
Operating System: Ubuntu 20.04.4 LTS
West version: v0.12.0
Zephyr OS build v2.7.99-ncs1-2223-g240c7b9a691f
Modem HW: nRF9160 SICA B0A
Modem SW: nrf9160_1.3.1