From: Jiri Benc <jbenc@suse.cz>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: netdev@vger.kernel.org, Ivo Van Doorn <ivdoorn@gmail.com>
Subject: Re: [PATCH] d80211: don't symlink empty default keys
Date: Wed, 10 Jan 2007 20:40:29 +0100 [thread overview]
Message-ID: <20070110204029.014cc96d@griffin.suse.cz> (raw)
In-Reply-To: <45A4183E.4010401@web.de>
On Tue, 09 Jan 2007 23:33:34 +0100, Jan Kiszka wrote:
> This gets rid of annoying
>
> wlan0: cannot create symlink to default key
>
> in my syslog with latest rt2x00. The patch takes care that in case of
> (key/old_key == NULL && set_tx_key) the existing default key symlink is
> removed correctly. Moreover, it tests for key!=NULL before trying to register
> a new default link.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
>
> ---
> ieee80211/ieee80211_ioctl.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: rt2x00/ieee80211/ieee80211_ioctl.c
> ===================================================================
> --- rt2x00.orig/ieee80211/ieee80211_ioctl.c
> +++ rt2x00/ieee80211/ieee80211_ioctl.c
> @@ -629,7 +629,7 @@ static int ieee80211_set_encryption(stru
> }
> kfree(keyconf);
>
> - if (key && sdata->default_key == key) {
> + if (set_tx_key || (key && sdata->default_key == key)) {
> ieee80211_key_sysfs_remove_default(sdata);
This is not correct when set_tx_key is set and sdata->default_key is
NULL.
Thanks,
Jiri
--
Jiri Benc
SUSE Labs
next prev parent reply other threads:[~2007-01-10 19:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-09 22:33 [PATCH] d80211: don't symlink empty default keys Jan Kiszka
2007-01-09 22:43 ` Jan Kiszka
2007-01-10 19:40 ` Jiri Benc [this message]
2007-01-10 20:05 ` Jan Kiszka
2007-01-10 20:11 ` Jiri Benc
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=20070110204029.014cc96d@griffin.suse.cz \
--to=jbenc@suse.cz \
--cc=ivdoorn@gmail.com \
--cc=jan.kiszka@web.de \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).