Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3927575ybl; Mon, 9 Dec 2019 02:30:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzGleJW/68zb/0C8TUFb6nyIq8pY3baQn52EQcCD3FUYTv+tnEThd3GIwXUGCYWYIxRb5SL X-Received: by 2002:a9d:338:: with SMTP id 53mr11070306otv.197.1575887405711; Mon, 09 Dec 2019 02:30:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575887405; cv=none; d=google.com; s=arc-20160816; b=IVhzkwjjquo9MO4Ou2vIyHARI6xriNyjNkD0gOW/n9Fl3oQ3uoD63RuNjWmTW1hgzO WqJtyYj9QPPScpn6rG3xv77tBakxBw0YwNx7JhkTOf85HrFZUFbxCzV2262pojF2ka8U peXqRouq/cAapbHW56cDMGU/mKDZHlvx2ZC1y2hqc8HfmwLKHBi2Gvhy30mM5x7hEXDp Smfy3WZMoSsiJREqEzO9zBNldFg+F8kgTEzkqGFVJj/NB+QNjRzYQ4GjaMnr4y1pD4QN Puaqo1RcmOGMt5p7a82UQl1WvKFtCumX+pVTJ1lzvWGsypPLfcc3FnbxH/6oATI8R7oI 4X0w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6eoEBuz74LZK+i+K3jl0jdO7JVCVVInjQ26JuR4jaKw=; b=gF+9AzuTVGKNRzcsRcoXLTOBO3yWGEJg2YaL8DAmgK49tMUfUPc4VOhMLHCKfi7amY klIFdIlbsYYxcCLqJ7f1+YN4x7vf9R6Msbf9vQjEERcoBkuEsrCRZr/vL6xJO6IPqnUo paSnCMRc3/Kb3rkG5VYhoQKR4SmDKyERC7wA7dJrYpcuYiw2bW1Lu2ZHGn+EIlVgNOp6 f6Z3/vy82SCCI9k9EPsEU7PFY7fXMjGaHIRXkXUvQeJE6CLbEIiCxbw+GAb9/OBib/c3 s+WORcTSbUJLATSnG2AM3AIkfKgB4KnCLn5GdJLQQSFzp1nhqA63Suf4uI5RJbhB5mf8 gNpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o4si11757149otp.200.2019.12.09.02.29.55; Mon, 09 Dec 2019 02:30:05 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727312AbfLIK2q (ORCPT + 99 others); Mon, 9 Dec 2019 05:28:46 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:43177 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727143AbfLIK2q (ORCPT ); Mon, 9 Dec 2019 05:28:46 -0500 Received: from evilbit.green-communications.fr ([92.154.77.116]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.184]) with ESMTPSA (Nemesis) id 1MCKJw-1iUsd00lIA-009Sxe; Mon, 09 Dec 2019 11:28:40 +0100 From: Nicolas Cavallari To: =?UTF-8?q?Krzysztof=20Ha=C5=82asa?= , Johannes Berg Cc: linux-wireless@vger.kernel.org, Kalle Valo Subject: [RFC] Allow userspace to reset IBSS stations to fix aggregation issue Date: Mon, 9 Dec 2019 11:28:05 +0100 Message-Id: <20191209102808.12014-1-nicolas.cavallari@green-communications.fr> X-Mailer: git-send-email 2.24.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 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iqxOz+2lWrhSQVIurzpIDYRV2BLxWavrpLk1iZM371QYgEKSPN8 AgKSWdrdQBf2XUqjW/fQereBsooY3F6tByW9cpWPK8+d9GDyEOYyt00KVmM0CHxhtqLuo7RwH WC0/llVc53QQCDXbYpo6j1NUQqX+jya5v1jCK26CApzJTv85MzBOD0FSZ3Nh6O Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org I encountered the same issue in an IBSS-RSN network, where quick reboot of a station would cause issues with aggregation because the kernel is not aware of the reboot. I figured out that since wpa_supplicant already detect reboots, the simplest way to fix it would be for wpa_supplicant to reset the entire state of the station in the kernel, instead of just resetting keys and port. This means extending NL80211_CMD_DEL_STATION to work in IBSS mode too. My current wpa_supplicant patch tries this new API but fall back to the old methods if an error is returned. The changes required for drivers would be as follow: - mac80211: will just work - wil6210: does not seem to support IBSS mode - ath6kl: need a patch - brcmfmac: need a patch - mwifiex: need a patch - qtnfmac: no IBSS support - staging/wilc1000: no IBSS support - staging/rtl8723bs: already returns EINVAL in this case. I made patches for ath6kl, brcmfmac and mwifiex that plainly reject the request. If there is a better way, i'll glad to hear it.