mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 22:53:04 +00:00
afk: Correctly ack unknown messages during init
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
af3814c56d
commit
e3d5f70244
1 changed files with 3 additions and 0 deletions
|
@ -399,6 +399,7 @@ int afk_epic_command(afk_epic_ep_t *epic, int channel, u16 code, void *txbuf, si
|
|||
if (sub->category != CAT_REPLY || sub->code != code) {
|
||||
printf("EPIC: got unexpected message %02x:%04x during command\n", sub->category,
|
||||
sub->code);
|
||||
afk_epic_rx_ack(epic);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -505,6 +506,7 @@ int afk_epic_start_interface(afk_epic_ep_t *epic, char *name, size_t txsize, siz
|
|||
if (sub->category != CAT_REPORT || sub->code != CODE_ANNOUNCE) {
|
||||
printf("EPIC: got unexpected message %02x:%04x during iface start\n", sub->category,
|
||||
sub->code);
|
||||
afk_epic_rx_ack(epic);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -512,6 +514,7 @@ int afk_epic_start_interface(afk_epic_ep_t *epic, char *name, size_t txsize, siz
|
|||
|
||||
if (strncmp(name, announce->name, sizeof(announce->name))) {
|
||||
printf("EPIC: ignoring channel %d: %s\n", msg->channel, announce->name);
|
||||
afk_epic_rx_ack(epic);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue