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