diff options
Diffstat (limited to 'net/batman-adv/translation-table.c')
| -rw-r--r-- | net/batman-adv/translation-table.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index a874d08f9f0a..1337b6925f52 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
| @@ -1900,19 +1900,8 @@ struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv, | |||
| 1900 | struct batadv_tt_global_entry *tt_global_entry = NULL; | 1900 | struct batadv_tt_global_entry *tt_global_entry = NULL; |
| 1901 | struct batadv_orig_node *orig_node = NULL; | 1901 | struct batadv_orig_node *orig_node = NULL; |
| 1902 | struct batadv_tt_orig_list_entry *best_entry; | 1902 | struct batadv_tt_orig_list_entry *best_entry; |
| 1903 | bool ap_isolation_enabled = false; | ||
| 1904 | struct batadv_softif_vlan *vlan; | ||
| 1905 | |||
| 1906 | /* if the AP isolation is requested on a VLAN, then check for its | ||
| 1907 | * setting in the proper VLAN private data structure | ||
| 1908 | */ | ||
| 1909 | vlan = batadv_softif_vlan_get(bat_priv, vid); | ||
| 1910 | if (vlan) { | ||
| 1911 | ap_isolation_enabled = atomic_read(&vlan->ap_isolation); | ||
| 1912 | batadv_softif_vlan_free_ref(vlan); | ||
| 1913 | } | ||
| 1914 | 1903 | ||
| 1915 | if (src && ap_isolation_enabled) { | 1904 | if (src && batadv_vlan_ap_isola_get(bat_priv, vid)) { |
| 1916 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, src, vid); | 1905 | tt_local_entry = batadv_tt_local_hash_find(bat_priv, src, vid); |
| 1917 | if (!tt_local_entry || | 1906 | if (!tt_local_entry || |
| 1918 | (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING)) | 1907 | (tt_local_entry->common.flags & BATADV_TT_CLIENT_PENDING)) |
