This is a report on a successful build for Raspberry Pi 4 / Raspberry Pi OS . I attempted a build of the [other "raspbian" repo](https://github.com/fastoe/RTL8812BU_for_Raspbian) that would not build. The RTL8812BU device is being used for network security scanning. ## Build info Hardware = Raspberry Pi 4, OS = Raspberry PI OS Lite 64bit kernel = kernel 6.1.0-rpi7-rpi-v8 aarch64 debian_version = 12.4 branch = v5.13.1 ## Build Steps ``` $ git checkout v5.13.1 # apply patch to wifi_regd.c (see bove) $ make $ make install # follow remaining instructions in readme ``` ## Commit info ``` git log --graph -5 * cfad3d6 - (HEAD -> raspberry-pi-linux-6.1) builds on raspberry pi linux 6.1 . driver loads (2 hours ago) <Anthony Metzidis> * 36deb90 - (origin/v5.13.1, v5.13.1) Update rtl8812bu.yml (11 months ago) <Fastoe> * fae227a - Realtek RTL8812BU Driver(5.13.1) for Linux (11 months ago) <fastoe> * 5a77dc7 - (origin/v5.8.7) Realtek RTL8812BU Driver for Linux (11 months ago) <fastoe> * f5972a7 - CI (11 months ago) <fastoe> * ``` ## Diff ``` diff --git a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c index 81e1dc7..c4dc645 100644 --- a/os_dep/linux/wifi_regd.c +++ b/os_dep/linux/wifi_regd.c @@ -405,7 +405,7 @@ int rtw_regd_init(struct wiphy *wiphy) wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS; #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) && (LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 0))) wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF; #endif ``` ## Testing ``` sudo iw dev INTERFACE scan > scan-2023-12-14.txt
Activity
tonymet commentedon Dec 15, 2023
enabling MONITOR on the interface seems to crash the kernel. I'm looking into acquiring debug logs .