mirror of git://git.sysmocom.de/ofono
sms: Left shift 8-bit ports by 16
These are less commonly used so make them not interfere with 16 bit ports
This commit is contained in:
parent
f9066be4f0
commit
f5db7564e8
|
@ -1317,8 +1317,8 @@ static void sms_dispatch(struct ofono_sms *sms, GSList *sms_list)
|
|||
}
|
||||
|
||||
if (sms_extract_app_port(s, &cdst, &csrc, &is_8bit)) {
|
||||
csrc = is_8bit ? (csrc << 8) : csrc;
|
||||
cdst = is_8bit ? (cdst << 8) : cdst;
|
||||
csrc = is_8bit ? (csrc << 16) : csrc;
|
||||
cdst = is_8bit ? (cdst << 16) : cdst;
|
||||
|
||||
if (l == sms_list) {
|
||||
srcport = csrc;
|
||||
|
|
Loading…
Reference in New Issue