From patchwork Tue Jun 11 18:02:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 10988019 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C258214C0 for ; Tue, 11 Jun 2019 18:03:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B114D1FFF9 for ; Tue, 11 Jun 2019 18:03:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A51442848B; Tue, 11 Jun 2019 18:03:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 447AF1FFF9 for ; Tue, 11 Jun 2019 18:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=KbZVssyjH8udwZxBGmCAmvHei5e2Sv4IFOi/GGlocgQ=; b=rveaCaD2AfVYqr zrZ/aAC3d3NLlRmzDPBGbAWBgs0mRrC2171gBxxjhNNW6uKXTu+6nCFMavc3vva7i3Zmg6zLJwxF/ UMqtbn00okWvP58/aQL33MX3ouDXuCKyyp71N8kt0TojuESObcuHWqk6hl2cuIg5KRMmQAjNyYxHV 8G8bonKPkgs3y14sNf43MCqGPsWubnXh/6snNSADCygOxZ72FsF+sJeHS05YBUOZL23NG8lEwAgVR MEUt19T/O8M3H2Y8151QloE3JEPkJK/ILbbQH+V7PZgY8WXR33XeUB91RjpaD2a1iT49/i7LjmeMO jT6UU76pWZ+wdaQwF3Aw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hal6p-0002QU-OV; Tue, 11 Jun 2019 18:02:59 +0000 Received: from durin.narfation.org ([79.140.41.39]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hal6l-0002No-LG for ath11k@lists.infradead.org; Tue, 11 Jun 2019 18:02:58 +0000 Received: from sven-desktop.home.narfation.org (p200300C5970379EE000000000000070D.dip0.t-ipconnect.de [IPv6:2003:c5:9703:79ee::70d]) by durin.narfation.org (Postfix) with ESMTPSA id 8AC1C1100D3; Tue, 11 Jun 2019 20:02:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1560276173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CMl0fgaxSJ1kKfd1OYfyvydXTTqFAqN2BtLod+U3mBs=; b=B6LgUOmkM0FdtUxgzhL4ya7hvTlHsNjYNjotOWzmyuRvJCSxfc6Dx+qvBY3g1+6MzXtP9+ m+e/Ua72eFZPFjhKa6Pqb1+X/PS1o9xfq/DbEhlzT0YNwlAPvIs9xdxz5/NbYsQxyTIcl6 lm2ZGwGi0h9yiyGwr9MtCeQdraRMZlI= From: Sven Eckelmann To: linux-wireless@vger.kernel.org Subject: [RFC PATCH v2 0/3] mac80211/ath11k: HE mesh support Date: Tue, 11 Jun 2019 20:02:44 +0200 Message-Id: <20190611180247.19524-1-sven@narfation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1560276173; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=CMl0fgaxSJ1kKfd1OYfyvydXTTqFAqN2BtLod+U3mBs=; b=nh89UeX/quPoivBAGczw0CNMy/aTzecgvxn3cVO28P0LMkq+inp7hctsJSbTqkaMAtFs4d jqpKK40YVc/vz9CCtptc/mpZ6WPFDlPdWbRQm4js7DBU12lVryWHJLZssoSpkX+6hUK/sz hU3QM3TMLPlfJDYHvbUH6ZwxgFXpvrc= ARC-Seal: i=1; s=20121; d=narfation.org; t=1560276173; a=rsa-sha256; cv=none; b=LYaki6mTqN1XBeN/1Yrp+MxGOFa6oScyOQif/Ets46gUu6+ETGLrOGSQ7EMHdGbCcVd8WS W3O2I6O+FeVDEKmpv35GpBRfpWjncrZzq++4vN/Hki/1Sz/c5F5M52OUXnFlvshlcZ/eSY lhmC5nlkOmpSh2t4xNE291wzHhkLogk= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sven smtp.mailfrom=sven@narfation.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190611_110256_830528_5D7CA849 X-CRM114-Status: UNSURE ( 6.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ath11k@lists.infradead.org, Sven Eckelmann Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, Some features of 802.11ax without central organizing (AP) STA can also be used in mesh mode. The main goal is to get this working for ath11k. But there are various problems at the moment with the firmware. I hangs from time to time during assoc (especially when using HE) or just doesn't enable HE rates when communicating with peers. Even when the peer was successfully detected as HE capable by the upper layers: root@OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy2/netdev:mesh2/stations/00:03:7f:12:bb:97/he_capa HE supported MAC-CAP: 0x09 0x0d 0x08 0x0a 0x40 0x00 HTC-HE DYNAMIC-FRAG-LEVEL-1 MAX-NUM-FRAG-MSDU-1 MIN-FRAG-SIZE-128 TF-MAC-PAD-DUR-24US MULTI-TID-AGG-RX-QOS-1 LINK-ADAPTATION-NO-FEEDBACK BSR OMI-CONTROL MAX-AMPDU-LEN-EXP-VHT-1 AMSDU-IN-AMPDU MULTI-TID-AGG-TX-QOS-0 PHY CAP: 0x1c 0x70 0x0c 0x80 0x0d 0x43 0x81 0x1c 0x00 0x00 0x00 CHANNEL-WIDTH-SET-40MHZ-80MHZ-IN-5G CHANNEL-WIDTH-SET-160MHZ-IN-5G CHANNEL-WIDTH-SET-80PLUS80-MHZ-IN-5G IEEE80211-HE-PHY-CAP1-DEVICE-CLASS-A LDPC-CODING-IN-PAYLOAD HY-CAP1-HE-LTF-AND-GI-FOR-HE-PPDUS-0-8US MIDAMBLE-RX-MAX-NSTS-0 STBC-TX-UNDER-80MHZ STBC-RX-UNDER-80MHZ DCM-MAX-CONST-TX-NO-DCM DCM-MAX-CONST-RX-NO-DCM SU-BEAMFORMER SU-BEAMFORMEE BEAMFORMEE-MAX-STS-UNDER-7 BEAMFORMEE-MAX-STS-ABOVE-4 NUM-SND-DIM-UNDER-80MHZ-4 NUM-SND-DIM-ABOVE-80MHZ-1 NG16-SU-FEEDBACK CODEBOOK-SIZE-42-SU PPE-THRESHOLD-PRESENT HE-SU-MU-PPDU-4XLTF-AND-08-US-GI MAX-NC-4 DCM-MAX-RU-242 NOMINAL-PACKET-PADDING-0US RX-MCS-80: 0xffaa RX-MCS-80-0-SUPPORT-0-11 RX-MCS-80-1-SUPPORT-0-11 RX-MCS-80-2-SUPPORT-0-11 RX-MCS-80-3-SUPPORT-0-11 TX-MCS-80: 0xffaa TX-MCS-80-0-SUPPORT-0-11 TX-MCS-80-1-SUPPORT-0-11 TX-MCS-80-2-SUPPORT-0-11 TX-MCS-80-3-SUPPORT-0-11 RX-MCS-160: 0xfffa RX-MCS-160-0-SUPPORT-0-11 RX-MCS-160-1-SUPPORT-0-11 RX-MCS-160-2-NOT-SUPPORTED RX-MCS-160-3-NOT-SUPPORTED TX-MCS-160: 0xfffa TX-MCS-160-0-SUPPORT-0-11 TX-MCS-160-1-SUPPORT-0-11 TX-MCS-160-2-NOT-SUPPORTED TX-MCS-160-3-NOT-SUPPORTED RX-MCS-80P80: 0xfffa RX-MCS-80P80-0-SUPPORT-0-11 RX-MCS-80P80-1-SUPPORT-0-11 RX-MCS-80P80-2-NOT-SUPPORTED RX-MCS-80P80-3-NOT-SUPPORTED TX-MCS-80P80: 0xfffa TX-MCS-80P80-0-SUPPORT-0-11 TX-MCS-80P80-1-SUPPORT-0-11 TX-MCS-80P80-2-NOT-SUPPORTED TX-MCS-80P80-3-NOT-SUPPORTED PPE-THRESHOLDS: 0x3b 0x1c 0xc7 0x71 0x1c 0xc7 0x71 0x1c 0xc7 0x71 root@OpenWrt:/# iw dev mesh2 station dump Station 00:03:7f:12:bb:97 (on mesh2) inactive time: 310 ms rx bytes: 161064 rx packets: 1619 tx bytes: 55454 tx packets: 477 tx retries: 405 tx failed: 0 rx drop misc: 6 signal: -95 dBm signal avg: -67 dBm tx bitrate: 1733.3 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 4 rx bitrate: 1733.3 MBit/s VHT-MCS 9 80MHz short GI VHT-NSS 4 rx duration: 0 us mesh llid: 0 mesh plid: 0 mesh plink: ESTAB mesh local PS mode: ACTIVE mesh peer PS mode: ACTIVE mesh non-peer PS mode: ACTIVE authorized: yes authenticated: yes associated: yes preamble: long WMM/WME: yes MFP: no TDLS peer: no DTIM period: 2 beacon interval:1000 connected time: 536 seconds But there is currently no documentation what the firmware requires (next to the already existing things for AP/managed) to enable HE for mesh. hwsim can be used in the meantime as basis for initial development of these features without having access to HW. Kind regards, Sven Sven Eckelmann (3): mac80211_hwsim: Register support for HE meshpoint mac80211: implement HE support for mesh ath11k: register HE mesh capabilities drivers/net/wireless/ath/ath11k/mac.c | 56 +++++ drivers/net/wireless/mac80211_hwsim.c | 283 +++++++++++++++++--------- include/net/cfg80211.h | 19 ++ net/mac80211/ieee80211_i.h | 2 + net/mac80211/mesh.c | 61 ++++++ net/mac80211/mesh.h | 4 + net/mac80211/mesh_plink.c | 11 +- net/mac80211/util.c | 52 +++++ 8 files changed, 393 insertions(+), 95 deletions(-)