]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: pass the WIFI flag from the local to global entry
authorAntonio Quartulli <ordex@autistici.org>
Mon, 27 Aug 2012 09:44:43 +0000 (11:44 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 29 Oct 2012 08:42:49 +0000 (09:42 +0100)
commite0922c090a2063191b8f8b34c6c2f9b00e181858
treef79be70eb05d80280aa523c3507298efd7bceb0e
parentbfd847037ab5ae934b8eefa04b8a316561b8c26f
batman-adv: pass the WIFI flag from the local to global entry

in case of client roaming a new global entry is added while a corresponding
local one is still present. In this case the node can safely pass the WIFI flag
from the local to the global entry.

This change is required to let the AP-isolation correctly working in case of
roaming: if a generic WIFI client C roams from node A to B, A adds a global
entry for C without adding any WIFI flag. The latter will be set only later,
once A has received C's advertisement from B. In this time period the
AP-Isolation (if enabled) would not correctly work since C is not marked as
WIFI, so allowing it to communicate with other WIFI clients.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h