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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham 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 ABBD9C0044C for ; Mon, 5 Nov 2018 20:45:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 74FCA2081C for ; Mon, 5 Nov 2018 20:45:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74FCA2081C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=candelatech.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbeKFGHT (ORCPT ); Tue, 6 Nov 2018 01:07:19 -0500 Received: from mail2.candelatech.com ([208.74.158.173]:47478 "EHLO mail2.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbeKFGHT (ORCPT ); Tue, 6 Nov 2018 01:07:19 -0500 Received: from [192.168.100.149] (firewall.candelatech.com [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail2.candelatech.com (Postfix) with ESMTPSA id CB93040A69D; Mon, 5 Nov 2018 12:45:47 -0800 (PST) Subject: Re: [RFC 0/3] cfg80211/nl80211/iw: add basic AMPDU/AMSDU controls To: Johannes Berg , Sergey Matyukevich , "linux-wireless@vger.kernel.org" References: <20181105143027.17570-1-sergey.matyukevich.os@quantenna.com> <34042c1e8020bfb49ab97c9160ab50df044846af.camel@sipsolutions.net> Cc: Jouni Malinen , Igor Mitsyanko From: Ben Greear Organization: Candela Technologies Message-ID: Date: Mon, 5 Nov 2018 12:45:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <34042c1e8020bfb49ab97c9160ab50df044846af.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 11/05/2018 12:32 PM, Johannes Berg wrote: > Hi, > >> Here are several RFC patches providing simple high-level controls of AMSDU/AMPDU >> aggregation. The primary purpose of this functionality is an attempt to fill >> missing gaps in nl80211 interface for basic WFA certification tests. > > I see you don't implement it this way in the driver, but wouldn't it > make more sense to have this as a per-STA (RA) setting? That's really > the granularity it can be done on, I think? > > Arguably even per-RA/TID, though that seems a little excessive? I like the idea of providing this API per peer/tid. And, just allow peer == -1, tid == -1 or similar to mean 'all' so that you can still set the entire device to one particular setting w/out having to iterate through all peers if you don't want to iterate... >> We experimented with QCA sigma-dut tool: https://github.com/qca/sigma-dut. >> The purpose was to cover basic HT/VHT WFA STA tests for cfg80211 driver >> controlled by wpa_supplicant w/o adding any vendor specific commands. >> Multiple WFA test parameters (e.g. STBC, NSS, SGI, LDPC) can be configured >> by overriding HT/VHT capabilities in wpa_supplicant and applying them on >> connect in cfg80211_connect callback. Others (e.g. RTS params) can be >> configured using iw tool or NL80211_CMD_SET_WIPHY directly. These patches >> implement simpe high-level switches for AMSDU/AMPDU aggregation. >> >> It would be interesting to collect comments/concerns regarding this approach. >> Does it make sense to enhance nl80211 in order to cover all the missing pieces >> required for WFA certification tests ? Or maybe it makes sense to use >> NL80211_TESTMODE subcommands for this kind of testing. > > Honestly, I don't really know. > > I think other tests, e.g. noack, we used to just have debugfs files for, > and then we got NL80211_CMD_SET_NOACK_MAP (which *is* per TID, btw) > > Perhaps if we really don't see any value beyond the testing, keeping it > in debugfs would make sense, until we have more use cases and understand > the granularity we should support? > > Clearly this is enough for the testing you refer to, but other use cases > might actually need more fine-grained control (in the future), possibly > down to the RA/TID level? At least with ath10k, it seems to be a common struggle for AP manufacturers to do regulatory testing. I would image that is true for other chipsets as well, so it seems like it might be worth adding to the official API. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com