From patchwork Fri Jul 31 16:13:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 38529 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 n6VGF7si027717 for ; Fri, 31 Jul 2009 16:15:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751541AbZGaQPF (ORCPT ); Fri, 31 Jul 2009 12:15:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751814AbZGaQPF (ORCPT ); Fri, 31 Jul 2009 12:15:05 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:50175 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbZGaQPE (ORCPT ); Fri, 31 Jul 2009 12:15:04 -0400 Received: by bwz19 with SMTP id 19so1285215bwz.37 for ; Fri, 31 Jul 2009 09:15:01 -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 :content-type:date:message-id:mime-version:x-mailer; bh=xfOno7OHNwMd05UR4/QM3Rep97SGMdxvp5/NCf/UZxY=; b=bueqpcKliBXKyhsp2+sp63zLE6y1JSX/HCA0OXtduzYIRfetbIAgvnH/sQ5ztajph8 EaFu+jLZmua424DwXsxs0aQENNLSae1CwHTazmUR42SVz8iATg8u1RUCy053zFpzsPoC 3LmFO8+wNCMSqgYejC5s/fWRJQjRJ5jaZGbOU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer; b=TU7JCBtjR+eNn4o1Ar1A4gWoEPavYZKalB0kbsqebp0VdciJpONGV3GqYgWswqB1Ks humeacemX1Y70A1g/ElKpDAFmG806JuLguRq9uDFgqiAHVvrYSLJGJT/FPs6mL8hGCXR ndlj5BjlbeEVssFaYDvrCZ8B7J22D5HTYqPHw= Received: by 10.204.114.194 with SMTP id f2mr3016316bkq.17.1249056900750; Fri, 31 Jul 2009 09:15:00 -0700 (PDT) Received: from ?10.1.0.2? ([77.125.81.249]) by mx.google.com with ESMTPS id 21sm9217330fks.9.2009.07.31.09.14.58 (version=SSLv3 cipher=RC4-MD5); Fri, 31 Jul 2009 09:15:00 -0700 (PDT) Subject: [PATCH 000/002] Fix frequent reconnects caused by new conection monitor From: Maxim Levitsky To: linux-wireless Cc: linville , Reinette Chatre , Johannes Berg Date: Fri, 31 Jul 2009 19:13:37 +0300 Message-Id: <1249056817.20593.1.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, here is the updated version of these two patches that fix the $SUBJECT issue. I attach these (in case mailer mangles them), and reply with patches. Tested both with low quality signal, and beacon loss. Lack of TX is found, every 30 seconds now, and quite reliable. Lack of beacons, triggers probe like it did every 2 seconds. Best regards, Maxim Levitsky Tested-by: Marcel Holtmann From 04976d22d45f26aa4b4dece5dd520e3347ac32d7 Mon Sep 17 00:00:00 2001 From: Maxim Levitsky Date: Fri, 31 Jul 2009 18:54:23 +0300 Subject: [PATCH] [MAC80211] Increase timeouts for station polling Do a probe request every 30 seconds, and wait for probe response, half a second This should lower the traffic that card sends, thus save power Wainting longer for response makes probe more robust against 'slow' access points Signed-off-by: Maxim Levitsky --- net/mac80211/mlme.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 1d8640a..e4bb590 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -42,13 +42,13 @@ * Time the connection can be idle before we probe * it to see if we can still talk to the AP. */ -#define IEEE80211_CONNECTION_IDLE_TIME (2 * HZ) +#define IEEE80211_CONNECTION_IDLE_TIME (30 * HZ) /* * Time we wait for a probe response after sending * a probe request because of beacon loss or for * checking the connection still works. */ -#define IEEE80211_PROBE_WAIT (HZ / 5) +#define IEEE80211_PROBE_WAIT (HZ / 2) #define TMR_RUNNING_TIMER 0 #define TMR_RUNNING_CHANSW 1 -- 1.6.0.4