Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3810978ybz; Mon, 4 May 2020 10:07:58 -0700 (PDT) X-Google-Smtp-Source: APiQypKmA/vb8pkW9KEWwgbLQelojX66sDID4GMQTXpj3Ntj405Q73ly/MHQcQTi83RZL4rexm1c X-Received: by 2002:a05:6402:28e:: with SMTP id l14mr15085490edv.184.1588612078483; Mon, 04 May 2020 10:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588612078; cv=none; d=google.com; s=arc-20160816; b=soYY8dz41z60A+gcDAPy3dBoGQcNtVA6Ap6ZGtPV6l0lSQcwjb916CTNs8XN1O862t 8TgC2HpqdU8m7gDc7t7WMBNteF0bx3B/u42AIWgM02bUShOng6a4Cn22j1vdwwVlYsUo Q0NEGiZF102ukg9opqK4L8tK+Hfb+GNYOz1YiU92KNm0UNXe5saER7ruyM/0elhVnaA9 sbShevq2mpBM7qYqcQd3nLsT78Q37TKEpgC9N8iwxqHj1KPqlSrQ4hS35NfBF0q3MmSd iUCF5BUrIW7swIBgLgMNm3Ja8mr9qAuVOAeBJXwBdbBHHkO9gQ3sKi92hLoV/drluSL2 tmlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=xV9DwieOETp85uRilqJXwoKSn4Hb2ILx/AsUkH9bC8k=; b=U5LwgjjVgF0P32Atim9iUkH6ZJ4p9OoQBgjvxmT9T+7LwEwt0mIfwK83GrbztUrO6M v1SNfrJBOK8e5DRVQUg2a0ObqI2sysi7wIu4BAVQu3tCxEWs/wmN05xzMgVPf+/3JGtS mnYDUjhmepqrrE1VbcTaQ4idS2M+Lo0LAf0bfG5b/RZYR2aqhdyPWvOxo2WVBA88ED/Y 3jDmZuYwXeyUw2G/5tUMl9NRmPxy+CXbweG3UbYbqKZGDmpi0MSCNvEFvTpmzAgwjYHt gq4M7GS8De/G4UtIhELYPjvg+zzyEoegMeQhwLnxeZMIQezAMR7C2LXGT5KFaHAq0k4O j5Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=WYZ1G7fs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si7773944edj.259.2020.05.04.10.07.33; Mon, 04 May 2020 10:07:58 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=WYZ1G7fs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729860AbgEDRGz (ORCPT + 99 others); Mon, 4 May 2020 13:06:55 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:61144 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728158AbgEDRGz (ORCPT ); Mon, 4 May 2020 13:06:55 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588612014; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=xV9DwieOETp85uRilqJXwoKSn4Hb2ILx/AsUkH9bC8k=; b=WYZ1G7fs6/5Z4Wz2O9aTHRRBxCLJeYN/6yT+tmfyIH7ZvgodvnF9+c6+M3xgr8OtejTapjYt SOLqo2VcFISrs5QyrHWwUQ1j5jy7bec2WNdhPTNu1miByUDz5FljDaEOy+xHH0o9k6qRVByQ LqkVE/yRQmktX9rRo3/5Ctnfj6A= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5eb04bad.7fa7bade4dc0-smtp-out-n03; Mon, 04 May 2020 17:06:53 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E34CDC433D2; Mon, 4 May 2020 17:06:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from cheath10p342229-lin.qca.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tamizhr) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2FA95C433CB; Mon, 4 May 2020 17:06:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2FA95C433CB Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=tamizhr@codeaurora.org From: Tamizh Chelvam To: ath11k@lists.infradead.org, johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Tamizh Chelvam Subject: [PATCH 1/2] mac80211: Add new AMPDU factor macro for HE peer caps Date: Mon, 4 May 2020 22:34:59 +0530 Message-Id: <1588611900-21185-1-git-send-email-tamizhr@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add IEEE80211_HE_VHT_MAX_AMPDU_FACTOR and IEEE80211_HE_HT_MAX_AMPDU_FACTOR as per spec to use for peer max ampdu factor. Signed-off-by: Tamizh Chelvam --- include/linux/ieee80211.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index a561db4..69e214c 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1821,6 +1821,8 @@ int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, #define IEEE80211_HE_MAC_CAP3_FLEX_TWT_SCHED 0x40 #define IEEE80211_HE_MAC_CAP3_RX_CTRL_FRAME_TO_MULTIBSS 0x80 +#define IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_SHIFT 3 + #define IEEE80211_HE_MAC_CAP4_BSRP_BQRP_A_MPDU_AGG 0x01 #define IEEE80211_HE_MAC_CAP4_QTP 0x02 #define IEEE80211_HE_MAC_CAP4_BQR 0x04 @@ -1842,6 +1844,9 @@ int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, #define IEEE80211_HE_MAC_CAP5_PUNCTURED_SOUNDING 0x40 #define IEEE80211_HE_MAC_CAP5_HT_VHT_TRIG_FRAME_RX 0x80 +#define IEEE80211_HE_VHT_MAX_AMPDU_FACTOR 20 +#define IEEE80211_HE_HT_MAX_AMPDU_FACTOR 16 + /* 802.11ax HE PHY capabilities */ #define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_IN_2G 0x02 #define IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_40MHZ_80MHZ_IN_5G 0x04 -- 1.9.1