From 56ee6b807511ff6bc10cd7ab526bd07e7872a59b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 12 Feb 2011 18:13:37 +0100 Subject: [PATCH] OM2000: Fix Negotiation parsing --- openbsc/src/abis_om2000.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbsc/src/abis_om2000.c b/openbsc/src/abis_om2000.c index fc0fbd87b..435a71d0d 100644 --- a/openbsc/src/abis_om2000.c +++ b/openbsc/src/abis_om2000.c @@ -637,7 +637,10 @@ static int om2k_rx_negot_req(struct msgb *msg) struct iwd_version *iwd_v = &iwd_types[iwd_type].v[v]; memcpy(iwd_v->gen_char, cur, 3); - memcpy(iwd_v->rev_char, cur+3, 3); + cur += 3; + memcpy(iwd_v->rev_char, cur, 3); + cur += 3; + DEBUGP(DNM, "\tIWD Type %u Gen %s Rev %s\n", iwd_type, iwd_v->gen_char, iwd_v->rev_char); }