From patchwork Wed Sep 30 01:19:28 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 50644 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 n8U1JcaC032129 for ; Wed, 30 Sep 2009 01:19:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753807AbZI3BTd (ORCPT ); Tue, 29 Sep 2009 21:19:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752562AbZI3BTd (ORCPT ); Tue, 29 Sep 2009 21:19:33 -0400 Received: from mail-fx0-f218.google.com ([209.85.220.218]:43049 "EHLO mail-fx0-f218.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbZI3BTd (ORCPT ); Tue, 29 Sep 2009 21:19:33 -0400 Received: by fxm18 with SMTP id 18so4955522fxm.17 for ; Tue, 29 Sep 2009 18:19:36 -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=sztt5M7fl8K//4KfGenqBGDe0Jjr/bqojJKzL+8mYYQ=; b=fd5McZk80phF43twJLn8HkMzrcY/ceRseORpU08q28px8+2S6UqY/yXP2ju4Dax9L9 Cye86iDbCfPejtV5zL5cXkNaLvCtSE2xC6YJR+RlYbUA4uNGWdjBU1VHmGtYXfYYZon9 BwidZWl9/pR50OeYkOMcvhGXACpfT6qvsM6yM= 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=BzRoed9HCM+T+XYMzY0/UODv/hNNDBa2Ki74RwS3E4Tfv+h4KZgxHtctPPXK/M0Svs vZZ7WfrYe/ZuBaedMbFtnYZ5b6xcjqr6ONeVSDoEpAh4iaZ+8bqul2UXYtijC62Mnu7i dLJIZcfuZybLDt08bFuqY/RI+j7T+TAJ9X2MU= Received: by 10.86.220.1 with SMTP id s1mr4744543fgg.50.1254273576092; Tue, 29 Sep 2009 18:19:36 -0700 (PDT) Received: from ?10.1.0.2? ([87.68.157.179]) by mx.google.com with ESMTPS id 12sm600696fgg.21.2009.09.29.18.19.30 (version=SSLv3 cipher=RC4-MD5); Tue, 29 Sep 2009 18:19:33 -0700 (PDT) Subject: Re: driver_nl80211 broken again From: Maxim Levitsky To: Johannes Berg Cc: linux-wireless , Jouni Malinen , "hostap@lists.shmoo.com" In-Reply-To: <1252443260.16422.5.camel@maxim-laptop> References: <1251117161.22951.4.camel@maxim-laptop> <1251122885.12007.12.camel@johannes.local> <1251144381.9374.4.camel@maxim-laptop> <1251147515.20161.3.camel@johannes.local> <1252116503.2398.26.camel@maxim-laptop> <1252423769.3806.4.camel@johannes.local> <1252443260.16422.5.camel@maxim-laptop> Date: Wed, 30 Sep 2009 03:19:28 +0200 Message-Id: <1254273569.4499.8.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 37a1927..a0098b9 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -1302,8 +1302,10 @@ void wpa_supplicant_disassociate(struct wpa_supplicant *wpa_s, if (!is_zero_ether_addr(wpa_s->bssid)) { if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_USER_SPACE_MLME) ieee80211_sta_disassociate(wpa_s, reason_code); - else + else { wpa_drv_disassociate(wpa_s, wpa_s->bssid, reason_code); + wpa_drv_deauthenticate(wpa_s, wpa_s->bssid, reason_code); + } addr = wpa_s->bssid; } wpa_clear_keys(wpa_s, addr);