From patchwork Wed Sep 23 07:07:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Schurig X-Patchwork-Id: 49484 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8N78LpL021061 for ; Wed, 23 Sep 2009 07:08:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754214AbZIWHIR (ORCPT ); Wed, 23 Sep 2009 03:08:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754156AbZIWHIR (ORCPT ); Wed, 23 Sep 2009 03:08:17 -0400 Received: from mx51.mymxserver.com ([85.199.173.110]:19708 "EHLO mx51.mymxserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbZIWHIQ (ORCPT ); Wed, 23 Sep 2009 03:08:16 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.mx51.mymxserver.com (Postfix) with ESMTP id 956CD3A003; Wed, 23 Sep 2009 09:08:19 +0200 (CEST) X-Virus-Scanned: by Mittwald Mailscanner Received: from mx51.mymxserver.com ([127.0.0.1]) by localhost (mx51.mymxserver.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Gr1EM+m6xUXS; Wed, 23 Sep 2009 09:08:19 +0200 (CEST) Received: from lin01.mn-solutions.de (pD95F96FC.dip0.t-ipconnect.de [217.95.150.252]) by mx51.mymxserver.com (Postfix) with ESMTP id C2D443A01D; Wed, 23 Sep 2009 09:08:18 +0200 (CEST) Received: by lin01.mn-solutions.de (Postfix, from userid 116) id 2D14C1E0036; Wed, 23 Sep 2009 09:08:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb3 (2006-10-05) on lin01.mn-logistik.de X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.7-deb3 Received: from mnz66.mn-solutions.de (mnz66.mn-solutions.de [192.168.233.66]) by lin01.mn-solutions.de (Postfix) with ESMTP id 5AEBA1E0010; Wed, 23 Sep 2009 09:08:09 +0200 (CEST) From: Holger Schurig To: Johannes Berg Subject: Re: Comparison of wpa_supplicant with -Dnl80211 and -Dwext, WEP and WPA Date: Wed, 23 Sep 2009 09:07:24 +0200 User-Agent: KMail/1.9.7 Cc: linux-wireless@vger.kernel.org, hostap@lists.shmoo.com References: <200909221118.04569.hs4233@mail.mn-solutions.de> <1253689198.4458.24.camel@johannes.local> In-Reply-To: <1253689198.4458.24.camel@johannes.local> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909230907.24750.hs4233@mail.mn-solutions.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > Those are expected, and ok. Okay, then here is a patch to silence this in wpa_supplicant. Signed-off-by: Holger Schurig Index: wpasupplicant/src/drivers/driver_nl80211.c =================================================================== --- wpasupplicant.orig/src/drivers/driver_nl80211.c 2009-09-22 12:28:58.000000000 +0200 +++ wpasupplicant/src/drivers/driver_nl80211.c 2009-09-22 12:30:29.000000000 +0200 @@ -1819,6 +1819,8 @@ static int nl_set_encr(int ifindex, stru NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, ifindex); ret = send_and_recv_msgs(drv, msg, NULL, NULL); + if (ret == -ENOLINK) + ret = 0; if (ret == -ENOENT && alg == WPA_ALG_NONE) ret = 0; if (ret) @@ -1850,7 +1852,7 @@ static int nl_set_encr(int ifindex, stru NLA_PUT_FLAG(msg, NL80211_ATTR_KEY_DEFAULT); ret = send_and_recv_msgs(drv, msg, NULL, NULL); - if (ret == -ENOENT) + if (ret == -ENOENT || ret == -ENOLINK) ret = 0; if (ret) wpa_printf(MSG_DEBUG, "nl80211: set_key default failed; "