Realtek New Master Make 错误参数名称队列在 Ubuntu 20.04 上高

Realtek New Master Make 错误参数名称队列在 Ubuntu 20.04 上高

我刚刚从 Windows 转到 Ubuntu 20.04,但我的 Wifi 信号很弱。有时它工作正常,然后几秒钟后信号完全丢失,几秒钟后信号又出现,然后几秒钟后信号完全消失,这种情况不断发生。当信号丢失时,我访问任何网站,它都会显示互联网未连接。我偶然发现了一篇文章:https://connectwww.com/how-to-solve-realtek-rtl8723be-weak-wifi-signal-problem-in-ubuntu/4625/

在本文中,他们说要运行 make 命令。当我进入该目录并运行制作命令然后几分钟后我收到此错误并且命令终止:

alex@alexelsner:~/Desktop/rtlwifi_new-master$ make
make -C /lib/modules/5.11.0-27-generic/build M=/home/alex/Desktop/rtlwifi_new-master modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-27-generic'
  CC [M]  /home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.o
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c: In function ‘_rtl92cu_init_chipN_one_out_ep_priority’:
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:622:2: warning: parameter names (without types) in function declaration
  622 |  u16 uninitialized_var(value);
      |  ^~~
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:626:3: error: ‘value’ undeclared (first use in this function)
  626 |   value = QUEUE_HIGH;
      |   ^~~~~
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:626:3: note: each undeclared identifier is reported only once for each function it appears in
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c: In function ‘_rtl92cu_init_chipN_two_out_ep_priority’:
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:648:2: warning: parameter names (without types) in function declaration
  648 |  u16 uninitialized_var(valueHi);
      |  ^~~
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:649:2: warning: parameter names (without types) in function declaration
  649 |  u16 uninitialized_var(valueLow);
      |  ^~~
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:653:3: error: ‘valueHi’ undeclared (first use in this function)
  653 |   valueHi = QUEUE_HIGH;
      |   ^~~~~~~
/home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.c:654:3: error: ‘valueLow’ undeclared (first use in this function)
  654 |   valueLow = QUEUE_LOW;
      |   ^~~~~~~~
make[3]: *** [scripts/Makefile.build:287: /home/alex/Desktop/rtlwifi_new-master/rtl8192cu/hw.o] Error 1
make[2]: *** [scripts/Makefile.build:518: /home/alex/Desktop/rtlwifi_new-master/rtl8192cu] Error 2
make[1]: *** [Makefile:1848: /home/alex/Desktop/rtlwifi_new-master] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-27-generic'
make: *** [Makefile:76: all] Error 2
alex@alexelsner:~/Desktop/rtlwifi_new-master$

请有人帮助我,我面临太多问题。

相关内容