]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/matchbox-panel/matchbox-panel-0.9.2/add_hostap.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / matchbox-panel / matchbox-panel-0.9.2 / add_hostap.patch
1 --- matchbox-panel-0.9.2/applets/mb-applet-wireless.c.old       2005-04-05 19:55:39.000000000 +0200
2 +++ matchbox-panel-0.9.2/applets/mb-applet-wireless.c   2005-12-17 14:00:01.000000000 +0100
3 @@ -354,8 +354,19 @@
4    if (Mwd.iface != NULL) 
5      return 0;
6  
7 -  /* mark first found as one to monitor */
8 -  Mwd.iface = strdup(ifname);
9 +  if(iw_get_range_info(Wfd, ifname, &(WInfo.range)) >= 0)
10 +    WInfo.has_range = 1;
11 +
12 +  if (iw_get_stats(Wfd, ifname,
13 +                   &(WInfo.stats),
14 +                   &(WInfo.range), WInfo.has_range) >= 0)
15 +    {
16 +     Mwd.iface = strdup(ifname);
17 +    }
18 +  else
19 +    {
20 +     Mwd.iface = "wlan0";
21 +    }
22  
23    return 0;
24  }