From patchwork Fri Jan 3 10:34:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Cavallari X-Patchwork-Id: 216756 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B4FFC2D0C2 for ; Fri, 3 Jan 2020 10:35:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 50F8221D7D for ; Fri, 3 Jan 2020 10:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbgACKft (ORCPT ); Fri, 3 Jan 2020 05:35:49 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:38529 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727220AbgACKft (ORCPT ); Fri, 3 Jan 2020 05:35:49 -0500 Received: from evilbit.green-communications.fr ([92.154.77.116]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.168]) with ESMTPSA (Nemesis) id 1MWixU-1jG0Da21pg-00X4iA; Fri, 03 Jan 2020 11:35:46 +0100 From: Nicolas Cavallari To: Johannes Berg Cc: linux-wireless@vger.kernel.org, =?utf-8?q?Krzysztof_Ha=C5=82asa?= Subject: [PATCH v2 0/2] Allow userspace to reset IBSS stations to fix aggregation issue Date: Fri, 3 Jan 2020 11:34:55 +0100 Message-Id: <20200103103457.22778-1-nicolas.cavallari@green-communications.fr> X-Mailer: git-send-email 2.25.0.rc0 MIME-Version: 1.0 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p559wdREiS3MWo OYFa3wwkmVtHtWOg+i9u3gBpMqy+fdWhV8ak3duEZwre5aw+u2RjRZTtBKSHLj3A8hGPx7612 2nH1H9aqncojGm4uwtWQQDmPmiykGB1mN8VRvWEmoZ4ytAZAI+rRwjZJ82774m 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, just like it does in mesh point mode. Changes: v2: Use a nl80211 feature flag instead of patching every driver.