From: Holger Schurig <hs4233@mail.mn-solutions.de>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-wireless@vger.kernel.org
Subject: Re: WARNING: slow-path
Date: Mon, 12 Oct 2009 16:02:58 +0200 [thread overview]
Message-ID: <200910121602.58245.hs4233@mail.mn-solutions.de> (raw)
In-Reply-To: <1255352906.30919.11.camel@macbook.infradead.org>
> What happens if you make that last argument NULL instead of
> passing 'dummy' back to it? That makes cfg80211_send_deauth()
> magically do different things w.r.t. locking.
That worked, thanks.
> Johannes, this is _evil_:
It's not only _evil_, it's also undocumented. I was just
following include/net/cfg80211.h. There is no kernel-doc in the
comments for "cookie", neither in
[struct cfg80211_ops:]
int (*deauth)(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_deauth_request *req,
void *cookie);
nor in
void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len,
void *cookie);
so I automatically assumed that I have to provide the "cookie" I
got in my deauth()-handler to cfg80211_send_deauth().
/me says "I can haz a cookie?"
--
http://www.holgerschurig.de
prev parent reply other threads:[~2009-10-12 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 11:35 WARNING: slow-path Holger Schurig
2009-10-12 13:08 ` David Woodhouse
2009-10-12 14:02 ` Holger Schurig [this message]
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=200910121602.58245.hs4233@mail.mn-solutions.de \
--to=hs4233@mail.mn-solutions.de \
--cc=dwmw2@infradead.org \
--cc=linux-wireless@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox