Hello,

I noticed that if a wifi connection fails in configuration state (ie.
dhcp fails), I need to do an extra disconnect call to be able to use
wifi again. I was using gsupplicant and ath9k with wext.

Below is an example how it failed. I don't have any logs right now, but
if needed, I can provide them later.

The "Already connected" is the error I'm talking about.

tukki:~$ cmcc connect tower3
/usr/bin/cmcc:352: DeprecationWarning: BaseException.message has been
deprecated as of Python 2.6
  print "%s: %s" % (error._dbus_error_name, error.message)
org.moblin.connman.Error.Failed: Input/output error
tukki:~$ cmcc show tower3
[ /profile/default/wifi_0026b6675606_546f77657233_managed_none ]
  Name = Tower3
  Type = wifi
  State = failure
  Strength = 40
  Mode = managed
  Security = none
  IPv4 = {  }
  IPv4.Configuration = {  Method=dhcp }
  IPv6 = {  }
  IPv6.Configuration = {  Method=off }
  Ethernet = {  Interface=wlan0 Method=auto Address=00:26:B6:67:56:06 }
  Nameservers = [  ]
  Nameservers.Configuration = [  ]
  Domains = [  ]
  Domains.Configuration = [  ]
  Proxy = {  }
  PassphraseRequired = false
  Immutable = false
  Favorite = false
  AutoConnect = false
  LoginRequired = false
  Provider = {  }
  Proxy.Configuration = {  Method=auto }
tukki:~$ cmcc connect tower3
/usr/bin/cmcc:352: DeprecationWarning: BaseException.message has been
deprecated as of Python 2.6
  print "%s: %s" % (error._dbus_error_name, error.message)
org.moblin.connman.Error.AlreadyConnected: Already connected
tukki:~$ cmcc disconnect tower3
tukki:~$ cmcc connect tower3
/usr/bin/cmcc:352: DeprecationWarning: BaseException.message has been
deprecated as of Python 2.6
  print "%s: %s" % (error._dbus_error_name, error.message)
org.moblin.connman.Error.Failed: Input/output error
tukki:~$

Kalle
_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to