Staging: batman-adv: atomic variable for vis-srv activation
authorLinus Luessing <linus.luessing@web.de>
Fri, 19 Feb 2010 15:18:08 +0000 (16:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:43:02 +0000 (16:43 -0800)
commit837b8248f6206a6b08b3d6defe2946282e432679
treecb17aef52d0578dea091365c26656712abd8b087
parentbc0ad071a788625abb23aee4cb3c07d17d501641
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>
drivers/staging/batman-adv/main.c
drivers/staging/batman-adv/main.h
drivers/staging/batman-adv/proc.c
drivers/staging/batman-adv/send.c
drivers/staging/batman-adv/vis.c
drivers/staging/batman-adv/vis.h