[collected] improvements for wireless

Hi MarioMM,

Unfortunately this didn’t do the trick for either my Raspberry Pi + Edimax adapter or my Cubox-i4 Pro with internal wifi.
Thanks to kerampont I found a solution on the forum for the RPi + Edimax combo : http://volumio.org/forum/losing-wlan-connection-after-moment-raspberry-t807.html#p3591
But since i switched to the Cubox-i i had to reboot frequently the little box after loosing the network connectivity … until i spend an afternoon focused on this issue. And finally i found a solution here : http://ubuntuforums.org/archive/index.php/t-1686641.html.
Here is the trick, and even if i didn’t test it with the RPI, i think this solution works as well :

[code]sudo mkdir /etc/pm
sudo mkdir /etc/pm/power.d
sudo nano /etc/pm/power.d/wireless

#!/bin/sh
/sbin/iwconfig wlan0 power off

sudo chmod +x /etc/pm/power.d/wireless

sudo nano /etc/rc.local

Disable Wifi power management at startup

sleep 10
iwconfig wlan0 power off[/code]

For your info, the first part (before /etc/rc.local) may not be necessary as it is related to laptop power management when the charger is plugged or unplugged.