问题描述:安装了win10和Ubuntu 18.04.2 LTS双系统。win10中无线有线均可以上网,ubuntu中可以USB连接手机上网,但是无法连接wifi,设置中显示“未发现Wifi适配器”。
有线网卡型号:Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
无线网卡型号:Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
在终端使用lspci命令二者均可显示
尝试解决:
终端中使用如下命令
sudo apt-get install build-essential linux-headers-$(uname -r) git
echo "options ath10k_core skip_otp=y" | sudo 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
sudo make install
在输入make命令之后报错:
/home/l/backports-20151120/backport-include/linux/kconfig.h:25:28: warning: "config_enabled" is not defined, evaluates to 0 [-Wundef]
#define IS_BUILTIN(option) config_enabled(option)
^