Re: Cannot see the D-BUS for WIFI device when NM is running



Dear Dan,

I don't start the D-Bus for WIFI when am running the NM in my embedded device. I don't know if there is the problem for NM or device driver. But I can use iwconfig and dhclient to set wifi to connect to Internet. I also know the device driver may be the problem for iwioctl since there are some warning as shown in /var/log/message, I also have checked NM is always calling sys/ioctl.h.  My questions, if I don't fix the device driver, Is there a way to fix this problem through change some codes in NM?, or there is no way in the NM side.   The wifi device is Atheros AR6000,Thanks for your suggestion.

Wei


The information from /var/log/messages:

[42949383.220000] ar6000_init() Got WMI @ 0xccc41c00.
[42949383.470000] mac address = 00:21:e8:70:c8:bc
[42949383.470000] ar6000_init() WMI is ready
[42949383.490000] wmi_control_rx() : Unknown id 0x101e
[42949383.500000] AR6000 Reg Code = 0x80000348
[42949397.410000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[42949403.940000] iwioctl: cmd=0x8b03 not allowed in this mode
[42949403.950000] iwioctl: cmd=0x8b1d not allowed in this mode
[42949403.960000] iwioctl: cmd=0x8b23 not allowed in this mode
[42949403.970000] iwioctl: cmd=0x8b25 not allowed in this mode
[42949404.020000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949404.250000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949406.050000] iwioctl: cmd=0x8b03 not allowed in this mode
[42949406.070000] iwioctl: cmd=0x8b1d not allowed in this mode
[42949406.080000] iwioctl: cmd=0x8b23 not allowed in this mode
[42949406.090000] iwioctl: cmd=0x8b25 not allowed in this mode
[42949407.310000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[42949408.540000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949410.130000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949414.770000] keyboard.c: can't emulate rawmode for keycode 0
[42949419.570000] keyboard.c: can't emulate rawmode for keycode 0
[42949420.840000] eth2: no IPv6 routers present
[42949590.190000] iwioctl: cmd=0x8b03 not allowed in this mode
[42949590.200000] iwioctl: cmd=0x8b1d not allowed in this mode
[42949590.210000] iwioctl: cmd=0x8b23 not allowed in this mode
[42949590.220000] iwioctl: cmd=0x8b25 not allowed in this mode
[42949591.540000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[42949592.990000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949597.360000] iwioctl: cmd=0x8b03 not allowed in this mode
[42949597.380000] iwioctl: cmd=0x8b1d not allowed in this mode
[42949597.390000] iwioctl: cmd=0x8b23 not allowed in this mode
[42949597.400000] iwioctl: cmd=0x8b25 not allowed in this mode
[42949597.920000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949599.050000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[42949600.500000] eth2: link up, 100Mbps, full-duplex, lpa 0x45E1
[42949610.990000] eth2: no IPv6 routers present

# iwconfig
lo        no wireless extensions[   93.670000] iwioctl: cmd=0x8b03 not allowed in this mode
.

sit0      no wireless exten[   93.690000] iwioctl: cmd=0x8b1d not allowed in this mode
sions.

eth2      no wireless [   93.700000] iwioctl: cmd=0x8b23 not allowed in this mode
extensions.

[   93.720000] iwioctl: cmd=0x8b25 not allowed in this mode
wlan0     AR6000 802.11g  Mode:Managed  Bit Rate=1 Mb/s   Tx-Power=0 dBm  
          Sensitivity=0/3 
          Retry:on  
          Encryption key:off
          Power Management:off
          Link Quality:255/94  Signal level:-96 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


According to the documents and your notes, I have setup /etc/NetworkManager/nm-system-setting.conf in the embedded device
This is as follows
$cat nm-system-setting.conf
[main]
plugins=ifupdown,keyfile
[keyfile]
unmanaged-device=mac:00:21:e8:70:c8:bc
[ifupdown]
managed=false


Then I check the D-BUS for wifi, but the the D-bus for wifi is still not coming out, which still has informations as follows:
device list is /org/freedesktop/NetworkManager/Devices/0
Device eth2 is activate

 No

device list is /org/freedesktop/NetworkManager/Devices/1
Device wlan0 is activate





On Tue, Mar 23, 2010 at 3:17 AM, Dan Williams <dcbw redhat com> wrote:
On Mon, 2010-03-22 at 09:25 -0700, Bluesky_greenleaf wrote:
> Dear Dan,
>
>
> There are an Ethernet(eth2) and a wifi(wlan0) in an embedded device,
> Ethernet and Wifi are both set to connect Internet successful by using
> the manually Linux commands such as iwconfig wlan0
>
> After NM is running in the embedded device, the D-Bus for Ethernet
> will appear, but the the D-BUS for WIFI is not appeared, which has
> shown as follows using the python to test:

Are you running a user or system settings service that can provide the
necessary configuration to NetworkManager for the wifi device?  NM will
create a "fake" DHCP ethernet connection for the wired device
automatically if no other configuration exists, but the wifi device
doesn't get one because you obviously need the SSID and security details
of the wifi network first.

Normally NM provides the system-settings service (which translates the
distros normal network config files like /etc/network/interfaces
or /etc/sysconfig/network-scripts/ifcfg-* into configuration that NM can
use).  This is done through "plugins" for each distro, or via the
generic 'keyfile' plugin.
Check /etc/NetworkManager/nm-system-settings.conf to see what plugins
you have enabled.

And in teh GNOME desktop, nm-applet will store network configuration in
GConf and send that to NM.

If there isn't any configuration provided to NM by either an enabled
system setting plugin or by a user applet, then NM has no idea what to
connect to.  It'll only connect to networks you specifically tell it to,
as a security measure.

For more info:

http://live.gnome.org/NetworkManagerConfiguration
http://live.gnome.org/NetworkManager/SystemSettings


Dan

>
> device list is /org/freedesktop/NetworkManager/Devices/0
>
>
> Device eth2 is activate
>
> The right result of D-bus information for Ethernet and wfi  should be
> appeared like as follows:
>
> device list is /org/freedesktop/NetworkManager/Devices/0
> device list is /org/freedesktop/NetworkManager/Devices/1
> Device eth2 is activated
>
> Device wlan0 is not activated
>
> This maybe the driver problem, but are there also some comments or
> suggest ideas from the NM? Thanks
>
> Below are some information in this device
>
> # ifconfig
>
> eth2 Link encap:Ethernet HWaddr 00:25:9C:D8:83:73
>
> inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST
> RUNNING MULTICAST MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0
> overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0
> carrier:0 collisions:0 txqueuelen:1000
>
> RX bytes:1334 (1.3 KiB) TX bytes:1796 (1.7 KiB)
>
> lo Link encap:Local Loopback
>
> inet addr:127.0.0.1 Mask:255.0.0.0
>
> UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13 errors:0
> dropped:0 overruns:0 frame:0 TX packets:13 errors:0 dropped:0
> overruns:0 carrier:0 collisions:0 txqueuelen:0
>
> RX bytes:832 (832.0 B) TX bytes:832 (832.0 B)
>
> wlan0 Link encap:Ethernet HWaddr 00:21:E8:70:C8:BC UP BROADCAST
> MULTICAST MTU:1500 Metric:1 RX packets:94 errors:0 dropped:0
> overruns:0 frame:0 TX packets:45 errors:0 dropped:0 overruns:0
> carrier:0 collisions:0 txqueuelen:1000
>
> RX bytes:12004 (11.7 KiB) TX bytes:468 (468.0 B)
>
>
> # iwconfig
>
> [ 153.890000] iwioctl: cmd=0x8b23 not allowed in this mode
>
> [ 153.900000] iwioctl: cmd=0x8b25 not allowed in this mode
>
> wlan0 AR6000 802.11g Mode:Managed Bit Rate:1 Mb/s Tx-Power=0 dBm
>
> Sensitivity=0/3
>
> Retry:on
>
> Encryption key:off
>
> Power Management:on
>
> Link Quality:255/94 Signal level:-96 dBm Noise level:-96 dBm
>
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
>
> Tx excessive retries:0 Invalid misc:0 Missed beacon:0
>
> lo no wireless extensions.
>
> eth2 no wireless extensions.
>
>
> nm-system-settings.conf
>
> [main]
>
> plugins=ifupdown,keyfile
>
>
> [keyfile]
>
> unmanaged-device=mac:00:21:e8:70:c8:bc
>
> [ifupdown]
>
> managed=false
>
>





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