From patchwork Wed Feb 17 21:04:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Valo X-Patchwork-Id: 80070 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1HL4P8S031927 for ; Wed, 17 Feb 2010 21:04:25 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756448Ab0BQVEY (ORCPT ); Wed, 17 Feb 2010 16:04:24 -0500 Received: from emh05.mail.saunalahti.fi ([62.142.5.111]:56042 "EHLO emh05.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756437Ab0BQVEX (ORCPT ); Wed, 17 Feb 2010 16:04:23 -0500 Received: from saunalahti-vams (vs3-11.mail.saunalahti.fi [62.142.5.95]) by emh05-2.mail.saunalahti.fi (Postfix) with SMTP id 905748C149 for ; Wed, 17 Feb 2010 23:04:22 +0200 (EET) Received: from emh01.mail.saunalahti.fi ([62.142.5.107]) by vs3-11.mail.saunalahti.fi ([62.142.5.95]) with SMTP (gateway) id A05C2C8C9F0; Wed, 17 Feb 2010 23:04:22 +0200 Received: from [127.0.1.1] (a91-155-131-184.elisa-laajakaista.fi [91.155.131.184]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 7B87D4033 for ; Wed, 17 Feb 2010 23:04:21 +0200 (EET) Subject: [RFC PATCH 3/3] mac80211: add support connection monitor in hardware To: linux-wireless@vger.kernel.org From: Kalle Valo Date: Wed, 17 Feb 2010 23:04:21 +0200 Message-ID: <20100217210421.30634.29786.stgit@tikku> In-Reply-To: <20100217210202.30634.69236.stgit@tikku> References: <20100217210202.30634.69236.stgit@tikku> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Antivirus: VAMS 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 (demeter.kernel.org [140.211.167.41]); Wed, 17 Feb 2010 21:04:25 +0000 (UTC) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 80eb7cc..1d28fcc 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -975,6 +975,7 @@ enum ieee80211_hw_flags { IEEE80211_HW_SUPPORTS_DYNAMIC_SMPS = 1<<16, IEEE80211_HW_SUPPORTS_UAPSD = 1<<17, IEEE80211_HW_REPORTS_TX_ACK_STATUS = 1<<18, + IEEE80211_HW_CONNECTION_MONITOR = 1<<19, }; /** diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4b9596f..3fa8e6a 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -850,6 +850,9 @@ void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata, if (is_multicast_ether_addr(hdr->addr1)) return; + if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR) + return; + mod_timer(&sdata->u.mgd.conn_mon_timer, round_jiffies_up(jiffies + IEEE80211_CONNECTION_IDLE_TIME)); }