Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4171214ybg; Tue, 29 Oct 2019 03:15:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUC6UhKQHA/+xbGiHIeuuMY8fUe1ab/9vqkHa0cqp+ZWeuVxJimNIZmQOohAtYf6xid/Te X-Received: by 2002:a50:a227:: with SMTP id 36mr24342755edl.262.1572344159158; Tue, 29 Oct 2019 03:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572344159; cv=none; d=google.com; s=arc-20160816; b=KC7fNW4/ubSs2ZyWRbjp4rCGOqcheFcm3VFiwh1RGVRjmomGH8AAx0071uaFfhxovG 3Mpb7/yfzV2Yqi9fXvk/hdzAPaCCcxXms6PPHqFWQ4UBh+vcYnhy4ufhdAhURIDf61Nm priuONgZunkVTkVd0WrSGLb/XFnhExBUFUg27IsXheqkSXqacqihp9YA4HtsADcqh9fE tVwe0hZNG8V6gXrWwyYG2vTTZFB3qsYLDIJrho+0iIhtj+0+aJOI+IN0qV3Qvb9p3/rp uH8kxcklwW0s/8RxRIJnWV1vpo8xIoVBABGSw8miPP6ZHX1vim+AtmEwTMGxstGJUJFK A0fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=Y8t1MVGSZf2vJH8chXj/MnxwF9ThLJ7NJUAyI1oFLrA=; b=jVhLr82pN1MT1Hky1Pi0VtJRfhNOIpJYvwwaT94U7G6Vr5WrLZUcz5/AKPCP5cuh5D pFOPTSTBMQ2xLkMMlc0RlSrnsOjK7x6WVKijIoUxNZa3MF5FfvKStrOh5+2OR+H8xdPA UxrGfSItg8DF1Qs7+BFcJTgWfLBIwZ9ndllm+9XObCBFDg5+bDdS7RRjTDz9GBYsZX8i /vHnHVFT0Rttn9m6yTRXXTtWYRKhB8OOF+S2WZ3RmgTskEGdiptZZvOMBjpDiQwnRG9o h5PGf90BxYM3K1dvJr9c61M/Xdv0TbpXJrYEl+Ho6xhZtD0obmEoPsj2lU/P290C26lw Y2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b=IXQWsylE; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si7999187ejp.203.2019.10.29.03.15.34; Tue, 29 Oct 2019 03:15:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b=IXQWsylE; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730306AbfJ2I65 (ORCPT + 99 others); Tue, 29 Oct 2019 04:58:57 -0400 Received: from webmail.newmedia-net.de ([185.84.6.166]:54792 "EHLO webmail.newmedia-net.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730296AbfJ2I65 (ORCPT ); Tue, 29 Oct 2019 04:58:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=Y8t1MVGSZf2vJH8chXj/MnxwF9ThLJ7NJUAyI1oFLrA=; b=IXQWsylEkXCHHWj4pOJ5Bnod5BF6GSQTXTZqMJyg6SPHo0iEV0GHVe01YMaGlP9YLGYZwMt5IoJxuuLhaGC2dEidQROq+2WjwZC18o9ANuo3uaFcb3YKoM79O1W8clqDtTPVM8taXr6g52p2OrP8P61SpY/rXvlrCaRLBe9hjW4=; Subject: Re: [PATCH v2] 802.11n IBSS: wlan0 stops receiving packets due to aggregation after sender reboot To: Koen Vandeputte , Johannes Berg , =?UTF-8?Q?Krzysztof_Ha=c5=82asa?= Cc: "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <30465e05-3465-f496-d57f-5e115551f5cb@ncentric.com> From: Sebastian Gottschall Message-ID: Date: Tue, 29 Oct 2019 09:58:46 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.2.0 MIME-Version: 1.0 In-Reply-To: <30465e05-3465-f496-d57f-5e115551f5cb@ncentric.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Received: from [212.111.244.1] (helo=[172.29.0.186]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1iPNKW-0002Fu-6G; Tue, 29 Oct 2019 09:58:20 +0100 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 35 km? for 802.11n with ht40 this is out of the ack timing range the chipset supports. so this should be considered at any troubles with connections Am 29.10.2019 um 09:41 schrieb Koen Vandeputte: > > On 28.10.19 13:21, Johannes Berg wrote: >> On Fri, 2019-10-25 at 12:21 +0200, Krzysztof Hałasa wrote: >>> Fix a bug where the mac80211 RX aggregation code sets a new aggregation >>> "session" at the remote station's request, but the head_seq_num >>> (the sequence number the receiver expects to receive) isn't reset. >>> >>> Spotted on a pair of AR9580 in IBSS mode. >>> >>> Signed-off-by: Krzysztof Halasa >>> >>> diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c >>> index 4d1c335e06e5..67733bd61297 100644 >>> --- a/net/mac80211/agg-rx.c >>> +++ b/net/mac80211/agg-rx.c >>> @@ -354,10 +354,13 @@ void ___ieee80211_start_rx_ba_session(struct >>> sta_info *sta, >>>                */ >>>               rcu_read_lock(); >>>               tid_rx = rcu_dereference(sta->ampdu_mlme.tid_rx[tid]); >>> -            if (tid_rx && tid_rx->timeout == timeout) >>> +            if (tid_rx && tid_rx->timeout == timeout) { >>> +                tid_rx->ssn = start_seq_num; >>> +                tid_rx->head_seq_num = start_seq_num; >>>                   status = WLAN_STATUS_SUCCESS; >> This is wrong, this is the case of *updating an existing session*, we >> must not reset the head SN then. >> >> I think you just got very lucky (or unlucky) to have the same dialog >> token, because we start from 0 - maybe we should initialize it to a >> random value to flush out such issues. >> >> Really what I think probably happened is that one of your stations lost >> the connection to the other, and didn't tell it about it in any way - so >> the other kept all the status alive. >> >> I suspect to make all this work well we need to not only have the fixes >> I made recently to actually send and parse deauth frames, but also to >> even send an auth and reset the state when we receive that, so if we >> move out of range and even the deauth frame is lost, we can still reset >> properly. >> >> In any case, this is not the right approach - we need to handle the >> "lost connection" case better I suspect, but since you don't say what >> really happened I don't really know that that's what you're seeing. >> >> johannes > > Hi all, > > I can confirm the issue as I'm also seeing this sometimes in the field > here. > > Sometimes when a devices goes out of range and then re-enters, > the link refuses to "come up", as in rx looks to be "stuck" without > any reports in system log or locking issues (lockdep enabled) > > I have dozens of devices installed offshore (802.11n based), both on > static and moving assets, > which cover from short (250m) up to very long distances (~35km) > > So .. while there is some momentum for this issue, > I'm more than happy to provide extensive testing should fixes be > posted regarding IBSS in general. > > Regards, > > Koen > >