I developed a product on ncs1.9.0. It needs to connect to the nb network and support the gps positioning function. When the device is running, I found a problem that when the device is connected to the nb network and starts gps for the first time, it can start the agps function normally; However, when I need to start the gps function again, I find that function lte_lc_connect() returns an error. I traced it and found it set a flag named "in_progress" in the first part of this function, and return without cleared the progress flag if the reg_status is logged directly, which will cause the function to enter again later, it will return an error at the setting flag directly , it resulting in the inability to connect to the network and the failure of the agps function startup. I think it should be modified as follows:
