From: Joe Perches <joe@perches.com>
To: Ola Olsson <ola1olsson@gmail.com>, johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org, Ola Olsson <ola.olsson@sonymobile.com>
Subject: Re: [PATCH] Print warnings for missing cfg80211_ops implementations
Date: Wed, 16 Dec 2015 17:16:12 -0800 [thread overview]
Message-ID: <1450314972.5661.2.camel@perches.com> (raw)
In-Reply-To: <1450302215-16156-1-git-send-email-ola1olsson@gmail.com>
On Wed, 2015-12-16 at 22:43 +0100, Ola Olsson wrote:
> Print a warning whenever an expected callback function
> lacks implementation.
>
> Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
> ---
> net/wireless/core.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/net/wireless/core.c b/net/wireless/core.c
> index b091551..3a9c41b 100644
> --- a/net/wireless/core.c
> +++ b/net/wireless/core.c
> @@ -352,6 +352,16 @@ struct wiphy *wiphy_new_nm(const struct cfg80211_ops *ops, int sizeof_priv,
> WARN_ON(ops->add_station && !ops->del_station);
> WARN_ON(ops->add_mpath && !ops->del_mpath);
> WARN_ON(ops->join_mesh && !ops->leave_mesh);
> + WARN_ON(ops->start_p2p_device && !ops->stop_p2p_device);
> + WARN_ON(ops->start_ap && !ops->stop_ap);
> + WARN_ON(ops->join_ocb && !ops->leave_ocb);
> + WARN_ON(ops->suspend && !ops->resume);
> + WARN_ON(ops->sched_scan_start && !ops->sched_scan_stop);
> + WARN_ON(ops->remain_on_channel && !ops->cancel_remain_on_channel);
> + WARN_ON(ops->tdls_channel_switch && !ops->tdls_cancel_channel_switch);
> + WARN_ON(ops->add_tx_ts && !ops->del_tx_ts);
> + WARN_ON(ops->set_tx_power && !ops->get_tx_power);
> + WARN_ON(ops->set_antenna && !ops->get_antenna);
maybe all of these should be a nand b?
next prev parent reply other threads:[~2015-12-17 1:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 21:43 [PATCH] Print warnings for missing cfg80211_ops implementations Ola Olsson
2015-12-17 1:16 ` Joe Perches [this message]
[not found] ` <CABAco3BSaB9R6-nZQsmOnfXXy2ra-un0jjeBkyq4inzCybD5dw@mail.gmail.com>
2015-12-17 5:19 ` Joe Perches
2015-12-17 7:34 ` Ola Olsson
2015-12-17 7:57 ` Johannes Berg
2015-12-17 11:01 ` Joe Perches
2015-12-17 11:43 ` Ola Olsson
2015-12-17 12:43 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450314972.5661.2.camel@perches.com \
--to=joe@perches.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=ola.olsson@sonymobile.com \
--cc=ola1olsson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.