In your pastebin, we see this:
[/etc/modprobe.d/rtl8723de.conf]
options rtl8723de ant_sel=1
You haven’t any rtl8723de device; yours is an rtl8723be. They are two different devices. Let’s remove the needless file:
sudo rm /etc/modprobe.d/rtl8723de.conf
We also see this:
[/etc/modprobe.d/rtl8723be.conf]
options rtl8723be ant_sel=2
options rtl8723be 11n_disable=1
11n_disable is not an available parameter in the driver rtl8723be. Confirm:
modinfo rtl8723be
Let’s remove the needless declaration:
sudo nano /etc/modprobe.d/rtl8723be.conf
Remove the 11n line so that the file now only contains:
options rtl8723be ant_sel=2
Save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor.
We also see:
Cell 01 - Address: <MAC '301 Th' [AC1]>
Channel:9
Frequency:2.452 GHz (Channel 9)
Quality=54/70 Signal level=-56 dBm
Encryption key:on
ESSID:"301 Th"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000000c8e6d93d
Extra: Last beacon: 60ms ago
IE: WPA Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
I have worked on several cases where removing a space in the name of the SSID improved connectivity. If this is a router for which you have administrative privileges, I suhhest that you rename it to 301Th or 301_Th or some such without a space.
Next, 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.
Please see this interesting post about the unreliability of auto channel select: https://superuser.com/questions/1311149/why-do-wifi-routers-do-such-a-bad-job-of-channel-selection
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.