0
0
mirror of https://github.com/openwrt/routing.git synced 2025-01-18 22:11:48 +00:00
routing/batman-adv/patches/0001-fix-batadv_is_cfg80211_netdev.patch
Sven Eckelmann 9e2c5aee8d batman-adv: Drop support for kernel < 6.6
OpenWrt main is no longer providing any kernels older than 6.6. Just
drop the compat-hacks/patches for older kernels to make it easier to
maintain the package.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2024-10-15 21:12:36 +02:00

20 lines
580 B
Diff

From: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Date: Thu, 6 Apr 2023 18:05:50 -0500
Subject: fix batadv_is_cfg80211_netdev
Replace CONFIG_CFG80211 with CPTCFG_CFG80211, which is the correct
macro to use when building under backports.
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -308,8 +308,7 @@ static bool batadv_is_cfg80211_netdev(st
{
if (!net_device)
return false;
-
-#if IS_ENABLED(CONFIG_CFG80211)
+#if IS_ENABLED(CPTCFG_CFG80211)
/* cfg80211 drivers have to set ieee80211_ptr */
if (net_device->ieee80211_ptr)
return true;