From patchwork Wed Dec 15 18:54:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 414201 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBFJgutm030786 for ; Wed, 15 Dec 2010 19:42:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755237Ab0LOTmx (ORCPT ); Wed, 15 Dec 2010 14:42:53 -0500 Received: from smtp-out.google.com ([216.239.44.51]:55723 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755234Ab0LOTmw (ORCPT ); Wed, 15 Dec 2010 14:42:52 -0500 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id oBFJgm12032220; Wed, 15 Dec 2010 11:42:48 -0800 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1292442168; bh=F2HoxgvQ0+6Hhj5A7WPP1TwEwMo=; h=From:Date:Subject:To:Cc:Message-Id; b=rNBoy+ENoSvl76/L49RKtcDhU1MrX2eLkBpIElIU2M3mNb0PXabXTS35Ceb+1z8y2 b5aQizBQ53fnvdtiZHwXQ== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:date:subject:to:cc:message-id:x-system-of-record; b=VrEoK79JUG3vHe6UMuiRmVYxMH9s/AEH43HcNTZCLVmIx6R+gW2+pDeNtqI/O8vz+ uQBHm+WjBSObPg9P3PvHw== Received: from glenhelen.mtv.corp.google.com (glenhelen.mtv.corp.google.com [172.22.72.223]) by wpaz24.hot.corp.google.com with ESMTP id oBFJgl24020579; Wed, 15 Dec 2010 11:42:47 -0800 Received: by glenhelen.mtv.corp.google.com (Postfix, from userid 110058) id D5FCE204D8; Wed, 15 Dec 2010 11:42:46 -0800 (PST) From: Paul Stewart Date: Wed, 15 Dec 2010 10:54:01 -0800 Subject: [PATCH] mac80211: Push idle state to driver before stop To: linux-wireless@vger.kernel.org Cc: luis.rodriguez@atheros.com, johannes@sipsolutions.net Message-Id: <20101215194246.D5FCE204D8@glenhelen.mtv.corp.google.com> X-System-Of-Record: true Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 15 Dec 2010 19:42:57 +0000 (UTC) diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index b6db237..5af5a89 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -536,6 +536,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, if (local->ops->napi_poll) napi_disable(&local->napi); ieee80211_clear_tx_pending(local); + drv_config(local, IEEE80211_CONF_CHANGE_IDLE); ieee80211_stop_device(local); /* no reconfiguring after stop! */