From: Johannes Berg <johannes@sipsolutions.net>
To: Hin-Tak Leung <hintak.leung@gmail.com>
Cc: Dan Williams <dcbw@redhat.com>,
John Linville <linville@tuxdriver.com>,
Samuel Ortiz <sameo@linux.intel.com>, Jouni Malinen <j@w1.fi>,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] cfg80211: implement wext key handling
Date: Tue, 12 May 2009 08:32:23 +0200 [thread overview]
Message-ID: <1242109943.3873.51.camel@johannes.local> (raw)
In-Reply-To: <3ace41890905111516m2d5f9f70k83edbdef1ca6e2b8@mail.gmail.com>
On Mon, 2009-05-11 at 23:16 +0100, Hin-Tak Leung wrote:
> Argh, is this the reason why compat-wireless(wireless-testing?) today
> doesn't quite work any more?
> NetworkManager no longer wants to work, with this message in syslog:
>
> localhost NetworkManager: <WARN> nm_device_wifi_disable_encryption():
> error setting key for device wlan2: Invalid argument
I don't think NM cares about the return value of this call.
> and trying to do it by hand give this error:
>
> #iwconfig wlan2 key restrict <key>
> Error for wireless request "Set Encode" (8B2A) :
> SET failed on device wlan2 ; Invalid argument.
Remove the "restrict", afaict we never supported that argument in
mac80211.
Anyway, I think there's a small bug when removing keys -- below patch
should fix it. wpa_supplicant worked fine with my patch fwiw.
johannes
---
net/wireless/wext-compat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-testing.orig/net/wireless/wext-compat.c 2009-05-12 08:29:02.000000000 +0200
+++ wireless-testing/net/wireless/wext-compat.c 2009-05-12 08:29:17.000000000 +0200
@@ -580,7 +580,7 @@ int cfg80211_wext_siwencode(struct net_d
params.cipher = WLAN_CIPHER_SUITE_WEP40;
else if (erq->length == 13)
params.cipher = WLAN_CIPHER_SUITE_WEP104;
- else
+ else if (!remove)
return -EINVAL;
return cfg80211_set_encryption(rdev, dev, NULL, remove,
prev parent reply other threads:[~2009-05-12 6:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 11:54 [PATCH] cfg80211: implement wext key handling Johannes Berg
2009-05-11 13:50 ` Dan Williams
2009-05-11 14:09 ` Johannes Berg
2009-05-11 22:16 ` Hin-Tak Leung
2009-05-11 22:40 ` Dan Williams
2009-05-11 23:21 ` Hin-Tak Leung
2009-05-12 6:32 ` Johannes Berg [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=1242109943.3873.51.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=dcbw@redhat.com \
--cc=hintak.leung@gmail.com \
--cc=j@w1.fi \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=sameo@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox