mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-18 06:38:28 +00:00
afk: use increasing EPIC sequence numbers
Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
29b6e668f9
commit
7473a0779e
1 changed files with 2 additions and 1 deletions
|
@ -108,6 +108,7 @@ struct afk_epic_ep {
|
||||||
struct rtkit_buffer rxbuf;
|
struct rtkit_buffer rxbuf;
|
||||||
|
|
||||||
bool started;
|
bool started;
|
||||||
|
u16 seq;
|
||||||
|
|
||||||
const afk_epic_service_ops_t *ops;
|
const afk_epic_service_ops_t *ops;
|
||||||
afk_epic_service_t services[AFK_MAX_CHANNEL];
|
afk_epic_service_t services[AFK_MAX_CHANNEL];
|
||||||
|
@ -427,7 +428,7 @@ int afk_epic_command(afk_epic_ep_t *epic, int channel, u16 sub_type, void *txbuf
|
||||||
memset(&msg, 0, sizeof(msg));
|
memset(&msg, 0, sizeof(msg));
|
||||||
|
|
||||||
msg.hdr.version = 2;
|
msg.hdr.version = 2;
|
||||||
msg.hdr.seq = 0;
|
msg.hdr.seq = epic->seq++;
|
||||||
msg.sub.length = sizeof(msg.cmd);
|
msg.sub.length = sizeof(msg.cmd);
|
||||||
msg.sub.version = 4;
|
msg.sub.version = 4;
|
||||||
msg.sub.category = CAT_COMMAND;
|
msg.sub.category = CAT_COMMAND;
|
||||||
|
|
Loading…
Add table
Reference in a new issue