Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp6810ybz; Thu, 30 Apr 2020 15:23:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJ2vtKAgWIhiJXVpDV8j98S3Rn61wusmshBmwWAodITqdgog1ieDV24dsMZsl3uD1WIhmjz X-Received: by 2002:a17:906:1186:: with SMTP id n6mr593333eja.45.1588285389064; Thu, 30 Apr 2020 15:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588285389; cv=none; d=google.com; s=arc-20160816; b=WMbPuy6AQ/ZWAVbrGkicyyZoNro6jxDXDIUaXf+I6y6CUl+gLoF8JLo9TtSADI/Dza LL4xf4d67bqck626MlOpLN1N4+dCWCj/2uTdxPMiQs9pXgRObHFHI5IwJGRNWD5iNyxk DcgrLKCoOfWDLJPdMhaa+ocGrVAWyYC9ge8R+8j0OnfgqeyI2T5OV/BjIIKj88yxT30S p05EM14bJ8P9bnAd999BGXm6bvTy/CwyFiTnc3vrK4Hj0tHSgOebv28VE/fCgjAyFQ63 dhlBy+SY6NB/qwIUsHqIhT4SCWyr5tq2Bxah8cWJdMwNwDMIbde3RwiJgoO3jvxVjHaa ERbA== 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:dmarc-filter:dkim-signature; bh=dKANdmrJlaFLRIkTGL+hMGdoJGsE4uHCx6btM3q5HFQ=; b=viSdHp7VtMhxM/V+K2g4s97+6F9biX5m6kprzkQu6FRnQneQjuUbeqyxCUgy6NI/6t Wz1SX0dFaAtXPJzhpWd1K4RrbtpB3ag2esSwENYGharsMcjdS6RiOoa0DpozlOeOvXZN AcsH5lTFCAzhjbpMvYLrsMK7EZgrQmA2N06giw43uxORyL3Q165Oeei59E8QtonEnjwu Tkwr7Pg/w6UjqeIYTkKjlOUSGkG7JfpgLayUte6TqovQBn6wrhgJ3kq8Yn5q/RDSM7c3 05OwvTzlS3DdBrK6m877i581K3vk7CymaE4lbGn/NZDPfGPS2IJEePdyfncQrPBHlexF o70w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=vZsC+lsU; 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 f3si554470edn.165.2020.04.30.15.22.45; Thu, 30 Apr 2020 15:23:09 -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=vZsC+lsU; 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 S1727097AbgD3WV1 (ORCPT + 99 others); Thu, 30 Apr 2020 18:21:27 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:18610 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbgD3WV0 (ORCPT ); Thu, 30 Apr 2020 18:21:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1588285285; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=dKANdmrJlaFLRIkTGL+hMGdoJGsE4uHCx6btM3q5HFQ=; b=vZsC+lsUwluJUJTiA68GeV8s+7y8gXqkHCHzA7b9ItdoX/H94gM1YfEgX6lHZfUIyOR1XAeS JZveQVQvRQpVS2PX9kLI4Z0VcijEDGsvQ2y+Ah7FE26/bs8ZAKSQtCgG/dKMoqMzPnOUq+R4 ZihPk9c6xO0FxESSNsPr0c40KpE= 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 5eab4f59.7f1bd7012c00-smtp-out-n05; Thu, 30 Apr 2020 22:21:13 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 90B5DC43636; Thu, 30 Apr 2020 22:21:12 +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, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from rmanohar-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rmanohar) by smtp.codeaurora.org (Postfix) with ESMTPSA id D6CC8C433CB; Thu, 30 Apr 2020 22:21:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D6CC8C433CB 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=rmanohar@codeaurora.org From: Rajkumar Manoharan To: johannes@sipsolutions.net, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Rajkumar Manoharan Subject: [PATCH v2 04/11] mac80211: add HE 6 GHz Band Capabilities into parse extension Date: Thu, 30 Apr 2020 15:20:45 -0700 Message-Id: <1588285252-30034-4-git-send-email-rmanohar@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1588285252-30034-1-git-send-email-rmanohar@codeaurora.org> References: <1588285252-30034-1-git-send-email-rmanohar@codeaurora.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Handle 6 GHz band capability element parsing for association. Signed-off-by: Rajkumar Manoharan --- include/linux/ieee80211.h | 1 + net/mac80211/ieee80211_i.h | 1 + net/mac80211/util.c | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 77462dff6db3..86b094738ce9 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2614,6 +2614,7 @@ enum ieee80211_eid_ext { WLAN_EID_EXT_MAX_CHANNEL_SWITCH_TIME = 52, WLAN_EID_EXT_MULTIPLE_BSSID_CONFIGURATION = 55, WLAN_EID_EXT_NON_INHERITANCE = 56, + WLAN_EID_EXT_HE_6GHZ_BAND_CAP = 59, }; /* Action category code */ diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index f8ed4f621f7f..5e33746d7210 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -1491,6 +1491,7 @@ struct ieee802_11_elems { const struct ieee80211_he_operation *he_operation; const struct ieee80211_he_spr *he_spr; const struct ieee80211_mu_edca_param_set *mu_edca_param_set; + const struct ieee80211_he_6ghz_band_cap *he_6ghz_cap_elem; const u8 *uora_element; const u8 *mesh_id; const u8 *peering; diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 20436c86b9bf..5a33755c22f4 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -936,6 +936,10 @@ static void ieee80211_parse_extension_element(u32 *crc, len >= ieee80211_he_spr_size(data)) elems->he_spr = data; break; + case WLAN_EID_EXT_HE_6GHZ_BAND_CAP: + if (len == sizeof(struct ieee80211_he_6ghz_band_cap)) + elems->he_6ghz_cap_elem = data; + break; } } -- 2.7.4