diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-05-10 05:31:25 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-05-14 11:56:11 +0000 |
commit | 3ed1c593c6c08ee3536520e9e21b86105a4f9ede (patch) | |
tree | 4a7417a717534521dcb426697c29797454468c46 /src/osmo-bsc/osmo_bsc_bssap.c | |
parent | 78faf70fef23993e7b6d07247c917c5cc720a97d (diff) |
fix default fallbacks in audio_support_to_gsm88()
For audio->hr == true, use HR1, and for hr == false use FR1; not vice versa.
Change-Id: Ifb4dba7c8e9c1d0a22a007355fbd2eda57e789d3
Diffstat (limited to 'src/osmo-bsc/osmo_bsc_bssap.c')
-rw-r--r-- | src/osmo-bsc/osmo_bsc_bssap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/osmo_bsc_bssap.c b/src/osmo-bsc/osmo_bsc_bssap.c index 3f7e4f8e2..dcc6b9fd1 100644 --- a/src/osmo-bsc/osmo_bsc_bssap.c +++ b/src/osmo-bsc/osmo_bsc_bssap.c @@ -61,7 +61,7 @@ enum gsm0808_permitted_speech audio_support_to_gsm88(struct gsm_audio_support *a default: LOGP(DMSC, LOGL_ERROR, "Wrong speech mode: %d\n", audio->ver); - return GSM0808_PERM_FR1; + return GSM0808_PERM_HR1; } } else { switch (audio->ver) { @@ -77,7 +77,7 @@ enum gsm0808_permitted_speech audio_support_to_gsm88(struct gsm_audio_support *a default: LOGP(DMSC, LOGL_ERROR, "Wrong speech mode: %d\n", audio->ver); - return GSM0808_PERM_HR1; + return GSM0808_PERM_FR1; } } } |