Re: NM 0.6.5 unable to reconnect to WPA2 network (first connection fine) - take 2



On Thu, 2007-06-07 at 16:42 +0100, Jon Escombe wrote:
> ----- "Dan Williams" <dcbw redhat com> wrote:
> 
> > > I believe Tomas is using 6.4, which doesn't work (for him) because
> > it always tries to get a password from the keyring. 6.5 includes a
> > patch to never get a password from the keyring (which I'm assuming
> > would work for Tomas - but breaks the private key password scenario).
> > This *should* now be the best of both worlds  ;)
> > 
> > Ah, ok.  Can you test out latest SVN for 0.6.x and confirm that I didn't
> > break anything when modifying your patch?
> > 
> > Thanks,
> > Dan
> 
> Yep, the patch from SVN works fine here, thanks.
> 
> Any thoughts on applying the device-link-race patch to 0.6.x?

Working on that now; I'd rather figure out why nm_device_is_up doesn't
return the correct value though...  In any case, it's also better to
move the sleep(1) to real_act_stage2_config() in
nm-device-802-11-wireless.c after the ap_need_key() call since only
wireless devices appear to need this.  Can you try the attached patch
and see if that works for you _instead_ of device-link-race.patch?

Dan


Index: src/nm-device-802-11-wireless.c
===================================================================
--- src/nm-device-802-11-wireless.c	(revision 2577)
+++ src/nm-device-802-11-wireless.c	(working copy)
@@ -2981,6 +2981,9 @@
 		return NM_ACT_STAGE_RETURN_POSTPONE;
 	}
 
+	/* Some cards are dumb.  Wait a second */
+	sleep (1);
+
 	iface = nm_device_get_iface (dev);
 	if (!supplicant_exec (self))
 	{


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]