Не копилируется драйвер для сетевой карты TPLink t2u plus
Проблема: при установке адаптера на базе ubuntu 20.04 устройство не обнаружено, lsusb определило подключение
Bus 003 Device 002: ID 2357:0120 TP-Link 802.11ac WLAN Adapter, в результате
скачиваем и устанавливаем драйвера из https://github.com/morrownr/8821au-20210708
В момент компиляции столкнулся с ошибкой
Creating symlink /var/lib/dkms/rtl8821au/5.12.5.2/source ->
/usr/src/rtl8821au-5.12.5.2
DKMS: add completed.
The driver was added to dkms successfully.
: ---------------------------
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
kernelver=6.1.0-hiveos ./dkms-make.sh........(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.0-hiveos (x86_64)
Consult /var/lib/dkms/rtl8821au/5.12.5.2/build/make.log for more information.
An error occurred. dkms build error: 10
Please report this error.
Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.
$ sudo ./remove-driver.sh
далее смотрим make.log
в нем ошибка
/var/lib/dkms/rtl8821au/5.12.5.2/build/os_dep/linux/wifi_regd.c:409:29: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function)
409 | wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
решение
найти и открыть в драйверах фаил wifi_regd.c
в 409 строке
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 39))
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif
заменить на
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) && defined(REGULATORY_IGNORE_STALE_KICKOFF)
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif
перезапустить систему и настроить wifi.
Комментарии
Добавить комментарий