From 4da2963d82e7bee3045f73448d17395f78f1caf0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 22 Apr 2014 22:09:48 +0200 Subject: [PATCH] openbsc: Decrease the version number of MNCC to 2 again Currently OpenBSC and LCR are not compatible with each other. So far we have only included patches that add new defines and do not change the wire format of messages. Just revert it so we can have LCR talk to OpenBSC --- .../openbsc/openbsc/revert-mncc-version.patch | 19 +++++++++++++++++++ recipes-osmocom/openbsc/openbsc_git.bb | 5 +++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 recipes-osmocom/openbsc/openbsc/revert-mncc-version.patch diff --git a/recipes-osmocom/openbsc/openbsc/revert-mncc-version.patch b/recipes-osmocom/openbsc/openbsc/revert-mncc-version.patch new file mode 100644 index 0000000000..c4c2ee8a46 --- /dev/null +++ b/recipes-osmocom/openbsc/openbsc/revert-mncc-version.patch @@ -0,0 +1,19 @@ +OpenBSC has bumped the version from 2 to 4 but only introduced +new defines so the actual wire protocol has not been changed +yet. This is why we can just turn the version back. At least I +hope so. + + +Index: openbsc/include/openbsc/mncc.h +=================================================================== +--- openbsc.orig/include/openbsc/mncc.h ++++ openbsc/include/openbsc/mncc.h +@@ -163,7 +163,7 @@ struct gsm_data_frame { + unsigned char data[0]; + }; + +-#define MNCC_SOCK_VERSION 4 ++#define MNCC_SOCK_VERSION 2 + struct gsm_mncc_hello { + uint32_t msg_type; + uint32_t version; diff --git a/recipes-osmocom/openbsc/openbsc_git.bb b/recipes-osmocom/openbsc/openbsc_git.bb index 1bf7bb39dd..7d395ca382 100644 --- a/recipes-osmocom/openbsc/openbsc_git.bb +++ b/recipes-osmocom/openbsc/openbsc_git.bb @@ -1,9 +1,10 @@ require ${PN}.inc PV = "0.13.0+gitr${SRCPV}" -PR = "${INC_PR}.3" +PR = "${INC_PR}.4" SRCREV = "8a158bb1ea36d0f88da18d0f034884b30f09fda2" -SRC_URI += "git://git.osmocom.org/openbsc.git;protocol=git" +SRC_URI += "git://git.osmocom.org/openbsc.git;protocol=git \ + file://revert-mncc-version.patch" S = "${WORKDIR}/git/openbsc"