I did ran the commands in this and this posts, but got the following errors which chili555 mentioned but still my signal keeps being weak.
Tried changing config_enabled to x2apic_enabled with no luck.
EDIT: After following chili555's answer i ran the -uname -r command and it returned this
4.15.0-118-generic
So I downloaded v4.14-rc2/ and it gave this error:
/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k/htt_rx.c: In function ‘ath10k_htt_rx_alloc’: /home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k/htt_rx.c:510:2: error: implicit declaration of function ‘setup_timer’; did you mean ‘sk_stop_timer’? [-Werror=implicit-function-declaration] setup_timer(timer, ath10k_htt_rx_ring_refill_retry, (unsigned long)htt); ^~~~~~~~~~~ sk_stop_timer cc1: some warnings being treated as errors scripts/Makefile.build:330: recipe for target '/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k/htt_rx.o' failed make[8]: *** [/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k/htt_rx.o] Error 1 scripts/Makefile.build:604: recipe for target '/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k' failed make[7]: *** [/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath/ath10k] Error 2 scripts/Makefile.build:604: recipe for target '/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath' failed make[6]: *** [/home/yanes/backports-4.14-rc2-1/drivers/net/wireless/ath] Error 2 scripts/Makefile.build:604: recipe for target '/home/yanes/backports-4.14-rc2-1/drivers/net/wireless' failed make[5]: *** [/home/yanes/backports-4.14-rc2-1/drivers/net/wireless] Error 2 Makefile:1585: recipe for target 'module/home/yanes/backports-4.14-rc2-1' failed make[4]: *** [module/home/yanes/backports-4.14-rc2-1] Error 2 Makefile.build:6: recipe for target 'modules' failed make[3]: *** [modules] Error 2 Makefile.real:88: recipe for target 'modules' failed make2: *** [modules] Error 2 Makefile:40: recipe for target 'modules' failed make1: *** [modules] Error 2 Makefile:30: recipe for target 'default' failed make: *** [default] Error 2
EDIT 2: My laptop freezes unless I turn the wi-fi off, tried installing older version instead of newer (v4.1.1) by disabling wi-fi but It returns that I have no permission? Here's the output.
make2: execvp: ./lxdialog/check-lxdialog.sh: Permission denied make2: execvp: ./lxdialog/check-lxdialog.sh: Permission denied make2: 'conf' is up to date. make1: execvp: ./kconf/conf: Permission denied Makefile.real:41: recipe for target 'defconfig-ath10k' failed make1: *** [defconfig-ath10k] Error 127 Makefile:40: recipe for target 'defconfig-ath10k' failed make: *** [defconfig-ath10k] Error 2