qmimodem: fix QMI notification messages handling

QMI notification messages handlers are never called on MC7430 without this fix.

- Do not test transaction id before calling notification handler.  On MC7430,
notification messages contain a not null transaction id (starts with 1,
increased at each message for a particular client).
- On MC7304 transaction id in notification messages is always 0.
This commit is contained in:
Christophe Ronco 2016-12-28 16:04:02 +01:00 committed by Denis Kenzior
parent a8f4e23c75
commit 567e5ec9fc
1 changed files with 1 additions and 1 deletions

View File

@ -758,7 +758,7 @@ static void handle_packet(struct qmi_device *device,
tid = GUINT16_FROM_LE(service->transaction);
if (service->type == 0x04 && tid == 0x0000) {
if (service->type == 0x04) {
handle_indication(device, hdr->service, hdr->client,
message, length, data);
return;