Try this:
Internet connected your ethernet card.
Open a terminal,
Press
Ctrl+
Alt+
T
Run it:
exec sudo -i
apt-get update
apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | tee /etc/modprobe.d/ath10k_core.conf
wget https://www.kernel.org/pub/linux/kernel/projects/backports/2015/11/20/backports-20151120.tar.gz
tar zxvf backports-20151120.tar.gz
cd backports-20151120
make defconfig-wifi
make
make install
git clone https://github.com/kvalo/ath10k-firmware.git
cp -r ath10k-firmware/QCA9377 /lib/firmware/ath10k/
cp /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin_WLAN.TF.1.0-00267-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
reboot
Whenever you upgrade your kernel you must run
exec sudo -i
cd backports-20151120
make clean
make defconfig-wifi
make
make install