Skip to content

Instantly share code, notes, and snippets.

View evilJazz's full-sized avatar

Andre H. Beckedorf evilJazz

View GitHub Profile
@evilJazz
evilJazz / virtualbox-modules-5.2.8-vboxpci.patch
Last active July 30, 2018 08:47
Patch for VirtualBox 5.2.8/5.2.10 modules to compile against Linux Kernel 4.17
--- /original/VBoxPci-linux.c
+++ /patched/VBoxPci-linux.c
@@ -89,7 +89,11 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
# define PCI_DEV_GET(v,d,p) pci_get_device(v,d,p)
# define PCI_DEV_PUT(x) pci_dev_put(x)
-# define PCI_DEV_GET_SLOT(bus, devfn) pci_get_bus_and_slot(bus, devfn)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0)
+ # define PCI_DEV_GET_SLOT(bus, devfn) pci_get_domain_bus_and_slot(0, bus, devfn)
+#else
### hostapd configuration file, loosely based on http://pisarenko.net/blog/2015/02/01/beginners-guide-to-802-dot-11ac-setup/
### for Realtek RTL8812AU via driver https://github.com/abperiasamy/rtl8812AU_8821AU_linux
### and hostap 2.5
### Operates at 135 Mbps in 802.11n/ht mode. iperf measures ~8.00 MBytes/sec 67.1 Mbits/sec
### I was not able to get 802.11ac/vht mode with additional side-channels configured with the driver.
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=wlan2
driver=nl80211