nr-{ue,}softmodem: Check for correct modes

THere are four possibilities, for the three options (phy_test, do_ra,
nsa):

- None is set -> SA
- Only one is set of each -> corresponding mode

Introduce a function softmodem_verify_mode() to check for these.
This commit is contained in:
Robert Schmidt
2024-11-12 13:55:49 +01:00
parent e0e1ca6583
commit 5d2a1ace17
4 changed files with 23 additions and 11 deletions
+1
View File
@@ -330,6 +330,7 @@ typedef struct {
} softmodem_params_t;
#define IS_SA_MODE(sM_params) (!(sM_params)->phy_test && !(sM_params)->do_ra && !(sM_params)->nsa)
void softmodem_verify_mode(const softmodem_params_t *p);
uint64_t get_softmodem_optmask(void);
uint64_t set_softmodem_optmask(uint64_t bitmask);