I live with this issue 2 year.

Problem reproduced with two identical TL-WN722N external USB adapter.

Network connection lost at random time or mostly 100% if re-attach adapter
from USB port.

Machine reboot help.

These attempts didn't help:

  $ sudo service wicd restart
  $ sudo pkill wpa_supplicant

wicd try to establish connection without success in loop.

If I try to set link manually it success:

  $ iwlist wlan0 scan  | grep ESSID
  $ /usr/bin/wpa_passphrase $SSID $PASS >~/tmp/wpa.pass
  $ ip link set wlan0 up
  $ sudo wpa_supplicant -d -Dwext -i wlan0 -c ~/tmp/wpa.pass &

  $ sudo pump -i wlan0 -h desktop &

After all I decide to switch to another network manager:

  $ sudo apt-get install connman
  
  $  connmanctl 
  connmanctl> 
  connmanctl> scan wifi 
  Scan completed for wifi

  connmanctl> services 
  $SSID    wifi_f8d111090ed6_6d617269636f6e5f64655f6d6965726461_managed_psk

  connmanctl> agent on
  Agent registered

  connmanctl> connect 
wifi_f8d111090ed6_6d617269636f6e5f64655f6d6965726461_managed_psk 
  Agent RequestInput 
wifi_f8d111090ed6_6d617269636f6e5f64655f6d6965726461_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
  Passphrase? $PASS
  Connected wifi_f8d111090ed6_6d617269636f6e5f64655f6d6965726461_managed_psk

  connmanctl> quit

With `wicd` adapted re-attaching cause error, with `connman` this is no longer
an issue.

`wicd` become broken near kernel v3.2 update. For now I have different
versions for firmware-atheros/linux-image/wicd.

-- 
Best regards!

Reply via email to