Re: ipw2100: nm_device_set_frequency(): error setting frequency



Dan Williams schrieb:

On Wed, 2004-12-29 at 16:40 +0100, "Christoph R� wrote:
Some days ago I downloaded the CVS version of NetworkManager, but it does
not work as expected. The daemon starts, detects my wireless adapter and
begins to scan for an access point. But because the ipw2100 driver supports
the "Set Channel" and "Set Frequency" operations only in monitor mode (see
http://ipw2100.sourceforge.net/faq.php#qa_2_1) the daemon fails. Is this a
general problem or do i have to upgrade anything?

Is this a limitation of the driver, of does the _card_ not support
setting this stuff except in monitor mode?  The only reason we set
bitrate is because some cards (atheros G for example) don't set any
bitrate themselves when in ad-hoc mode, resulting in exceedingly poor
communication between the nodes.  Manually setting the card to a bitrate
kicks the card into a marginally working state.  If the ipw2x00 driver
doesn't support this, its not really a problem, and NM will now silently
fail (patched in CVS on 2004-12-22).

If latest CVS still doesn't connect for you, can you post a bit more log
output so we can diagnose?

Dan



Now I see that this is normal behavior. But unfortunately that does not mean
that everything works fine.

backends/NetworkManagerGentoo.c: In function `nm_system_device_setup_static_ip4_config':
backends/NetworkManagerGentoo.c:173: warning: ISO C90 forbids mixed declarations and code

169	gboolean nm_system_device_setup_static_ip4_config (NMDevice *dev)
170	{
171		syslog (LOG_WARNING, "nm_system_device_setup_static_ip4_config() is not implemented yet for this distribution.\n");
172	#define IPBITS  (sizeof (guint32) * 8)
173		struct in_addr	ip_addr, net_addr, broad_addr, gate_addr;

Commenting line 171 out solves the problem.

After compiling and installing I get the daemon and the applet running. When connecting
to my wireless network with hidden essid and without dhcp the daemon gives the following
output and no connection is established.

[...]
NetworkManager: AP_NEED_KEY: is_enc=1 && (!(key_source=1) || !(strlen=13))
NetworkManager: nm_hal_device_property_modified() called with udi = /org/freedesktop/Hal/devices/pci_8086_1043, key = net.interface_up, is_removed = 0, is_added = 0
NetworkManager: nm_hal_device_property_modified() called with udi = /org/freedesktop/Hal/devices/pci_8086_1043, key = net.interface_up, is_removed = 0, is_added = 0
NetworkManager: nm_device_set_wireless_config (eth1) using essid '4188-4226', with Shared Key authentication.
NetworkManager: nm_device_set_frequency(): error setting frequency 0.000000 for device eth1.  errno = 95
NetworkManager: HAVELINK: act=0
NetworkManager: nm_device_activate_wireless(eth1): no hardware link to '4188-4226' in Shared Key mode, trying Open System.
NetworkManager: nm_hal_device_property_modified() called with udi = /org/freedesktop/Hal/devices/pci_8086_1043, key = net.interface_up, is_removed = 0, is_added = 0
NetworkManager: nm_hal_device_property_modified() called with udi = /org/freedesktop/Hal/devices/pci_8086_1043, key = net.interface_up, is_removed = 0, is_added = 0
NetworkManager: nm_device_set_wireless_config (eth1) using essid '4188-4226', with Open System authentication.
NetworkManager: nm_device_set_frequency(): error setting frequency 11.000000 for device eth1.  errno = 95
NetworkManager: HAVELINK: act=1
NetworkManager: HAVELINK: act=1
NetworkManager: Running: /sbin/ip addr add local 192.168.1.22 dev eth1 broadcast 0.0.0.0 eth1
NetworkManager: Running: /sbin/ip route replace default dev eth1 via 192.168.1.1NetworkManager: Running: /sbin/arping -q -A -c 1 -I eth1 192.168.1.22
NetworkManager: Running: /sbin/arping -q -U -c 1 -I eth1 192.168.1.22
NetworkManager: nm_device_activate_wireless(eth1): Success!  Connected to access point '4188-4226' and got an IP address.
NetworkManager: Activation (eth1) IP configuration/DHCP returned = 1
NetworkManager: Activation (eth1) IP configuration/DHCP successful!
NetworkManager: nm_device_activation_worker(eth1): device activated
NetworkManager: Activation (eth1) ending thread.
NetworkManager: AUTO: Best wired device = (null), best wireless device = eth1 (4188-4226)
NetworkManager:     SWITCH: need to get an IP address.
NetworkManager: nm_state_modification_monitor(): beginning activation for device 'eth1'
NetworkManager: nm_device_activation_worker (eth1) started...
NetworkManager: AP_NEED_KEY: is_enc=1 && (!(key_source=1) || !(strlen=13))
[...]

The network itself is working and the connection can be made manually.

Christoph




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