diff options
author | Linus Luessing <linus.luessing@web.de> | 2010-02-19 16:18:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-03 16:43:02 -0800 |
commit | 837b8248f6206a6b08b3d6defe2946282e432679 (patch) | |
tree | cb17aef52d0578dea091365c26656712abd8b087 /drivers/staging/batman-adv/main.h | |
parent | bc0ad071a788625abb23aee4cb3c07d17d501641 (diff) | |
download | op-kernel-dev-837b8248f6206a6b08b3d6defe2946282e432679.zip op-kernel-dev-837b8248f6206a6b08b3d6defe2946282e432679.tar.gz |
Staging: batman-adv: atomic variable for vis-srv activation
This fixes the bug discovered by Marek Lindner which did not allow
turning on the vis-server before an interface has been added. With this
patch we are using a global atomic variable for activating and
deactiating the vis-server-mode, which can be used before
inserting an interface.
Signed-off-by: Linus Luessing <linus.luessing@web.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/batman-adv/main.h')
-rw-r--r-- | drivers/staging/batman-adv/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/batman-adv/main.h b/drivers/staging/batman-adv/main.h index eb6a702..deb41f5 100644 --- a/drivers/staging/batman-adv/main.h +++ b/drivers/staging/batman-adv/main.h @@ -130,6 +130,7 @@ extern spinlock_t forw_bcast_list_lock; extern atomic_t originator_interval; extern atomic_t vis_interval; +extern atomic_t vis_mode; extern atomic_t aggregation_enabled; extern int16_t num_hna; extern int16_t num_ifs; |