I received another error after installing inux515-headers:
~/De/rtl8xxxu master make ✔ 24s
make -C /lib/modules/5.15.16-1-MANJARO/build M=/home/mi/Desktop/rtl8xxxu modules
make[1]: Entering directory '/usr/lib/modules/5.15.16-1-MANJARO/build'
CC [M] /home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.o
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_rx_parse_phystats’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5036:36: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_SHORT_GI’?
5036 | rx_status->flag |= RX_FLAG_SHORT_GI;
| ^~~~~~~~~~~~~~~~
| RX_ENC_FLAG_SHORT_GI
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5036:36: note: each undeclared identifier is reported only once for each function it appears in
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc16’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5262:44: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_8023’?
5262 | rx_status->flag |= RX_FLAG_40MHZ;
| ^~~~~~~~~~~~~
| RX_FLAG_8023
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5265:44: error: ‘RX_FLAG_HT’ undeclared (first use in this function)
5265 | rx_status->flag |= RX_FLAG_HT;
| ^~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc24’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5332:36: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_8023’?
5332 | rx_status->flag |= RX_FLAG_40MHZ;
| ^~~~~~~~~~~~~
| RX_FLAG_8023
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5335:36: error: ‘RX_FLAG_HT’ undeclared (first use in this function)
5335 | rx_status->flag |= RX_FLAG_HT;
| ^~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen1_config_channel’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1155:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1155 | ht = false;
| ~~~^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1156:9: note: here
1156 | case NL80211_CHAN_WIDTH_20:
| ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen2_config_channel’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1282:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
1282 | ht = false;
| ~~~^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1283:9: note: here
1283 | case NL80211_CHAN_WIDTH_20:
| ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_set_key’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5685:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
5685 | key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5686:9: note: here
5686 | default:
| ^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_identify_chip’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1750:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
1750 | priv->ep_tx_count++;
| ~~~~~~~~~~~~~~~~~^~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1751:17: note: here
1751 | case 2:
| ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1753:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
1753 | priv->ep_tx_count++;
| ~~~~~~~~~~~~~~~~~^~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1754:17: note: here
1754 | case 1:
| ^~~~
make[2]: *** [scripts/Makefile.build:277: /home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.o] Error 1
make[1]: *** [Makefile:1868: /home/mi/Desktop/rtl8xxxu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.16-1-MANJARO/build'
make: *** [Makefile:14: modules] Error 2