A-Netz / B-Netz: Add function to change state, debug with channel info

Change state uses a function rather than directly setting state
variable.

Some debug commands now use channel number. (for multi-trx setups)
This commit is contained in:
Andreas Eversberg
2016-12-06 17:47:58 +01:00
parent eed826387a
commit f111c50478
5 changed files with 119 additions and 47 deletions

View File

@@ -22,7 +22,7 @@ enum nmt_chan_type {
};
enum nmt_state {
STATE_NULL, /* power off state */
STATE_NULL = 0, /* power off state */
STATE_IDLE, /* channel is not in use */
STATE_ROAMING_IDENT, /* seizure received, waiting for identity */
STATE_ROAMING_CONFIRM, /* identity received, sending confirm */