realtek 0bda:8171 RTL8188SU driver update

Im trying to update the driver for realtek usb wifi adapter.

model : 0bda:8171 RTL8188SU

I used this guide.

sudo apt-get install git build-essential
git clone https://github.com/chunkeey/rtl8192su.git
cd rtl8192su
make
sudo make load

but got this:

Im stuck on 'make' procedure

i followed this link (suggested on irc ubuntu channel) until 1st step only coz of this errors.


questions:

I've read that wifi drivers needs to be reinstalled every after kernel updates, are all kernel updates equal or should i only be reinstalling after a specific kernel update was done?

I tried the ndiswrapper method before. using this

disregarding the step about blacklisting the old driver because wifis cannot be detected.

inspite of disregarding the blacklisting, Wifi became stable,so I assumed it must be the ndiswrapper, but after 2days,after an update,it is intermittent again.


observation after the ndiswrapper procedure:

the driver listed after doing :

sudo lshw -C network

is still unchanged,showing : r8712u , it should be updated to something else right?

That is why Im changing the driver update method into a non-ndiswrapper method. Unfortunately,its not succesfull (yet)

issues im trying to fix:

intermittent wifi connection,fixing it by driver update


There is no evidence that I am aware of that the driver included by default in kernel version 4.4.0-xx is outdated, nor that instability can be rectified by installing a different, maybe older, maybe newer driver. Moreover, I know of no driver that actually compiles and installs.

Instability is sometimes caused by problems in the router such as auto channel select and others.

Please check the settings in the router. WPA2-AES is preferred; not any WPA and WPA2 mixed mode and certainly not TKIP. Second, if your router is capable of N speeds, you may have better connectivity with a channel width of 20 MHz in the 2.4 GHz band instead of automatic 20/40 MHz, although it is likely to affect N speeds. I also have better luck with a fixed channel, either 1, 6 or 11, rather than automatic channel selection. Also, be certain the router is not set to use N speeds only; auto B, G and N is preferred. After making these changes, reboot the router.

Next, I recommend that your regulatory domain be set explicitly. Check yours:

sudo iw reg get

If you get 00, that is a one-size-maybe-fits-all setting. Find yours here: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Then set it temporarily:

sudo iw reg set IS

Of course, substitute your country code if not Iceland. Set it permanently:

sudo nano /etc/default/crda

Change the last line to read:

REGDOMAIN=IS

Proofread carefully, save and close the text editor.

You might also turn off power saving in Network Manager. From the terminal:

sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*

Reboot the computer and tell us if there is any improvement.