diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2013-07-02 05:04:36 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-19 11:28:47 -0400 |
commit | b8cbd81d0944cd2dc097b2b4ae8adaf639c5b4df (patch) | |
tree | dc3b3b50ac89e64022dcfaacf278e3d5d6325cf6 /net/batman-adv/sysfs.c | |
parent | 90f4435da43191025712fdcf6b0dc09c018456e9 (diff) |
batman-adv: make the AP isolation attribute VLAN specific
AP isolation has to be enabled on one VLAN interface only.
This patch moves the AP isolation attribute to the per-vlan
interface attribute set, enabling it to have a different
value depending on the selected vlan.
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/sysfs.c')
-rw-r--r-- | net/batman-adv/sysfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c index f419d218890d..6335433310af 100644 --- a/net/batman-adv/sysfs.c +++ b/net/batman-adv/sysfs.c | |||
@@ -453,7 +453,6 @@ BATADV_ATTR_SIF_BOOL(distributed_arp_table, S_IRUGO | S_IWUSR, | |||
453 | batadv_dat_status_update); | 453 | batadv_dat_status_update); |
454 | #endif | 454 | #endif |
455 | BATADV_ATTR_SIF_BOOL(fragmentation, S_IRUGO | S_IWUSR, batadv_update_min_mtu); | 455 | BATADV_ATTR_SIF_BOOL(fragmentation, S_IRUGO | S_IWUSR, batadv_update_min_mtu); |
456 | BATADV_ATTR_SIF_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL); | ||
457 | static BATADV_ATTR(routing_algo, S_IRUGO, batadv_show_bat_algo, NULL); | 456 | static BATADV_ATTR(routing_algo, S_IRUGO, batadv_show_bat_algo, NULL); |
458 | static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode, | 457 | static BATADV_ATTR(gw_mode, S_IRUGO | S_IWUSR, batadv_show_gw_mode, |
459 | batadv_store_gw_mode); | 458 | batadv_store_gw_mode); |
@@ -483,7 +482,6 @@ static struct batadv_attribute *batadv_mesh_attrs[] = { | |||
483 | &batadv_attr_distributed_arp_table, | 482 | &batadv_attr_distributed_arp_table, |
484 | #endif | 483 | #endif |
485 | &batadv_attr_fragmentation, | 484 | &batadv_attr_fragmentation, |
486 | &batadv_attr_ap_isolation, | ||
487 | &batadv_attr_routing_algo, | 485 | &batadv_attr_routing_algo, |
488 | &batadv_attr_gw_mode, | 486 | &batadv_attr_gw_mode, |
489 | &batadv_attr_orig_interval, | 487 | &batadv_attr_orig_interval, |
@@ -499,10 +497,13 @@ static struct batadv_attribute *batadv_mesh_attrs[] = { | |||
499 | NULL, | 497 | NULL, |
500 | }; | 498 | }; |
501 | 499 | ||
500 | BATADV_ATTR_VLAN_BOOL(ap_isolation, S_IRUGO | S_IWUSR, NULL); | ||
501 | |||
502 | /** | 502 | /** |
503 | * batadv_vlan_attrs - array of vlan specific sysfs attributes | 503 | * batadv_vlan_attrs - array of vlan specific sysfs attributes |
504 | */ | 504 | */ |
505 | static struct batadv_attribute *batadv_vlan_attrs[] = { | 505 | static struct batadv_attribute *batadv_vlan_attrs[] = { |
506 | &batadv_attr_vlan_ap_isolation, | ||
506 | NULL, | 507 | NULL, |
507 | }; | 508 | }; |
508 | 509 | ||