On Sat, Oct 30, 2010 at 09:44:42AM +0100, Neil Jerram wrote:
> Esben Damgaard <[email protected]> writes:
> 
> > But it is iliwi that turns on wifi and starts wpa_supplicant.. You
> > don't need to make an issue. I'll get around to it eventually. You
> > are, however, encouraged to make a fork and patch it yourself ;)
> 
> Now that I have a working build system, I'm keen to do that.  Is
> anything known about what the correct fix should be?  For example:
> 
> - After iliwi turns on wifi, is there some way it can find out when the
>   wifi is ready, before starting wpa_supplicant?
> 
> - Failing that, should we just try a sleep, and if so, do you have any
>   idea how long?

Hello Jeremy

Based on the info at [1], I did this :-

* bitbake iliwi -c patch
* applied following patch :-

#####################################################################
--- wifi.vala 2010-10-30 10:15:53.000000000 +0100
+++ new.wifi.vala        2010-10-30 10:11:35.000000000 +0100
@@ -16,6 +16,7 @@
 
 using Gee;
 using Elm;
+using Posix;
 
 namespace iliwi {
   
@@ -293,7 +294,7 @@
       } catch(Error e) {
         debug("DBus error!");
       }
-      
+      Posix.sleep(5);
       try {
         line_regex_start_address = new Regex(""" Address:
       ([0-9A-Z:]{17})$""");
         line_regex_essid = new Regex("""^\s+ESSID:\"(.*)\"$""");
#####################################################################

* added --pkg "posix" to valac args in Makefile.am
* bitbake iliwi
* installed resulting ipk

The result was :-

r...@om-gta02 ~ # iliwi
Segmentation fault

:-(

I am probably doing something stupid but I am not sure how to debug it.

Cheers

Ben

1. http://www.mail-archive.com/[email protected]/msg58146.html
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to