From patchwork Wed Feb 24 13:19:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helmut Schaa X-Patchwork-Id: 81740 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 o1ODQ1nQ003741 for ; Wed, 24 Feb 2010 13:26:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757044Ab0BXNZl (ORCPT ); Wed, 24 Feb 2010 08:25:41 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]:53872 "EHLO mail-fx0-f216.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757046Ab0BXNZj (ORCPT ); Wed, 24 Feb 2010 08:25:39 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 24 Feb 2010 13:26:01 +0000 (UTC) X-Greylist: delayed 356 seconds by postgrey-1.27 at vger.kernel.org; Wed, 24 Feb 2010 08:25:39 EST Received: by fxm8 with SMTP id 8so2573805fxm.28 for ; Wed, 24 Feb 2010 05:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:mime-version:content-type:content-transfer-encoding :message-id; bh=8gsgM5VN/Z80c9lZO4EojGp+CRRUvuQQ+laJFhvVOJI=; b=hPUxlsoOMq1fZ/LmuAY9YlE3lxi0DErGUmS56wLCrdK9Wj830NfARTF12buv+PXqXV Ld3OxJOx1UCOyl6csR2rgQfIBnFBrjsLeabDLqRx6BUC3PJJm9zjcO1hT9wOPUtGEet2 PzYUkfvrlh1BS0yQ+GZCD5D4Dzu6+HvCLq6v4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:message-id; b=NnjLqrJwaZTCZ15zav0LEsg9GfvR07QLkG9EcP0jVjEW58FdmPjvg03bTz+MF0P0pZ JRTUmSy2FQFuLwEGmX3Cc17NJvrJg2kzVOi1ANta7JjSFGr0kGl59SQb0al/3IZhC7HD H6/JyquHZ33k0Ex4JrUGtqoVIdHpiIQI3kByw= Received: by 10.87.76.6 with SMTP id d6mr3866520fgl.71.1267017582727; Wed, 24 Feb 2010 05:19:42 -0800 (PST) Received: from helmutmobil2.localnet (p5495EC5A.dip.t-dialin.net [84.149.236.90]) by mx.google.com with ESMTPS id e3sm3267fga.24.2010.02.24.05.19.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Feb 2010 05:19:41 -0800 (PST) From: Helmut Schaa To: John Linville Subject: [PATCH] mac80211: use listen interval 5 as default Date: Wed, 24 Feb 2010 14:19:37 +0100 User-Agent: KMail/1.13.0 (Linux/2.6.33-rc8-wl-default; KDE/4.4.0; x86_64; ; ) Cc: linux-wireless@vger.kernel.org, Johannes Berg MIME-Version: 1.0 Message-Id: <201002241419.38121.helmut.schaa@googlemail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/net/mac80211/main.c b/net/mac80211/main.c index ec8f767..06c33b6 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -558,8 +558,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) debugfs_hw_add(local); + /* + * if the driver doesn't specify a max listen interval we + * use 5 which should be a safe default + */ if (local->hw.max_listen_interval == 0) - local->hw.max_listen_interval = 1; + local->hw.max_listen_interval = 5; local->hw.conf.listen_interval = local->hw.max_listen_interval;