Skip to content
Snippets Groups Projects
Select Git revision
  • 7dce74c0f9af63307f6d6d1285b06da711ff8816
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-07-21
  • experimental-2025-07-21-base
  • experimental-2025-07-20
  • experimental-2025-07-20-base
  • experimental-2025-07-19
  • experimental-2025-07-19-base
  • experimental-2025-07-17
  • experimental-2025-07-17-base
  • experimental-2025-07-12
  • experimental-2025-07-12-base
  • experimental-2025-07-04
  • experimental-2025-07-04-base
  • experimental-2025-07-01
  • experimental-2025-07-01-base
  • experimental-2025-06-25
  • experimental-2025-06-25-base
  • experimental-2025-06-24
  • experimental-2025-06-24-base
  • experimental-2025-06-22
  • experimental-2025-06-22-base
41 results

0054-mt76-fix-build-with-kernel-3.18.patch

Blame
  • 0054-mt76-fix-build-with-kernel-3.18.patch 1.38 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Thu, 30 Jun 2016 21:52:02 +0200
    Subject: mt76: fix build with kernel 3.18
    
    diff --git a/package/kernel/mac80211/patches/945-netdev_alloc_frag.patch b/package/kernel/mac80211/patches/945-netdev_alloc_frag.patch
    new file mode 100644
    index 0000000000000000000000000000000000000000..ea389cd85cb15c7ecb20a1e0c934fcf8b58c0eda
    --- /dev/null
    +++ b/package/kernel/mac80211/patches/945-netdev_alloc_frag.patch
    @@ -0,0 +1,11 @@
    +--- a/backport-include/linux/netdevice.h
    ++++ b/backport-include/linux/netdevice.h
    +@@ -233,7 +233,7 @@ static inline void backport_unregister_n
    + #endif
    + 
    + #if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
    +-#define napi_alloc_frag(fragsz) netdev_alloc_frag(fragsz)
    ++#define napi_alloc_frag netdev_alloc_frag
    + #endif
    + 
    + /*
    diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
    index bd851e61910c9a57ca45a570855ca22329c9ae4b..989ba0c2e8d10f6e7bb8fbd31e7181efff19be7c 100644
    --- a/package/kernel/mt76/Makefile
    +++ b/package/kernel/mt76/Makefile
    @@ -24,7 +24,7 @@ include $(INCLUDE_DIR)/package.mk
     define KernelPackage/mt76
       SUBMENU:=Wireless Drivers
       TITLE:=MediaTek MT76x2/MT7603 wireless driver
    -  DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT @PCI_SUPPORT @!LINUX_3_18
    +  DEPENDS:=+kmod-mac80211 +@DRIVER_11N_SUPPORT @PCI_SUPPORT
       FILES:=\
     	$(PKG_BUILD_DIR)/mt76.ko \
     	$(PKG_BUILD_DIR)/mt76x2e.ko \