Erro ao instalar o pacote broadcom-sta-dkms

Tentei instalar o pacote no debian e deu esse erro:

Error! Bad return status for module build on kernel: 6.2.9 (x86_64) Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more informat ion. dpkg: erro ao processar o pacote broadcom-sta-dkms (--configure): o subprocesso instalado, do pacote broadcom-sta-dkms, o script post-installatio n retornou erro do status de saída 10 Erros foram encontrados durante o processamento de: broadcom-sta-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)

Como dito, olhei no arquivo /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log e achei isso:

DKMS make.log for broadcom-sta-6.30.223.271 for kernel 6.2.9 (x86_64) sex 21 abr 2023 10:09:04 -03 CFG80211 API is prefered for this kernel version Makefile:89: Neither CFG80211 nor Wireless Extension is enabled in kernel KBUILD_NOPEDANTIC=1 make -C /lib/modules/6.2.9/build M=pwd`make[1]: aviso: jobserver indisponível: usando -j1. Inclua '+' na regra pai. ` `make[1]: Entrando no diretório '/home/breno/Downloads/Linux/linux-6.2.9'` CFG80211 API is prefered for this kernel version Using CFG80211 API Kernel architecture is X86_64 CC [M] /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_alloc_consistent’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:603:7: error: implicit declaration of function ‘pci_alloc_consistent’; did you mean ‘osl_dma_alloc_consistent’? [-Werror=implicit-function-declaration] 603 | va = pci_alloc_consistent(osh->pdev, size, (dma_addr_t*)pap); | ^~~~~~~~~~~~~~~~~~~~ | osl_dma_alloc_consistent /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:603:5: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 603 | va = pci_alloc_consistent(osh->pdev, size, (dma_addr_t*)pap); | ^ /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_free_consistent’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:616:2: error: implicit declaration of function ‘pci_free_consistent’; did you mean ‘osl_dma_free_consistent’? [-Werror=implicit-function-declaration] 616 | pci_free_consistent(osh->pdev, size, va, (dma_addr_t)pa); | ^~~~~~~~~~~~~~~~~~~ | osl_dma_free_consistent /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_map’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:31: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function); did you mean ‘DMA_TO_DEVICE’? 626 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE; | ^~~~~~~~~~~~~~~~ | DMA_TO_DEVICE /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:31: note: each undeclared identifier is reported only once for each function it appears in /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:626:49: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function); did you mean ‘DMA_FROM_DEVICE’? 626 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE; | ^~~~~~~~~~~~~~~~~~ | DMA_FROM_DEVICE /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:659:10: error: implicit declaration of function ‘pci_map_single’; did you mean ‘dma_map_single’? [-Werror=implicit-function-declaration] 659 | return (pci_map_single(osh->pdev, va, size, dir)); | ^~~~~~~~~~~~~~ | dma_map_single /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c: In function ‘osl_dma_unmap’: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:668:31: error: ‘PCI_DMA_TODEVICE’ undeclared (first use in this function); did you mean ‘DMA_TO_DEVICE’? 668 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE; | ^~~~~~~~~~~~~~~~ | DMA_TO_DEVICE /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:668:49: error: ‘PCI_DMA_FROMDEVICE’ undeclared (first use in this function); did you mean ‘DMA_FROM_DEVICE’? 668 | dir = (direction == DMA_TX)? PCI_DMA_TODEVICE: PCI_DMA_FROMDEVICE; | ^~~~~~~~~~~~~~~~~~ | DMA_FROM_DEVICE /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.c:669:2: error: implicit declaration of function ‘pci_unmap_single’; did you mean ‘dma_unmap_single’? [-Werror=implicit-function-declaration] 669 | pci_unmap_single(osh->pdev, (uint32)pa, size, dir); | ^~~~~~~~~~~~~~~~ | dma_unmap_single cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o] Erro 1 make[1]: *** [Makefile:2021: /var/lib/dkms/broadcom-sta/6.30.223.271/build] Erro 2 make[1]: Saindo do diretório '/home/breno/Downloads/Linux/linux-6.2.9' `` make: *** [Makefile:181: all] Erro 2

Como resolver isso? Já fiz essa instalação anteriormente e não deu problema

Linux 6.2.9 no Debian 11

Tenta iniciar o sistema com o kernel em uma versão anterior e tenta reinstalar o broadcom-sta-dkms
. Talvez a compilação esteja quebrando apenas para essa nova versão de kernel.

funcionou vlw