From patchwork Thu May 16 11:14:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohammed Shafi Shajakhan X-Patchwork-Id: 244268 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 5B3A72C04D1 for ; Thu, 16 May 2013 21:14:29 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id A67F69D1F6; Thu, 16 May 2013 07:14:25 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7rd30Bxbmkzt; Thu, 16 May 2013 07:14:25 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 660D59D1E9; Thu, 16 May 2013 07:14:21 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 3D3BF9D1E9 for ; Thu, 16 May 2013 07:14:20 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZTm+CtYMVCp8 for ; Thu, 16 May 2013 07:14:16 -0400 (EDT) Received: from wolverine02.qualcomm.com (wolverine02.qualcomm.com [199.106.114.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "wolverine02.qualcomm.com", Issuer "VeriSign Class 3 Secure Server CA" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id C69029C1CD for ; Thu, 16 May 2013 07:14:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1368702855; x=1400238855; h=from:to:cc:subject:date:message-id:mime-version; bh=YO39KXy7sYNO1gvzVVtXOhWGUUUFA9vjhdh3L/wHPxs=; b=mPayakRRjbYk6RqlLqiwrqHL2VQLcJmdwcG37ED5vyO6ijJC2QuApKTb 1YJ0hqs7yo/xaZMegMbTpvlZHUIy6uv7O3UizG7bDyOTM8yK9l7YF7fk1 gl1JV8KC8HIIhygVW0GONRKtKJQY/6Iy5Ljz0dnwTk361mEQvkJyL+lmS s=; X-IronPort-AV: E=Sophos;i="4.87,683,1363158000"; d="scan'208";a="47870873" Received: from ironmsg04-r.qualcomm.com ([172.30.46.18]) by wolverine02.qualcomm.com with ESMTP; 16 May 2013 04:14:13 -0700 X-IronPort-AV: E=Sophos;i="4.87,683,1363158000"; d="scan'208";a="538150383" Received: from nasanexhc04.na.qualcomm.com ([172.30.48.17]) by Ironmsg04-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 16 May 2013 04:14:13 -0700 Received: from qcmail1.qualcomm.com (172.30.48.1) by qcmail1.qualcomm.com (172.30.48.17) with Microsoft SMTP Server (TLS) id 14.2.318.4; Thu, 16 May 2013 04:14:11 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 16 May 2013 16:44:04 +0530 From: Mohammed Shafi Shajakhan To: Subject: [PATCH] hostapd: Remove redundant freeing of STA list entries Date: Thu, 16 May 2013 16:44:04 +0530 Message-ID: <1368702844-7147-1-git-send-email-mohammed@qca.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [172.30.48.1] Cc: Jouni Malinen , Mohammed@maxx.shmoo.com, jouni@qca.qualcomm.com X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.11 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Mohammed Shafi Shajakhan hostapd_flush_old_stations does this appropriately after flushing the STA entries in the driver. Signed-hostap: Mohammed Shafi Shajakhan --- src/ap/hostapd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index bd91ad1..df9f6fa 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -1057,7 +1057,6 @@ void hostapd_interface_deinit(struct hostapd_iface *iface) hostapd_cleanup_iface_pre(iface); for (j = 0; j < iface->num_bss; j++) { struct hostapd_data *hapd = iface->bss[j]; - hostapd_free_stas(hapd); hostapd_flush_old_stations(hapd, WLAN_REASON_DEAUTH_LEAVING); hostapd_clear_wep(hapd); hostapd_cleanup(hapd); @@ -1151,7 +1150,6 @@ int hostapd_disable_iface(struct hostapd_iface *hapd_iface) /* whatever hostapd_interface_deinit does */ for (j = 0; j < hapd_iface->num_bss; j++) { struct hostapd_data *hapd = hapd_iface->bss[j]; - hostapd_free_stas(hapd); hostapd_flush_old_stations(hapd, WLAN_REASON_DEAUTH_LEAVING); hostapd_clear_wep(hapd); hostapd_free_hapd_data(hapd);