I finally fixed this problem by compiling and installing the latest drivers from Linux Wireless in Ubuntu 12.04, in my case the "compat-wireless-3.5.1-1-snpc.tar.bz2" package: http://wireless.kernel.org/en/users/Download/stable/
One needs the header files for his kernel and the build-essentials package. I recommend also to run the script "driver-select" with the option rtlwifi before compiling because one doesn't need the other drivers and it reduces building time:
I finally fixed this problem by compiling and installing the latest drivers from Linux Wireless in Ubuntu 12.04, in my case the "compat- wireless- 3.5.1-1- snpc.tar. bz2" package: http:// wireless. kernel. org/en/ users/Download/ stable/
One needs the header files for his kernel and the build-essentials package. I recommend also to run the script "driver-select" with the option rtlwifi before compiling because one doesn't need the other drivers and it reduces building time:
sudo apt-get install linux-headers- $(uname -r) build-essential
tar jvxf compat- wireless- 3.5.1-1- snpc.tar. bz2 wireless- 3.5.1-1- snpc driver- select rtlwifi
cd compat-
./scripts/
make
sudo make install
But the downside is you have to rebuild the driver after every kernel update.
I'm running the driver for two days now with excessive closing and opening the lid and didn't get any disconnects.