Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f129fef authored by Antonio Quartulli's avatar Antonio Quartulli Committed by David S. Miller
Browse files

batman-adv: fix condition in AP isolation



During the last conflict resolution involving translation-table.c something went
wrong and a condition in the AP isolation code was reversed. This patch fixes
this problem.

Signed-off-by: default avatarAntonio Quartulli <ordex@autistici.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5cee1d37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2187,7 +2187,7 @@ bool batadv_is_ap_isolated(struct bat_priv *bat_priv, uint8_t *src,
	if (!tt_global_entry)
		goto out;

	if (_batadv_is_ap_isolated(tt_local_entry, tt_global_entry))
	if (!_batadv_is_ap_isolated(tt_local_entry, tt_global_entry))
		goto out;

	ret = true;