Apparently I still have the issue. After having replaced my previous wifi setup with the suggested net-auto-wireless I opened an ssh connection again and started copying some files around. A couple minutes after starting I lost the connection again and couldn't ping the raspberry anymore. Every time I lost the connection, in fact, I was doing some hard disk operation (unzip, mv, cp, hash checking in torrent or even just mounting). I have several hard disks connected (but I also tried with only one). The wifi stick is connected directly to the Respberry through the supplied extension cable (
http://trust.com/18213), while the hard disks are behind a usb hub (tried two different hubs). Any other hint at why this is happening? Just waiting didn't bring the connection back, but I'm sure the raspberry is not hanging. The hard disks are self powered and the usb hub has its own power cable. This tends to happen if the Raspberry is serving an nfs share.
On the raspberry I get this:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# systemctl status net-auto-wireless.service
net-auto-wireless.service - Provides automatic netcfg wireless connection
Loaded: loaded (/usr/lib/systemd/system/net-auto-wireless.service; enabled)
Active: active (running) since Thu, 01 Jan 1970 01:01:34 +0100; 27min ago
Process: 138 ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/net-auto-wireless.service
├ 177 wpa_supplicant -B -P /run/wpa_supplicant_wlan0.pid -i wlan0 -D nl80211,wext -c/run/network/wpa.wlan0/wp...
├ 180 /usr/sbin/wpa_actiond -p /run/wpa_supplicant -i wlan0 -P /run/wpa_actiond_wlan0.pid -a /usr/bin/netcfg-...
└ 252 dhcpcd -qL -t 10 -K up wlan0
Jan 01 01:01:38 alarmpi dhcpcd[223]: wlan0: sendmsg: Cannot assign requested address
Jan 01 01:01:38 alarmpi dhcpcd[223]: wlan0: rebinding lease of 192.168.0.14
Jan 01 01:01:39 alarmpi dhcpcd[223]: wlan0: acknowledged 192.168.0.14 from 192.168.0.1
Jan 01 01:01:39 alarmpi dhcpcd[223]: wlan0: checking for 192.168.0.14
Jan 01 01:01:42 alarmpi dhcpcd[223]: wlan0: sending IPv6 Router Solicitation
Jan 01 01:01:44 alarmpi dhcpcd[223]: wlan0: leased 192.168.0.14 for 86400 seconds
Jan 01 01:01:45 alarmpi dhcpcd[223]: forked to background, child pid 252
Jan 01 01:01:46 alarmpi dhcpcd[252]: wlan0: sending IPv6 Router Solicitation
Jan 01 01:01:50 alarmpi dhcpcd[252]: wlan0: sending IPv6 Router Solicitation
Jan 01 01:01:50 alarmpi dhcpcd[252]: wlan0: no IPv6 Routers available
')