libmsc: missing bit shift in status report flag when stored in sms object

So we just store 0 or 1 depending on what the mobile phone requests.

Change-Id: Idb7d5594219c0e458ccb561383a59604bc1a4201
This commit is contained in:
Pablo Neira Ayuso 2017-08-07 14:01:21 +01:00 committed by Neels Hofmeyr
parent 791bdf70f2
commit db5ed3b9c6
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ static int gsm340_rx_tpdu(struct gsm_trans *trans, struct msgb *msg,
/* invert those fields where 0 means active/present */
sms_mti = *smsp & 0x03;
sms_vpf = (*smsp & 0x18) >> 3;
gsms->status_rep_req = (*smsp & 0x20);
gsms->status_rep_req = (*smsp & 0x20) >> 5;
gsms->ud_hdr_ind = (*smsp & 0x40);
/*
* Not evaluating MMS (More Messages to Send) because the