From patchwork Fri Oct 30 21:54:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 56720 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 n9ULt0nR000483 for ; Fri, 30 Oct 2009 21:55:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932942AbZJ3Vyz (ORCPT ); Fri, 30 Oct 2009 17:54:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932941AbZJ3Vyy (ORCPT ); Fri, 30 Oct 2009 17:54:54 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:34311 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932936AbZJ3Vyy (ORCPT ); Fri, 30 Oct 2009 17:54:54 -0400 Received: by fg-out-1718.google.com with SMTP id 16so1770220fgg.1 for ; Fri, 30 Oct 2009 14:54:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=RtBK2ldTVbO6euxMpgtgHqrEeCohl6aDtHCqcoTuibg=; b=MCq36WaSTYliBmdEXlpXV29byc2a7r747Nb4cgS3GRu0ULj6aVbEzvFhF1s6qXM09u 2A4V/99bhe3nbGHQoCkK7FfiD2eqKp96cHAEEmFX5b+vhJREraTlsYro1Rv/EFVoekT+ VyZzvjSDslC1q+lPAaRFh5plfiLqliGOwngJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=BQ1pDnUl6GrYzxMZ1i3lTmRQSpk+mgu4Vh8xi/u3/U3H2YuHICiqQdjUz5PVnPZ2RY Zrgu0tio6Ij9CoXshUKPoeVCdk9vF97RHf5Rorulq3Zz+qwDfoBo9bqfJfxYtfk3CdWQ 96GvdjQd4sYaJo8oxZnxDnERhq7o3zXIJpvpo= Received: by 10.87.69.28 with SMTP id w28mr1409475fgk.46.1256939697773; Fri, 30 Oct 2009 14:54:57 -0700 (PDT) Received: from ?10.1.0.2? (87.68.70.19.cable.012.net.il [87.68.70.19]) by mx.google.com with ESMTPS id e20sm932445fga.0.2009.10.30.14.54.55 (version=SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 14:54:56 -0700 (PDT) Subject: [PATCH 2/2] nl80211: allow to authenticate to access point that we already authenticated From: Maxim Levitsky To: linux-wireless Cc: "hostap@lists.shmoo.com" In-Reply-To: <1256939391.31271.11.camel@maxim-laptop> References: <1256939391.31271.11.camel@maxim-laptop> Date: Fri, 30 Oct 2009 23:54:54 +0200 Message-ID: <1256939694.31271.16.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 83c2a28..3d91b4e 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -372,7 +372,7 @@ int __cfg80211_mlme_auth(struct cfg80211_registered_device *rdev, if (wdev->auth_bsses[i] && memcmp(bssid, wdev->auth_bsses[i]->pub.bssid, ETH_ALEN) == 0) - return -EALREADY; + wdev->auth_bsses[i] = NULL; } memset(&req, 0, sizeof(req));