Re: [PATCH] Fix access point rate for trunk and stable
On Fri, 2007-10-26 at 13:22 +0200, Helmut Schaa wrote: > Hi Dan, > > attached is an adopted version of my patch using a uint32 for the rate > property. Please have a look at my inline comments. Applied, thanks! I also took this opportunity to change the 802-11-wireless device's 'bitrate' property and the 802-3-ethernet device's 'speed' property to uint32 so that everything here is consistent. The D-Bus API has changed accordingly (from 'i' -> 'u' for the nm-device-* members). One inconsistency is that the ethernet device's speed is reported in Mb/s (directly from ethtool, actually) but wireless speeds are in b/s. I think that's OK, because we need finer granularity with wireless, but wired speeds can't be represented in only a uint32. We'll live with it. Dan > Am Montag, 8. Oktober 2007 15:58:20 schrieb Dan Williams: > > Yeah, I think I'd prefer that. If we ever get a rate out of > > wpa_supplicant that is < 0, NM should just clamp to 0. I think this > > would only happen in error conditions, and with the D-Bus interface > > errors are reported through exceptions anyway. > > > > So making it UINT32 would be great. > > > > As for the divisor, the reason wext and wpa_supplicant (which just > > passes back what wext tells it) use large numbers is because Jean was > > trying to write wext for a wide range of hardware, which is fine. But > > it turns out that it's only used for 802.11 hardware really, which means > > a certain number of rates starting at 1Mb/s. There does need to be at > > least .1Mb/s resolution. So I propose the following: > > > > 1) Make it a uint32 > > 2) clamp the int to (0, INT_MAX) and cast to uint32 (ie, leave the value > > as-is with out dividing by 100) > > The division by 100 is only used in nm-tool to convert the rate to Mb/s. > > > There certainly are bitrates of 5.5 Mb/s for example, that we need to > > make available, and the way it was done before with an integer and > > dividing by 100 meant that could not be done. > > Thanks, > Helmut ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Wireless Network Controller missing on PS3
On Fri, 2007-10-26 at 15:12 +0700, Carlos Andre Camargo wrote: > Please, need your guidance to troubleshoot a problem Ii found here. > > > > I have installed a Ubuntu 7.04 on my PS3, and I am using > NetworkManager Applet 0.6.4 but the system can not display my wireless > card connection. Can you help me on this ? The PS3 wireless driver isn't merged into the upstream kernel yet, and last time I reviewed it (when it was posted to lkml for 2.6.23) it had problems that may have prevented it from being used with NetworkManager. It likely won't work with WPA because the firmware includes a supplicant, and I have no idea how that interacts (possibly badly) with wpa_supplicant, which is what's used on Linux to make WPA connections work. Can you report the output of: ls /sys/class/net/ Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: USB Interfaces
On Fri, 2007-10-26 at 11:12 +1000, Grahame Jordan wrote: > Hi, > > I am having problems with my usbnet interfaces. > > NetworkManager connects the first usb0 interface OK. When I connect the > second usb1 usb1 comes up but it disables usb0. > I want to run multiple ubsx interfaces simultaneously. These devices > have a dhcp server on board so ip address is supplied. > > Additionally > The /etc/resov.conf gets overwritten buy these new interfaces. > The default route is also reset to these interfaces. > > These devices are only gadgets so there is no need for resolv.conf and > default route to be changed here. > > How can I configure these to behave themselves? NM 0.6.x doesn't support multiple interfaces up and active at the same time. That's planned for 0.7 but isn't implemented yet, though it's the next-highest priority. Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Wireless Network Controller missing on PS3
Looks like a problem with network manager. Try this: 1: Click on the Network Icon in the top right of the screen and select MANUAL CONFIGURATION 2: Select the wireless icon (top of the two available), then click PROPERTIES Now here is where we enter the wireless information 3: Untick ENABLE ROAMING MODE. under NETWORK NAME AND NETWORK PASSWORD, enter your SSID, KEYTYPE and PASSWORD. 4: go down to CONNECTION SETTINGS. for CONFIGURATION click the box that offers AUTOMATIC CONFIGURATION (DHCP) configuration. 5: Click OK, this will take you back out to the NETWORK SETTINGS - CONNECTIONS SCREEN. Select the TICK box for the wireless and then click CLOSE. That should be it and you should now be able to connect to the web. If not reboot and it should work fine. -Jai On Fri, 2007-10-26 at 15:12 +0700, Carlos Andre Camargo wrote: > Please, need your guidance to troubleshoot a problem Ii found here. > > > > I have installed a Ubuntu 7.04 on my PS3, and I am using > NetworkManager Applet 0.6.4 but the system can not display my wireless > card connection. Can you help me on this ? > > > > Thanks! > > > > Carlos > > > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Wireless Network Controller missing on PS3
On Fri, 2007-10-26 at 15:12 +0700, Carlos Andre Camargo wrote: > Please, need your guidance to troubleshoot a problem Ii found here. > > > > I have installed a Ubuntu 7.04 on my PS3, and I am using > NetworkManager Applet 0.6.4 but the system can not display my wireless > card connection. Can you help me on this ? > > I think more details are needed on exactly what your are doing and what network related init.d scripts you are running. > -- === ROMEO: Courage, man; the hurt cannot be much. MERCUTIO: No, 'tis not so deep as a well, nor so wide as a church-door; but 'tis enough, 'twill serve. === Aaron Konstam telephone: (210) 656-0355 e-mail: [EMAIL PROTECTED] ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: [PATCH] Fix access point rate for trunk and stable
Hi Dan, attached is an adopted version of my patch using a uint32 for the rate property. Please have a look at my inline comments. Am Montag, 8. Oktober 2007 15:58:20 schrieb Dan Williams: > Yeah, I think I'd prefer that. If we ever get a rate out of > wpa_supplicant that is < 0, NM should just clamp to 0. I think this > would only happen in error conditions, and with the D-Bus interface > errors are reported through exceptions anyway. > > So making it UINT32 would be great. > > As for the divisor, the reason wext and wpa_supplicant (which just > passes back what wext tells it) use large numbers is because Jean was > trying to write wext for a wide range of hardware, which is fine. But > it turns out that it's only used for 802.11 hardware really, which means > a certain number of rates starting at 1Mb/s. There does need to be at > least .1Mb/s resolution. So I propose the following: > > 1) Make it a uint32 > 2) clamp the int to (0, INT_MAX) and cast to uint32 (ie, leave the value > as-is with out dividing by 100) The division by 100 is only used in nm-tool to convert the rate to Mb/s. > There certainly are bitrates of 5.5 Mb/s for example, that we need to > make available, and the way it was done before with an integer and > dividing by 100 meant that could not be done. Thanks, Helmut --- src/NetworkManagerAP.c +++ src/NetworkManagerAP.c @@ -40,7 +40,7 @@ intmode; /* from IW_MODE_* in wireless.h */ gint8 strength; double freq; - guint16 rate; + guint32 rate; guint32 capabilities; /* Non-scanned attributes */ @@ -365,14 +365,14 @@ * Get/set functions for rate * */ -guint16 nm_ap_get_rate (const NMAccessPoint *ap) +guint32 nm_ap_get_rate (const NMAccessPoint *ap) { g_return_val_if_fail (ap != NULL, 0); return (ap->rate); } -void nm_ap_set_rate (NMAccessPoint *ap, guint16 rate) +void nm_ap_set_rate (NMAccessPoint *ap, guint32 rate) { g_return_if_fail (ap != NULL); --- src/NetworkManagerAP.h +++ src/NetworkManagerAP.h @@ -66,8 +66,8 @@ double nm_ap_get_freq (const NMAccessPoint *ap); voidnm_ap_set_freq (NMAccessPoint *ap, double freq); -guint16 nm_ap_get_rate (const NMAccessPoint *ap); -voidnm_ap_set_rate (NMAccessPoint *ap, guint16 rate); +guint32 nm_ap_get_rate (const NMAccessPoint *ap); +voidnm_ap_set_rate (NMAccessPoint *ap, guint32 rate); gboolean nm_ap_get_invalid (const NMAccessPoint *ap); voidnm_ap_set_invalid (NMAccessPoint *ap, gboolean invalid); --- test/nm-tool.c +++ test/nm-tool.c @@ -187,7 +187,7 @@ temp = g_strdup_printf ("%s Mode, Freq %.3f MHz, Rate %d Mb/s, Strength %d%%%s%s", (mode == IW_MODE_INFRA) ? "Infrastructure" : "Ad-Hoc", flt_freq, - rate / 1024, + rate / 100, strength, (enc_string && strlen (enc_string->str)) ? enc_string->str : "", !broadcast ? ", Hidden" : ""); Index: test/nm-tool.c === --- test/nm-tool.c (Revision 3020) +++ test/nm-tool.c (Arbeitskopie) @@ -125,7 +125,7 @@ (nm_access_point_get_mode (ap) == IW_MODE_INFRA) ? "Infra" : "Ad-Hoc", nm_access_point_get_hw_address (ap), nm_access_point_get_frequency (ap), - nm_access_point_get_rate (ap) / 1024, + nm_access_point_get_rate (ap) / 100, nm_access_point_get_strength (ap)); if ( !(flags & NM_802_11_AP_FLAGS_PRIVACY) Index: src/NetworkManagerAP.c === --- src/NetworkManagerAP.c (Revision 3020) +++ src/NetworkManagerAP.c (Arbeitskopie) @@ -43,7 +43,7 @@ intmode; /* from IW_MODE_* in wireless.h */ gint8 strength; guint32 freq; /* Frequency in GHz * 1000; ie 2.412 == 2412 */ - guint16 rate; + guint32 rate; guint32 flags; /* General flags */ guint32 wpa_flags; /* WPA-related flags */ @@ -965,9 +965,9 @@ * Get/set functions for rate * */ -guint16 nm_ap_get_rate (NMAccessPoint *ap) +guint32 nm_ap_get_rate (NMAccessPoint *ap) { - guint16 rate; + guint32 rate; g_return_val_if_fail (NM_IS_AP (ap), 0); @@ -977,7 +977,7 @@ } void -nm_ap_set_rate (NMAccessPoint *ap, guint16 rate) +nm_ap_set_rate (NMAccessPoint *ap, guint32 rate) { NMAccessPointPrivate *priv; Index: src/NetworkManagerAP.h === --- src/NetworkManagerAP.h (Revision 3020) +++ src/NetworkManagerAP.h (Arbeitskopie) @@ -93,8 +93,8 @@ guint32 nm_ap_get_freq (NMAccessPoint *ap); voidnm_ap_set_freq (NMAccessPoint *ap, guint32 freq); -guint16 nm_ap_get_rate (NMAccessPoint *ap); -voidnm_ap_set_rate (NMAccessPoint *ap, guint16 rate); +guint32 nm_ap_get_rate (NMAccessPoint *ap); +voidnm_ap_set_rate (NMAccessPoint *ap, guint32 rate); gboolean nm_ap_get_invalid (const NMAccessPoint *ap); voidnm_ap_set_invalid (NMAccessPoint *ap, gboolean invalid); Index: li
Wireless Network Controller missing on PS3
Please, need your guidance to troubleshoot a problem Ii found here. I have installed a Ubuntu 7.04 on my PS3, and I am using NetworkManager Applet 0.6.4 but the system can not display my wireless card connection. Can you help me on this ? Thanks! Carlos ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list