Only create new network if it doesn't exists
authorSamuel Ortiz <sameo@linux.intel.com>
Mon, 6 Jul 2009 17:40:38 +0000 (19:40 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Jul 2009 07:19:51 +0000 (00:19 -0700)
commit96eeda41738a6ae19fafb6abc8dd153d93c678ae
tree82d76ddcc0cc1459916a626c6bd7453bc6d0f64f
parent428dd297c3662be73b932b403f039c7a03f173e3
Only create new network if it doesn't exists

When calling join_network(), we shouldnt create a new network when
the one we're trying to join is already on the network list.

So this patch looks for a matching network and connect to it, instead
of always creating a 00_00_00_00_00_00 network. Obviously, if the
network is not in the network list we do create the network.
src/device.c