在 wifi 内核模块上运行 make 时出错

在 wifi 内核模块上运行 make 时出错

我尝试按照给出的说明解决我的 wifi 连接问题这里

当我尝试以下操作时:

sudo apt-get install linux-headers-generic build-essential git 
git clone http://github.com/lwfinger/rtl8723be
cd rtl8723be
make

我收到以下错误消息:

~/rtl8723be/regd.c: in function ‘_rtl_reg_apply_beaconing_flags’:
~/rtl8723be/regd.c:200:20: error: ‘IEEE80211_CHAN_NO_IR’ undeclared(first used in this function)
~/rtl8723be/regd.c:200:20: note: every undeclared identifier reported only once in the function
~/rtl8723be/regd.c: in function‘_rtl_reg_apply_active_scan_flags’:
~/rtl8723be/regd.c:237:19: error: ‘IEEE80211_CHAN_NO_IR’undeclared(first used in this function)
~/rtl8723be/regd.c: in function‘_rtl_reg_apply_radar_flags’:
~/rtl8723be/regd.c:312:8: error: ‘IEEE80211_CHAN_NO_IR’undeclared(first used in this function)
~/rtl8723be/regd.c: in function‘_rtl_regd_init_wiphy’:
~/rtl8723be/regd.c:410:18: error: ‘REGULATORY_CUSTOM_REG’undeclared(first used in this function)
~/rtl8723be/regd.c:411:19: error: ‘REGULATORY_STRICT_REG’undeclared(first used in this function)
~/rtl8723be/regd.c:412:19: error: ‘REGULATORY_DISABLE_BEACON_HINTS’undeclared(first used in this function)
make[2]: *** [/home/science/wifi/rtl8723be/regd.o] error 1
make[1]: *** [_module_/home/science/wifi/rtl8723be] error 2
make[1]:leaving directory `/usr/src/linux-headers-3.8.0-36-generic'
make: *** [all] error 2

有人能帮帮我吗?谢谢。

答案1

最新版本已修改为可在内核版本 3.14 上正确编译;您使用的是 3.8.0-36。需要获取该软件包的早期版本。请打开终端并尝试:

cd rtl8723be
make clean
git checkout 604aa9058fb9e5bb1cf571c99989d081f8fc8b9
make
sudo make install
sudo modprobe rtl8723be

我相信它不会出错,但也许会出现一些警告。

相关内容