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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user