diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-05-24 11:18:40 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2013-05-24 11:18:40 +0200 |
commit | b1f92341c359fb173dc2d28a66ae3a86a7a94a99 (patch) | |
tree | 387bbc99e1da86cbe407322481d6074f27ffd526 | |
parent | 1ee6d39921dbec5d6597295ba40e0f95d1e955fc (diff) |
amr: add AMR FT SID definition
According to RFC3267, AMR FT 8 is reserved to SID and its size is
8 bytes.
-rw-r--r-- | include/osmocom/netif/amr.h | 3 | ||||
-rw-r--r-- | src/amr.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/osmocom/netif/amr.h b/include/osmocom/netif/amr.h index 5e4ccd4..21ba9da 100644 --- a/include/osmocom/netif/amr.h +++ b/include/osmocom/netif/amr.h @@ -75,7 +75,8 @@ static inline void *osmo_amr_get_payload(struct amr_hdr *amrh) #define AMR_FT_5 5 /* 7.95 */ #define AMR_FT_6 6 /* 10.2 */ #define AMR_FT_7 7 /* 12.2 */ -#define AMR_FT_MAX 8 +#define AMR_FT_SID 8 /* SID */ +#define AMR_FT_MAX 9 size_t osmo_amr_bytes(uint8_t amr_cmr); @@ -34,6 +34,7 @@ static size_t amr_ft_to_bytes[AMR_FT_MAX] = { [AMR_FT_5] = 20, [AMR_FT_6] = 26, [AMR_FT_7] = 31, + [AMR_FT_SID] = 6, }; size_t osmo_amr_bytes(uint8_t amr_ft) |