batman-adv: fix condition in AP isolation
authorAntonio Quartulli <ordex@autistici.org>
Mon, 25 Jun 2012 20:49:50 +0000 (20:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2012 06:54:32 +0000 (23:54 -0700)
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>
net/batman-adv/translation-table.c

index cf79883..e4f27a8 100644 (file)
@@ -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;