From: Alexandru Gagniuc 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 @@ -307,8 +307,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;