wicd-curses reports that there is no wireless network but device is connected over Wi-Fi

Bug #1225030 reported by psl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
New
Undecided
Unassigned

Bug Description

WICD: 1.7.2.4
Distribution: Debian 7 ARMHF (pool/main/w/wicd/wicd-curses_1.7.2.4-4_all.deb)
Device MK802 stick (ARM Allwinner A10 device, 1GB RAM, Wi-Fi, HDMI, no Ethernet)
Kernel: 3.4.43.sun4i+, armv7l

The device has only WiFi connectivity and has no Etherent port. It is connected over WiFi to local AP. WiFi interface is wlan0 and I can check with iwconfig and ifconfig details of wlan0.

root@mk802:~# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"WIRELESS" Nickname:"<WIFI@REALTEK>"
          Mode:Managed Frequency:2.452 GHz Access Point: 00:11:F5:DC:88:99
          Bit Rate:54 Mb/s Sensitivity:0/0
          Retry:off RTS thr:off Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-**** Security mode:open
          Power Management:off
          Link Quality=100/100 Signal level=85/100 Noise level=0/100
          Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
          Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@mk802:~# ip addr show wlan0
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:13:ef:90:0e:d9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.222.250/24 brd 192.168.222.255 scope global wlan0
    inet6 fe80::213:efff:fe90:ed9/64 scope link
       valid_lft forever preferred_lft forever

root@mk802:~# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:13:ef:90:0e:d9
          inet addr:192.168.222.250 Bcast:192.168.222.255 Mask:255.255.255.0
          inet6 addr: fe80::213:efff:fe90:ed9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1774211 errors:0 dropped:15559135 overruns:0 frame:0
          TX packets:834550 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:214479932 (204.5 MiB) TX bytes:756917951 (721.8 MiB)

root@mk802:~# wicd-curses --version
wicd-curses-uimod (using wicd 1.7.2.4)

When I run wicd-curses, it reports that device has no wireless interface and it is connected to wired network. This is not correct:

No wireless network found.
Connected to wired network (IP: 192.168.222.250)

root@mk802:~# tail /var/log/wicd/wicd.log
2013/09/13 16:46:27 :: did not find prefer_wired in configuration, setting default False
2013/09/13 16:46:27 :: did not find show_never_connect in configuration, setting default True
2013/09/13 16:46:27 :: Wireless configuration file not found, creating...
2013/09/13 16:46:27 :: Wired configuration file not found, creating a default...
2013/09/13 16:46:27 :: Creating wired profile for wired-default
2013/09/13 16:46:27 :: dhclient.conf.template not found, copying...
2013/09/13 16:46:27 :: chmoding configuration files 0600...
2013/09/13 16:46:27 :: chowning configuration files root:root...
2013/09/13 16:46:27 :: Using wireless interface...
2013/09/13 16:46:27 :: Using wired interface...wlan0

Revision history for this message
psl (slansky) wrote :

One more command to show that there is no eth0 in my system:

root@mk802:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:13:ef:90:0e:d9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.222.250/24 brd 192.168.222.255 scope global wlan0
    inet6 fe80::213:efff:fe90:ed9/64 scope link
       valid_lft forever preferred_lft forever

I modified this file:

root@mk802:~# diff -u /etc/wicd/manager-settings.conf.old /etc/wicd/manager-settings.conf
--- /etc/wicd/manager-settings.conf.old 2013-09-13 17:41:47.898600392 +0200
+++ /etc/wicd/manager-settings.conf 2013-09-13 17:38:53.089586940 +0200
@@ -1,7 +1,7 @@
 [Settings]
 backend = external
-wireless_interface = None
-wired_interface = wlan0
+wireless_interface = wlan0
+wired_interface = None
 wpa_driver = wext
 always_show_wired_interface = False
 use_global_dns = False

And restarted wicd:

root@mk802:~# service wicd restart
[ ok ] Restarting Network connection manager: wicd.

wicd-curses shows wireless networks now, FIXED.

I noticed other problem with wicd-curses at netbook Toshiba AC100 when I was working at this problem. wicd-curses uses F10 key for saving preferences but AC100 has no F10 key. I thing you should avoid Fx keys in your curses interface...

Revision history for this message
sandwood (keysandwood) wrote :

Obviously the issue was during the generation of the configuration file .. for some reason there was a mismatch between the wired and the wireless I/F.

2013/09/13 16:46:27 :: Wireless configuration file not found, creating...
2013/09/13 16:46:27 :: Wired configuration file not found, creating a default...

I'll look at the mecanism of how these file is generated to try to find a clue. Maybe on a system without ethernet card there is an issue.

For you last remark (F10 key) , this was already raised in bug #1159323

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.