diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-02-12 18:13:37 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-02-13 15:49:26 +0100 |
commit | 56ee6b807511ff6bc10cd7ab526bd07e7872a59b (patch) | |
tree | e4cb8b0d736bd80f6099caf9b184ae9170e7685a /openbsc/src | |
parent | 563d316106392787c2685c8bdb4b6dc3eddd5706 (diff) |
OM2000: Fix Negotiation parsing
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/abis_om2000.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |