Commit 27b37ebfa2d2a1b6acef6f2d21c497475c9b9709

Authored by Antonio Quartulli
1 parent e9c00136a4

batman-adv: correctly pass the client flag on tt_response

When a TT response with the full table is sent, the client flags
should be sent as well. This patch fix the flags assignment when
populating the tt_response to send back

This was introduced by 30cfd02b60e1cb16f5effb0a01f826c5bb7e4c59
("batman-adv: detect not yet announced clients")

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/batman-adv/translation-table.c
... ... @@ -1502,7 +1502,7 @@
1502 1502  
1503 1503 memcpy(tt_change->addr, tt_common_entry->addr,
1504 1504 ETH_ALEN);
1505   - tt_change->flags = BATADV_NO_FLAGS;
  1505 + tt_change->flags = tt_common_entry->flags;
1506 1506  
1507 1507 tt_count++;
1508 1508 tt_change++;