mirror of
https://github.com/openwrt/routing.git
synced 2025-01-18 22:11:48 +00:00
9e2c5aee8d
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>
20 lines
580 B
Diff
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;
|