mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "net: qrtr: Handle IPCR control port format of older targets"
This commit is contained in:
commit
d219bd126a
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
|||
#define QRTR_MIN_EPH_SOCKET 0x4000
|
||||
#define QRTR_MAX_EPH_SOCKET 0x7fff
|
||||
|
||||
#define QRTR_PORT_CTRL_LEGACY 0xffff
|
||||
|
||||
/* qrtr socket states */
|
||||
#define QRTR_STATE_MULTI -2
|
||||
#define QRTR_STATE_INIT -1
|
||||
|
|
@ -606,6 +608,9 @@ int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (cb->dst_port == QRTR_PORT_CTRL_LEGACY)
|
||||
cb->dst_port = QRTR_PORT_CTRL;
|
||||
|
||||
if (len != ALIGN(size, 4) + hdrlen)
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue