Skip to content

Commit

Permalink
batman-adv: fix condition in AP isolation
Browse files Browse the repository at this point in the history
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: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Antonio Quartulli authored and David S. Miller committed Jun 26, 2012
1 parent 5cee1d3 commit 1f129fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1f129fe

Please sign in to comment.