With a rtl8821ae (lspci | grep Wireless)
Clone the repository
git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
Compile and install the drivers in own Linux
sudo make
sudo make install
Unload the adapter module:
sudo modprobe -r rtl8821ae
For a more permanent change to your adapters options you must create a driver configuration file. Create the following Realtek rtlwifi driver configuration file.
/etc/modprobe.d/rtl8821ae.conf
Copy and paste the following into the conf file:
options rtl8821ae swenc=1
options rtl8821ae ips=1
options rtl8821ae rtw_power_mgnt=0
options rtl8821ae rtw_enusbss=0
options rtl8821ae swlps=1
options rtl8821ae fwlps=1
options rtl8821ae debug=1
options rtl8821ae disable_watchdog=1
options rtl8821ae msi=1
Reload the adapter module.
sudo modprobe rtl8821ae
If this configuration doesn't work, you can test changing the values