Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4168880ybg; Tue, 29 Oct 2019 03:13:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqySaDbAnvirWxvM7Uf9V/ehpCAE0MRXieDTvMdZcjaj/kNOtb542O8Gp6QvV7wEZzzISIBr X-Received: by 2002:aa7:c48c:: with SMTP id m12mr25122361edq.152.1572344030265; Tue, 29 Oct 2019 03:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572344030; cv=none; d=google.com; s=arc-20160816; b=WU3rUCu7fj2BQMpheTMH50Y39L06ntWi1v0dH979Dq+aJovg3lE0dlrz56iTGoXAn6 tG2Ka7VFkTrkOQi1aDMonyOeJfRT1/NyXRtIvvc+RS6Kfihcu+ajtnTGJNLit7itq0Xp wvCWJm/Cmq2XG70zTiZnWulTwruy0melvE3k5mqpKP+E+v133Fx6TfIGWQTTpItvxRm6 7kPfbc3co8nQ0/Nzs8ZtmcczAQyMFgtS6JlzR3lHmM1ddzbvXovMnobn8ZU7T5/+AdEI 7xuqF5IpQpPMqzswWZeVrdNHs5dj12FPws1nwo77ey6gXN2ESnMoMj1Tczs7bLSlolB0 Es0g== 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:mime-version :message-id:in-reply-to:date:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=TU9ebFgfanQ7Z4iTqUkUU2jipaToSz+RUzToxJpmr6s=; b=AjrVDw11dc1rnLCf741he79mHZL2U/bvYnk70+CGYFUOaVDw3Kdmf2kXkb3XpMwEZS fV4g2TyrzM4afnv08fa/T+YZI9MGvdqu3uGdat5Kk2f1a6QaG2zqkpRtA4mVTD+vJQcj nA/fnHY3iLFSbin5BR6JLqWw6IWtOllbxFVSC9CALTqzeR7vXZvgYYYnTB1zDgnZ7ffN lcEaIoxB1bXJJ3bVpIckRlS/3hO0HvmsZfTnyxt0CZqVNsbUxBBRP+iWwH+6kDk7PRuh 82xiuxSGUL5L4W9AYGyM8ZmTgip+B7lTOM8ioaWCIXvynJOvlJmFMSvt4hgEby4369GH YJoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=KQJnu8OO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si7773269ejm.93.2019.10.29.03.13.14; Tue, 29 Oct 2019 03:13:50 -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=@piap.pl header.s=mail header.b=KQJnu8OO; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730007AbfJ2Iya (ORCPT + 99 others); Tue, 29 Oct 2019 04:54:30 -0400 Received: from ni.piap.pl ([195.187.100.5]:58338 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729992AbfJ2Iya (ORCPT ); Tue, 29 Oct 2019 04:54:30 -0400 Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ni.piap.pl (Postfix) with ESMTPSA id 6DA7D442258; Tue, 29 Oct 2019 09:54:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 6DA7D442258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1572339264; bh=TU9ebFgfanQ7Z4iTqUkUU2jipaToSz+RUzToxJpmr6s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=KQJnu8OO87rgTKcwqeO2VfIMekcbwGawgFrZFaEjV2fRRy55gzo2McuRNLzH92jr5 jK1sCYGsI7f3ncJ42fAuSZAdgoEeRQ7Sqm9C4xMXPSWOZ6rbEYBoSp8KVCCYz+yedZ x4M+UFyvwnBQQfMDU0wgJLEMSIiTg3ruAlYb9p2g= From: khalasa@piap.pl (Krzysztof =?utf-8?Q?Ha=C5=82asa?=) To: Johannes Berg Cc: "David S. Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] 802.11n IBSS: wlan0 stops receiving packets due to aggregation after sender reboot References: Date: Tue, 29 Oct 2019 09:54:24 +0100 In-Reply-To: (Johannes Berg's message of "Mon, 28 Oct 2019 13:21:15 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 4 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.721, not scanned, whitelist Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Johannes Berg writes: > I think you just got very lucky (or unlucky) to have the same dialog > token, because we start from 0 Right, it seems to be the case. > - maybe we should initialize it to a > random value to flush out such issues. The problem I can see is that the dialog_tokens are 8-bit, way too small to eliminate conflicts. > 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. You must have missed my previous mail - I simply rebooted that station, and alternatively rmmoded/modprobed ath9k. But the problem originated in a station going out of and back in range, in fact. > 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. That's one thing. The other is a station trying ADDBA for the first time after boot (while the local station has seen it before that reboot). > 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. I guess we need to identify "new connection" reliably. Otherwise, the new connections are treated as old ones and it doesn't work. Now how can it be fixed? --=20 Krzysztof Halasa =C5=81UKASIEWICZ Research Network Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland