Hi all,

I'm trying to get wifi working with connman. I'm using a TL-WN722N
dongle. I've enabled the kernel drivers and installed the firmware,
also I can connect to wifi using wpa_supplicant + wpa_cli, but when I
try to enable wifi technology on connman I get this error:

root@enlace-imx6:~# connmanctl enable wifi
Error wifi: Method "SetProperty" with signature "sv" on interface
"net.connman.Technology" doesn't exist

The weird part is that wpa_supplicant can connect. So here are my questions:

1) Does connman need a kind of driver or something like that for each
wifi card or it uses some generic kernel interface for it?
2) Should wpa_supplicant be running when `enable wifi' is tried? Is
there a "right way" to start wpa_supplicant? I'm using this line
`wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf', is that right?
3) I know that connmanctl error has something about dbus. Is there any
command to check dbus interfaces? (Dbus newbie here)
4) I've build the drivers for dongle as built in kernel (no module).
Can this be fooling connman?

I'm running a Poky distribution v1.7 (build from Yocto Dizzy). The
wifi plugin seems to be builtin (How can I ensure that?). The
processor is an i.MX6 (quad core). Kernel 3.14.28. Drivers: ath9k_htc
build as "built-in".

Some more information on my system below

Best regards,
- dhs

root@enlace-imx6:~# connmand --nodaemon --debug 2>&1 | grep -A3 -B3 "wifi\|Wirel
ess\|wlan0"
connmand[3316]: src/device.c:probe_driver() driver 0xa4eb0 name bluetooth
connmand[3316]: src/network.c:connman_network_driver_register() driver
0xa4ed4 name bluetooth
connmand[3316]: src/network.c:probe_driver() driver 0xa4ed4 name bluetooth
connmand[3316]: src/network.c:connman_network_driver_register() driver
0xa4c30 name wifi
connmand[3316]: src/network.c:probe_driver() driver 0xa4c30 name wifi
connmand[3316]: src/technology.c:connman_technology_driver_register()
Registering wifi driver
connmand[3316]: src/technology.c:connman_technology_driver_register()
Registering cdc_ethernet driver
connmand[3316]: src/network.c:connman_network_driver_register() driver
0xa4bac name usb
connmand[3316]: src/network.c:probe_driver() driver 0xa4bac name usb
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ9031
Gigabit PHY] (mii_bus:phy_addr=2188000.ethernet:07, irq=-1)
--
connmand[3316]: src/detect.c:detect_newlink() type 776 index 4
connmand[3316]: src/rtnl.c:rtnl_message() NEWLINK len 1124 type 16
flags 0x0002 seq 0 pid 3316
connmand[3316]: src/ipconfig.c:__connman_ipconfig_newlink() index 5
connmand[3316]: wlan0 {create} index 5 type 1 <ETHER>
connmand[3316]: wlan0 {RX} 36 packets 4133 bytes
connmand[3316]: wlan0 {TX} 53 packets 9490 bytes
connmand[3316]: wlan0 {update} flags 36866 <DOWN>
connmand[3316]: wlan0 {newlink} index 5 address E8:DE:27:1A:54:28 mtu 1500
connmand[3316]: wlan0 {newlink} index 5 operstate 2 <DOWN>
connmand[3316]: src/detect.c:detect_newlink() type 1 index 5
connmand[3316]: src/device.c:connman_device_create() node e8de271a5428 type 2
connmand[3316]: src/device.c:connman_device_create() device 0x1beaa88
connmand[3316]: src/device.c:connman_device_set_string() device
0x1beaa88 key Address value E8:DE:27:1A:54:28
connmand[3316]: src/device.c:connman_device_register() device
0x1beaa88 name Wireless
connmand[3316]: Adding interface wlan0 [ wifi ]
connmand[3316]: src/technology.c:technology_find() type 3
connmand[3316]: src/rtnl.c:rtnl_message() buf 0x7ec09ab0 len 1132
connmand[3316]: src/rtnl.c:rtnl_message() NEWLINK len 1132 type 16
flags 0x0000 seq 0 pid 0
libphy: 2188000.ethernet:07 - Link is Up - 100/Full
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

root@enlace-imx6:~# dmesg | grep -i "ath\|wlan0"
usbcore: registered new interface driver ath9k_htc
Bluetooth: HCIATH3K protocol initialized
usbcore: registered new interface driver ath3k
usb 2-1.1: ath9k_htc: Firmware htc_9271.fw requested
usb 2-1.1: ath9k_htc: Transferred FW: htc_9271.fw, size: 51272
ath9k_htc 2-1.1:1.0: ath9k_htc: HTC initialized with 33 credits
ath9k_htc 2-1.1:1.0: ath9k_htc: FW Version: 1.3
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
ieee80211 phy0: Atheros AR9271 Rev:1
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with a2:e4:53:98:5f:39
wlan0: send auth to a2:e4:53:98:5f:39 (try 1/3)
wlan0: send auth to a2:e4:53:98:5f:39 (try 2/3)
wlan0: authenticated
wlan0: associate with a2:e4:53:98:5f:39 (try 1/3)
wlan0: RX AssocResp from a2:e4:53:98:5f:39 (capab=0x431 status=0 aid=1)
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: associated
wlan0: deauthenticating from a2:e4:53:98:5f:39 by local choice (reason=3)
root@enlace-imx6:~#






-- 
"Do or do not. There is no try"
  Yoda Master
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to