I have encountered problem that i'm not really sure how to even debug for more info.
Steps to reproduce:
1. Enable modem with both LTE and GPS. GPS priority flag is set.
2. Disable modem with lte_lc_offline() function before LTE_LC_NW_REG_REGISTERED_HOME event occures).
This will stall code forever on first nrf_setsockopt call forever. In my app it is usually `stop_gps` from `nrf9160_gps.c` driver.
If modem was able to connect to network (LTE_LC_NW_REG_REGISTERED_HOME event occurred) before disabling everything works file.
I'm using:
- sdk-nrf - 1.6.0
- nrfxlib - 1.6.0
- zephyr v2.6.0-rc1-ncs1