┌──(root㉿kali)-[/home/kali/rtlwifi_new]
└─# make
make -C /lib/modules/6.6.15-amd64/build M=/home/kali/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.15-amd64'
CC [M] /home/kali/rtlwifi_new/main.o
/home/kali/rtlwifi_new/main.c: In function ‘rtw_vif_watch_dog_iter’:
/home/kali/rtlwifi_new/main.c:162:34: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’
162 | if (vif->bss_conf.assoc)
| ^
In file included from /usr/src/linux-headers-6.6.15-common/include/linux/byteorder/little_endian.h:5,
from /usr/src/linux-headers-6.6.15-common/arch/x86/include/uapi/asm/byteorder.h:5,
from /usr/src/linux-headers-6.6.15-common/include/asm-generic/qrwlock_types.h:6,
from /usr/src/linux-headers-6.6.15-common/arch/x86/include/asm/spinlock_types.h:7,
from /usr/src/linux-headers-6.6.15-common/include/linux/spinlock_types_raw.h:7,
from /usr/src/linux-headers-6.6.15-common/include/linux/ratelimit_types.h:7,
from /usr/src/linux-headers-6.6.15-common/include/linux/printk.h:9,
from /usr/src/linux-headers-6.6.15-common/include/asm-generic/bug.h:22,
from /usr/src/linux-headers-6.6.15-common/arch/x86/include/asm/bug.h:87,
from /usr/src/linux-headers-6.6.15-common/include/linux/bug.h:5,
from /usr/src/linux-headers-6.6.15-common/include/net/mac80211.h:16,
from /home/kali/rtlwifi_new/main.h:15,
from /home/kali/rtlwifi_new/main.c:5:
/home/kali/rtlwifi_new/main.c: In function ‘get_vht_ra_mask’:
/home/kali/rtlwifi_new/main.c:516:38: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
516 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map);
| ^~
/usr/src/linux-headers-6.6.15-common/include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro ‘le16_to_cpu’
37 | #define le16_to_cpu(x) ((force u16)(le16)(x))
| ^
/home/kali/rtlwifi_new/main.c:516:23: note: in expansion of macro ‘le16_to_cpu’
516 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map);
| ^~~
/home/kali/rtlwifi_new/main.c: In function ‘rtw_update_sta_info’:
/home/kali/rtlwifi_new/main.c:718:16: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
718 | if (sta->vht_cap.vht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:721:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
721 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK)
| ^~
/home/kali/rtlwifi_new/main.c:723:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
723 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC)
| ^~
/home/kali/rtlwifi_new/main.c:725:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
725 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80)
| ^~
/home/kali/rtlwifi_new/main.c:727:23: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
727 | } else if (sta->ht_cap.ht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:728:32: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
728 | ra_mask |= (sta->ht_cap.mcs.rx_mask[1] << 20) |
| ^~
/home/kali/rtlwifi_new/main.c:729:32: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
729 | (sta->ht_cap.mcs.rx_mask[0] << 12);
| ^~
/home/kali/rtlwifi_new/main.c:730:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
730 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC)
| ^~
/home/kali/rtlwifi_new/main.c:732:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
732 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING)
| ^~
/home/kali/rtlwifi_new/main.c:734:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
734 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20 ||
| ^~
/home/kali/rtlwifi_new/main.c:735:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
735 | sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)
| ^~
/home/kali/rtlwifi_new/main.c:743:36: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
743 | ra_mask |= (u64)sta->supp_rates[NL80211_BAND_5GHZ] << 4;
| ^~
/home/kali/rtlwifi_new/main.c:744:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
744 | if (sta->vht_cap.vht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:747:31: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
747 | } else if (sta->ht_cap.ht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:754:31: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
754 | ra_mask |= sta->supp_rates[NL80211_BAND_2GHZ];
| ^~
/home/kali/rtlwifi_new/main.c:755:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
755 | if (sta->vht_cap.vht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:760:31: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
760 | } else if (sta->ht_cap.ht_supported) {
| ^~
/home/kali/rtlwifi_new/main.c:765:31: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’
765 | } else if (sta->supp_rates[0] <= 0xf) {
| ^~
/home/kali/rtlwifi_new/main.c:775:20: error: ‘struct ieee80211_sta’ has no member named ‘bandwidth’
775 | switch (sta->bandwidth) {
| ^~
/home/kali/rtlwifi_new/main.c:787:16: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
787 | if (sta->vht_cap.vht_supported && ra_mask & 0xffc00000) {
| ^~
/home/kali/rtlwifi_new/main.c:790:23: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’
790 | } else if (sta->ht_cap.ht_supported && ra_mask & 0xfff00000) {
| ^~
/home/kali/rtlwifi_new/main.c: In function ‘hw_bw_cap_to_bitamp’:
/home/kali/rtlwifi_new/main.c:476:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
476 | bw |= BIT(RTW_CHANNEL_WIDTH_80);
/home/kali/rtlwifi_new/main.c:478:9: note: here
478 | case EFUSE_HW_CAP_SUPP_BW40:
| ^~~~
/home/kali/rtlwifi_new/main.c:479:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
479 | bw |= BIT(RTW_CHANNEL_WIDTH_40);
/home/kali/rtlwifi_new/main.c:481:9: note: here
481 | default:
| ^~~
make[3]: [/usr/src/linux-headers-6.6.15-common/scripts/Makefile.build:248: /home/kali/rtlwifi_new/main.o] Error 1
make[2]: [/usr/src/linux-headers-6.6.15-common/Makefile:1938: /home/kali/rtlwifi_new] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.15-common/Makefile:246: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.15-amd64'
make: *** [Makefile:79: all] Error 2
┌──(root㉿kali)-[/home/kali] └─# cd rtlwifi_new
┌──(root㉿kali)-[/home/kali/rtlwifi_new] └─# make make -C /lib/modules/6.6.15-amd64/build M=/home/kali/rtlwifi_new modules make[1]: Entering directory '/usr/src/linux-headers-6.6.15-amd64' CC [M] /home/kali/rtlwifi_new/main.o /home/kali/rtlwifi_new/main.c: In function ‘rtw_vif_watch_dog_iter’: /home/kali/rtlwifi_new/main.c:162:34: error: ‘struct ieee80211_bss_conf’ has no member named ‘assoc’ 162 | if (vif->bss_conf.assoc) | ^ In file included from /usr/src/linux-headers-6.6.15-common/include/linux/byteorder/little_endian.h:5, from /usr/src/linux-headers-6.6.15-common/arch/x86/include/uapi/asm/byteorder.h:5, from /usr/src/linux-headers-6.6.15-common/include/asm-generic/qrwlock_types.h:6, from /usr/src/linux-headers-6.6.15-common/arch/x86/include/asm/spinlock_types.h:7, from /usr/src/linux-headers-6.6.15-common/include/linux/spinlock_types_raw.h:7, from /usr/src/linux-headers-6.6.15-common/include/linux/ratelimit_types.h:7, from /usr/src/linux-headers-6.6.15-common/include/linux/printk.h:9, from /usr/src/linux-headers-6.6.15-common/include/asm-generic/bug.h:22, from /usr/src/linux-headers-6.6.15-common/arch/x86/include/asm/bug.h:87, from /usr/src/linux-headers-6.6.15-common/include/linux/bug.h:5, from /usr/src/linux-headers-6.6.15-common/include/net/mac80211.h:16, from /home/kali/rtlwifi_new/main.h:15, from /home/kali/rtlwifi_new/main.c:5: /home/kali/rtlwifi_new/main.c: In function ‘get_vht_ra_mask’: /home/kali/rtlwifi_new/main.c:516:38: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 516 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map); | ^~ /usr/src/linux-headers-6.6.15-common/include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro ‘le16_to_cpu’ 37 | #define le16_to_cpu(x) ((force u16)(le16)(x)) | ^ /home/kali/rtlwifi_new/main.c:516:23: note: in expansion of macro ‘le16_to_cpu’ 516 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map); | ^
~~/home/kali/rtlwifi_new/main.c: In function ‘rtw_update_sta_info’: /home/kali/rtlwifi_new/main.c:718:16: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 718 | if (sta->vht_cap.vht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:721:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 721 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) | ^~ /home/kali/rtlwifi_new/main.c:723:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 723 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) | ^~ /home/kali/rtlwifi_new/main.c:725:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 725 | if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80) | ^~ /home/kali/rtlwifi_new/main.c:727:23: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 727 | } else if (sta->ht_cap.ht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:728:32: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 728 | ra_mask |= (sta->ht_cap.mcs.rx_mask[1] << 20) | | ^~ /home/kali/rtlwifi_new/main.c:729:32: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 729 | (sta->ht_cap.mcs.rx_mask[0] << 12); | ^~ /home/kali/rtlwifi_new/main.c:730:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 730 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) | ^~ /home/kali/rtlwifi_new/main.c:732:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 732 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) | ^~ /home/kali/rtlwifi_new/main.c:734:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 734 | if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20 || | ^~ /home/kali/rtlwifi_new/main.c:735:24: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 735 | sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) | ^~ /home/kali/rtlwifi_new/main.c:743:36: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’ 743 | ra_mask |= (u64)sta->supp_rates[NL80211_BAND_5GHZ] << 4; | ^~ /home/kali/rtlwifi_new/main.c:744:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 744 | if (sta->vht_cap.vht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:747:31: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 747 | } else if (sta->ht_cap.ht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:754:31: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’ 754 | ra_mask |= sta->supp_rates[NL80211_BAND_2GHZ]; | ^~ /home/kali/rtlwifi_new/main.c:755:24: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 755 | if (sta->vht_cap.vht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:760:31: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 760 | } else if (sta->ht_cap.ht_supported) { | ^~ /home/kali/rtlwifi_new/main.c:765:31: error: ‘struct ieee80211_sta’ has no member named ‘supp_rates’ 765 | } else if (sta->supp_rates[0] <= 0xf) { | ^~ /home/kali/rtlwifi_new/main.c:775:20: error: ‘struct ieee80211_sta’ has no member named ‘bandwidth’ 775 | switch (sta->bandwidth) { | ^~ /home/kali/rtlwifi_new/main.c:787:16: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’ 787 | if (sta->vht_cap.vht_supported && ra_mask & 0xffc00000) { | ^~ /home/kali/rtlwifi_new/main.c:790:23: error: ‘struct ieee80211_sta’ has no member named ‘ht_cap’ 790 | } else if (sta->ht_cap.ht_supported && ra_mask & 0xfff00000) { | ^~ /home/kali/rtlwifi_new/main.c: In function ‘hw_bw_cap_to_bitamp’: /home/kali/rtlwifi_new/main.c:476:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 476 | bw |= BIT(RTW_CHANNEL_WIDTH_80); /home/kali/rtlwifi_new/main.c:478:9: note: here 478 | case EFUSE_HW_CAP_SUPP_BW40: | ^~~~ /home/kali/rtlwifi_new/main.c:479:20: warning: this statement may fall through [-Wimplicit-fallthrough=] 479 | bw |= BIT(RTW_CHANNEL_WIDTH_40); /home/kali/rtlwifi_new/main.c:481:9: note: here 481 | default: | ^~~ make[3]: [/usr/src/linux-headers-6.6.15-common/scripts/Makefile.build:248: /home/kali/rtlwifi_new/main.o] Error 1 make[2]: [/usr/src/linux-headers-6.6.15-common/Makefile:1938: /home/kali/rtlwifi_new] Error 2 make[1]: *** [/usr/src/linux-headers-6.6.15-common/Makefile:246: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.6.15-amd64' make: *** [Makefile:79: all] Error 2