Use command line option for sell search

There is already a command line option called 'ue-scan-carrier' which
seemed to blindly look for SSB by changing the center frequency by
+/-100Hz if the previous attempt failed. This is probably copied from
LTE and is not suitable for NR. This commit uses this option to either
1. Perform initial sync on one GSCN if the SSB position if known
2. Or scan the all GSCN (if the SSB postion is unknown)

Also, the following is done for re-synchronization
1. Scan all GSCN when UE comes back from IDLE state
2. Scan one GSCN when UE does re-estabishment

Removed dependency of lte-softmodem.h in nr-softmodem.c.
CONFIG_HLP_UESCAN is declared also in lte-softmodem.h.
This commit is contained in:
Sakthivel Velumani
2024-05-30 10:20:55 -04:00
parent 26aa7c2e33
commit ca93e68410
9 changed files with 51 additions and 45 deletions
@@ -688,6 +688,7 @@ typedef struct
typedef struct {
int16_t target_Nid_cell;
bool ssb_bw_scan;
} fapi_nr_synch_request_t;
typedef struct {