[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9613306.YnBLfnAi8y@ripper>
Date: Thu, 19 May 2022 08:53:37 +0200
From: Sven Eckelmann <sven@...fation.org>
To: davem@...emloft.net, Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, edumazet@...gle.com, pabeni@...hat.com,
Jakub Kicinski <kuba@...nel.org>,
Stefan Schmidt <stefan@...enfreihafen.org>,
johannes@...solutions.net, alex.aring@...il.com,
mareklindner@...mailbox.ch, sw@...onwunderlich.de, a@...table.cc,
linux-wireless@...r.kernel.org, linux-wpan@...r.kernel.org
Subject: Re: [PATCH net-next v2] net: ifdefy the wireless pointers in struct net_device
On Wednesday, 18 May 2022 20:18:07 CEST Jakub Kicinski wrote:
> diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
> index 83fb51b6e299..b8f8da7ee3de 100644
> --- a/net/batman-adv/hard-interface.c
> +++ b/net/batman-adv/hard-interface.c
> @@ -307,9 +307,11 @@ static bool batadv_is_cfg80211_netdev(struct net_device *net_device)
> if (!net_device)
> return false;
>
> +#if IS_ENABLED(CONFIG_CFG80211)
> /* cfg80211 drivers have to set ieee80211_ptr */
> if (net_device->ieee80211_ptr)
> return true;
> +#endif
>
> return false;
> }
Acked-by: Sven Eckelmann <sven@...fation.org>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists