rtlwifi compilation error

Asked by xiao-dong li

Hi,

I am using Ubuntu 16.04 LTS on my computer Lenovo thinkpad S5. The wifi hardware is rtl8822be.

I found it unable to enable wifi, so I download the official software for hardware driver (I have tried many other methods but all failed).

To compile the driver, in "rtlwifi-next" folder, when type "make", the following error reported:

make -C /lib/modules/4.13.0-31-generic/build M=/home/xiaodongli/software/rtlwifi-next-old modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-31-generic'
  CC [M] /home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.o
/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.c: In function rtl88ee_rx_query_desc
/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.c:447:22: error: RX_FLAG_40MHZ undeclared (first use in this function)
   rx_status->flag |= RX_FLAG_40MHZ;
                      ^
/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.c:447:22: note: each undeclared identifier is reported only once for each function it appears in
/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.c:450:22: error: RX_FLAG_HT undeclared (first use in this function)
   rx_status->flag |= RX_FLAG_HT;
                      ^
scripts/Makefile.build:308: recipe for target '/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.o' failed
make[3]: *** [/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee/trx.o] Error 1
scripts/Makefile.build:581: recipe for target '/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee' failed
make[2]: *** [/home/xiaodongli/software/rtlwifi-next-old/rtl8188ee] Error 2
Makefile:1550: recipe for target '_module_/home/xiaodongli/software/rtlwifi-next-old' failed
make[1]: *** [_module_/home/xiaodongli/software/rtlwifi-next-old] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-31-generic'
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2

Have anybody encountered the same problem? Any suggestion about how to solve this?

Thank you in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1
Revision history for this message
xiao-dong li (xiaodongli) said :
#2

Ah thank you, I have tried using the package rtlwifi_new_stephen42 long time ago
There is no problem to compile without error, but there is no driver for rtl8822be.
I have tried using other packages -- e.g. typing "sudo modprobe rtl8821ae" -- and it does not work...

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

The readme of https://github.com/lwfinger/rtlwifi_new states:

If you are looking for the driver for rtl8822be or rtl8723de, then execute the following command:
git checkout origin/extended -b extended

( https://github.com/lwfinger/rtlwifi_new/archive/extended.zip )

Revision history for this message
xiao-dong li (xiaodongli) said :
#4

Thanks Manfred Hampl, that solved my question.