--- mncc.c.orig	2021-11-16 08:44:54.000000000 -0800
+++ mncc.c	2022-06-30 13:28:28.735710123 -0800
@@ -394,6 +394,17 @@
 	}
 	ct->perm_spch_len = count;
 
+	if (count == 0) {
+		/* MS did not include octet 3a in its Bearer capability IE.
+		 * Per 3GPP TS 24.008, this condition means that the MS
+		 * supports either FR1 only or both FR1 and HR1, depending
+		 * on the radio channel requirement field.  However, the
+		 * precedent in Osmocom (see below) is to block HR1, hence
+		 * we act as if the MS supports FR1 only. */
+		ct->perm_spch[0] = GSM0808_PERM_FR1;
+		ct->perm_spch_len = 1;
+	}
+
 	if (only_gsm_hr)
 		/* Note: We must avoid the usage of GSM HR1 as this
 		 * codec only offers very poor audio quality. If the
@@ -404,8 +415,5 @@
 	else
 		ct->ch_rate_type = mncc_bc_radio_to_speech_pref(bc->radio);
 
-	if (count)
-		return 0;
-	else
-		return -EINVAL;
+	return 0;
 }
