From patchwork Fri Jul 24 10:20:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 247132 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2307246ilg; Fri, 24 Jul 2020 03:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMMOGskl85lxmmxCG6VDaKQpaCbptMcjrspziA5wsnW8Fdc90+IOtKrE3MgQqA37M3mQHV X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr4446423ejz.239.1595585739484; Fri, 24 Jul 2020 03:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595585739; cv=none; d=google.com; s=arc-20160816; b=Z2K5oApN6plgpAxB4RT6X93DAumVXNO0H1zjBrrF0wzZaAyIy1moTPr0gxBdDV0aR0 ebRbOwStdRVj7d5hwMr9ynP/v0PlvijBoBGpJlg1s/TqEYsmnhys4XzdvTB++F3netvC 0W+Ld/I6fr4vkCgH1n9rdu+m/465h1yVBL9wsDj0CY4nfYK1nAmv/lycKp+FKd5nmp2f neHWBR+18JfgBFcpFo7vt6gCEsukb18whwGDp22baGIaobGdWnMPCYlCqAlCELHVG1XD tPnLfZCuQQr0NcOjd3D/FJE2oTbTAnZlssKl0Ajj9Ie8id6/3sSMFCVpvxarNx9GuFrw 6RRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=29iinGb2cUivlj3Yy97UBPj5TwYQxxenBj0F2fDuKtQ=; b=RyALrqKWsw4pFjp4uq0e2fGGOboIVRIdqGdZA+HX8yiFisM+Gr5dVfcEqW3A6ewCZP LVBIwgwVd+JOLf+9vuNJ3dibT+KvDw3ZWP/sNj3ZzIxsvmewNH6+RX0udPs5f6zJlukS 4fCE6dJ9KhI0DKrJt4/5lTTq5olLxBXTmoXGXhtn7B3Wbv1CQTihHaVbPECiJmSYk8Zx rQjGwoa4pr4LZJvsNW6oI5qWxMpJ2nq/joA7t31Ob9SP3HWWFXGoCppz65OZY4YgYLmV yDR7dp9QzB4kPLTpV3gtV27gWYRg8NWIh4/G5QVrnQWzRv52hitibSxWj2+X2bHjlMPV CjZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OuAeZJWZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si315778ejx.318.2020.07.24.03.15.39; Fri, 24 Jul 2020 03:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OuAeZJWZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727892AbgGXKPi (ORCPT + 2 others); Fri, 24 Jul 2020 06:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgGXKPh (ORCPT ); Fri, 24 Jul 2020 06:15:37 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ADA3C0619D3 for ; Fri, 24 Jul 2020 03:15:37 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id f18so7819748wrs.0 for ; Fri, 24 Jul 2020 03:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=29iinGb2cUivlj3Yy97UBPj5TwYQxxenBj0F2fDuKtQ=; b=OuAeZJWZyi+t0YpFltWxopOi5yvySOM2ve3AT145cSx6P+nZqCUa1cfVEqeEbk7kzK TpxReg6v8tAcqZCxGwNsBOXkXOwG8EWJsTH9xgJlop5+CKDEgzlqU7ptUSukLVcZ3Cgm OlzwUc7ZoC2oXodz7nxqQG0gMhXiqVgUlC0d2TIoVTTjgbkaNHlsncdfDuKQkAYvvo2K KyoW33ir/A50Yn/CO7aewdJE5+zlpnjBKeoYMIC7RIU4cK2Px2E9bNyb95Erabl/JdNM baqmlTT76+6h2YU7LlAIiTmnnRM8oHF6AWWTukm9btqbrIsbwKj9w5SYmkFKVMhc271R oegQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=29iinGb2cUivlj3Yy97UBPj5TwYQxxenBj0F2fDuKtQ=; b=iwYPZNef8mH3DSjGLs93abV6q8g3LW6poTKFWVJr7aftB0QQio9acB8/NwpFMbURyt PwxaEvz0L11h/hHvizcjDXkU9oCWd8gjx6IhZ0w3ObMpx3yuFm2UlWm6hMzwiZrE1gXB wrghAx9XZ//Qz+D1zaXnnrmg2GFxza5l6XGZGRb7rR+mqwN9w/OZn4s1X7Js4ZId7FjM CiTRzR+xt4ckzWpZvv9jj5kvIe5nNVh/gmjt0e+FiVZTBoS8bsCpp+ZrAtEbX2zbtJPR 6RacNHspq6PYNLJKqsn743+A1D0ahy6IWVyIOFmy2lI/Wdj8Mz63TBPubvR9xY9uOlHA gyvw== X-Gm-Message-State: AOAM533giDc74XF0VogYKZhdfqavS+PZ6SSGE0iomSzqq9t+Td4C3+7n NBFpRKvGS2HtnmOH5c8VmeEmEA== X-Received: by 2002:adf:a15c:: with SMTP id r28mr7901311wrr.151.1595585736299; Fri, 24 Jul 2020 03:15:36 -0700 (PDT) Received: from localhost.localdomain ([88.122.66.28]) by smtp.gmail.com with ESMTPSA id d18sm774714wrj.8.2020.07.24.03.15.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2020 03:15:35 -0700 (PDT) From: Loic Poulain To: kvalo@codeaurora.org Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, Loic Poulain Subject: [PATCH v2 6/6] wcn36xx: Use sequence number allocated by mac80211 Date: Fri, 24 Jul 2020 12:20:52 +0200 Message-Id: <1595586052-16081-7-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595586052-16081-1-git-send-email-loic.poulain@linaro.org> References: <1595586052-16081-1-git-send-email-loic.poulain@linaro.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Instead of using the firmware generated sequence number, use the one already allocated by the mac80211 layer. This allows better control of the sequence numbers and avoid to rely on same sequence for Data, QOS Data and QOS Null Data packets. Signed-off-by: Loic Poulain --- drivers/net/wireless/ath/wcn36xx/txrx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/wireless/ath/wcn36xx/txrx.c b/drivers/net/wireless/ath/wcn36xx/txrx.c index c9cf3db..3f668ef 100644 --- a/drivers/net/wireless/ath/wcn36xx/txrx.c +++ b/drivers/net/wireless/ath/wcn36xx/txrx.c @@ -93,7 +93,8 @@ static void wcn36xx_set_tx_pdu(struct wcn36xx_tx_bd *bd, bd->pdu.mpdu_header_off; bd->pdu.mpdu_len = len; bd->pdu.tid = tid; - bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_DPU_QOS; + /* Use seq number generated by mac80211 */ + bd->pdu.bd_ssn = WCN36XX_TXBD_SSN_FILL_HOST; } static inline struct wcn36xx_vif *get_vif_by_addr(struct wcn36xx *wcn, @@ -200,6 +201,7 @@ static void wcn36xx_set_tx_data(struct wcn36xx_tx_bd *bd, if (ieee80211_is_any_nullfunc(hdr->frame_control)) { /* Don't use a regular queue for null packet (no ampdu) */ bd->queue_id = WCN36XX_TX_U_WQ_ID; + } if (bcast) {