Use correct bit offset to decode the ADDR_TYPE_SSI_USAGE

This commit is contained in:
Ronny Kunze 2012-07-14 13:02:07 +02:00 committed by Harald Welte
parent 7bb6e34ad0
commit 2d9bf16066
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ int macpdu_decode_resource(struct tetra_resrc_decoded *rsd, const uint8_t *bits)
break;
case ADDR_TYPE_SSI_USAGE:
rsd->addr.ssi = bits_to_uint(cur, 24);
rsd->addr.usage_marker = bits_to_uint(cur, 6);
rsd->addr.usage_marker = bits_to_uint(cur+24, 6);
break;
default:
return -EINVAL;