linux-stable/net/qrtr
Bjorn Andersson 7036e62145 net: qrtr: Fix message type of outgoing packets
QRTR packets has a message type in the header, which is repeated in the
control header. For control packets we therefor copy the type from
beginning of the outgoing payload and use that as message type.

For non-control messages an endianness fix introduced in v5.2-rc1 caused the
type to be 0, rather than QRTR_TYPE_DATA, causing all messages to be dropped by
the receiver. Fix this by converting and using qrtr_type, which will remain
QRTR_TYPE_DATA for non-control messages.

Fixes: 8f5e24514c ("net: qrtr: use protocol endiannes variable")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-05-20 20:50:31 -04:00
..
Kconfig net: qrtr: Expose tunneling endpoint to user space 2018-04-27 15:06:10 -04:00
Makefile net: qrtr: Expose tunneling endpoint to user space 2018-04-27 15:06:10 -04:00
qrtr.c net: qrtr: Fix message type of outgoing packets 2019-05-20 20:50:31 -04:00
qrtr.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
smd.c qrtr: add MODULE_ALIAS macro to smd 2018-02-26 15:07:04 -05:00
tun.c net: qrtr: Expose tunneling endpoint to user space 2018-04-27 15:06:10 -04:00