From patchwork Mon Sep 14 11:23:44 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Holger Schurig X-Patchwork-Id: 47292 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 n8EBOQ0i008337 for ; Mon, 14 Sep 2009 11:24:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895AbZINLYV (ORCPT ); Mon, 14 Sep 2009 07:24:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751276AbZINLYV (ORCPT ); Mon, 14 Sep 2009 07:24:21 -0400 Received: from mx51.mymxserver.com ([85.199.173.110]:5429 "EHLO mx51.mymxserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750891AbZINLYU (ORCPT ); Mon, 14 Sep 2009 07:24:20 -0400 Received: from localhost (localhost [127.0.0.1]) by localhost.mx51.mymxserver.com (Postfix) with ESMTP id 219E64B00C; Mon, 14 Sep 2009 13:24:23 +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 QB5EvC3L4b7a; Mon, 14 Sep 2009 13:24:23 +0200 (CEST) Received: from lin01.mn-solutions.de (pD95F88AD.dip0.t-ipconnect.de [217.95.136.173]) by mx51.mymxserver.com (Postfix) with ESMTP id 9BA504B008; Mon, 14 Sep 2009 13:24:21 +0200 (CEST) Received: by lin01.mn-solutions.de (Postfix, from userid 116) id DBADD1E0050; Mon, 14 Sep 2009 13:24:20 +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 D8B001E0036; Mon, 14 Sep 2009 13:24:11 +0200 (CEST) From: Holger Schurig To: linux-wireless , John W Linville Subject: [PATCH] cfg80211: don't report SME connection errs at SIOCSIW{FREQ/AP/ESSID} Date: Mon, 14 Sep 2009 13:23:44 +0200 User-Agent: KMail/1.9.7 Cc: Johannes Berg References: <200909141254.14988.hs4233@mail.mn-solutions.de> In-Reply-To: <200909141254.14988.hs4233@mail.mn-solutions.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909141323.44245.hs4233@mail.mn-solutions.de> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Signed-off-by: Holger Schurig --- This fixes 1252921276.182218: Trying to associate with 00:1b:53:11:dc:40 (SSID='TEST' freq=2412 MHz) ioctl[SIOCSIWFREQ]: No such file or directory ioctl[SIOCSIWESSID]: No such file or directory 1252921276.268451: Association request to the driver failed 1252921276.355482: Associated with 00:1b:53:11:dc:40 and makes it 1252921276.182218: Trying to associate with 00:1b:53:11:dc:40 (SSID='TEST' freq=2412 MHz) 1252921276.355482: Associated with 00:1b:53:11:dc:40 However, otherwise this hasn't been greatly tested and I don't have a great understanding of cfg80211, SME, etc ... Index: linux-wl/net/wireless/wext-sme.c =================================================================== --- linux-wl.orig/net/wireless/wext-sme.c 2009-09-14 12:05:54.000000000 +0200 +++ linux-wl/net/wireless/wext-sme.c 2009-09-14 12:06:09.000000000 +0200 @@ -110,7 +110,7 @@ int cfg80211_mgd_wext_siwfreq(struct net goto out; } - err = cfg80211_mgd_wext_connect(rdev, wdev); + cfg80211_mgd_wext_connect(rdev, wdev); out: wdev_unlock(wdev); mutex_unlock(&rdev->devlist_mtx); @@ -196,7 +196,7 @@ int cfg80211_mgd_wext_siwessid(struct ne wdev->wext.connect.crypto.control_port = false; - err = cfg80211_mgd_wext_connect(rdev, wdev); + cfg80211_mgd_wext_connect(rdev, wdev); out: wdev_unlock(wdev); mutex_unlock(&rdev->devlist_mtx); @@ -283,7 +283,7 @@ int cfg80211_mgd_wext_siwap(struct net_d } else wdev->wext.connect.bssid = NULL; - err = cfg80211_mgd_wext_connect(rdev, wdev); + cfg80211_mgd_wext_connect(rdev, wdev); out: wdev_unlock(wdev); mutex_unlock(&rdev->devlist_mtx);