According to BT Core Specification 4.0 length field in OOB EIR contains
the length of the entire OOB data block including the length field
itself.
Some Nokia BH-505 devices reports OOB EIR length without length field
size. Correct size before sending EIR to agent.
data->data[0] = data->data[1];
data->data[1] = 0;
}
+
+ /*
+ * Some Nokia BH-505 report total OOB block length without length field
+ * size.
+ */
+ if (data->data[0] == data->size - 2) {
+ DBG("EIR length without length field size");
+ data->data[0] += 2;
+ }
}
static struct near_ndef_mime_payload *