Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4387336pxb; Thu, 14 Oct 2021 04:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyojTd0jMdcvPQuPUcH0O2Fcf3Ad2wPJvg00CORgTnCEi8ScQOyX7DMVXWElqIsyAjgCIey X-Received: by 2002:a50:cf87:: with SMTP id h7mr7992433edk.324.1634210511954; Thu, 14 Oct 2021 04:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634210511; cv=none; d=google.com; s=arc-20160816; b=Tw26FfEf3Oe9hW7QAAHe6YfgATFmBQ0Yq5s4JxV1xr/GRULdL5QPwAY+jLUCjy+GHU BGpqge8nYTH1rqgcJm6MxXZ1Le8jhAESpYts/efJo4pOVvhbbM9sOPNEPfGuPVSE26YM ZS05Zxto8usVzhr9QX9lATrEW7MeSYZDRcyK7YOJNoL2mDPqLESjQ4rL/4hH2QYgOLHn wsaTbk5+tTgwWjtuB8LxSOOVOG8rEplcIPN4XYYc0OvkCVXqHFhryqwcRX+6uYbXQL9l oE5ULi0MkW+62yKLZ2TgbNW4fsKT1P4XnioTTnte/kYmfi2vE5nJdglfNXW4Q6RubAxK 3+lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=vfOxo/5ZWmikGRxjNTGyGNlOO3G2Fx1sjLi+kLS524g=; b=BTEvpSPe3d7lgvV+v84sxniUHPCNTm7xK6hXSfwZQjmhbhJboHaDsjdL/JdJBT9m7H svmSchrfstS8G+p/iOeXJelCnx1Ho1B6CLXECPgXR1cessjyFA2OHVOWoj7pkG6LSddD eUkfag91wYZ3/qXmDEPgQnqsHMt8glAoL+SpoGZAA6q7amDZS8AvhcymrQsBNJwVhkY7 QUxBtuHl91+thiDOGk6R2hvmyavnI6ziMFbPu6EXQ5lHrzIG+3QL7k75ZwMDwL6pTEzW tc6+guyUHPDku8EtUdgUr4yHQif74yejSSmVlWmVdQQ3Kbln6ZTWIhkShmOKXv4Omn8Y B6TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=tPOfvLi8; 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 d10si2812727edk.600.2021.10.14.04.21.29; Thu, 14 Oct 2021 04:21:51 -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=@mg.codeaurora.org header.s=smtp header.b=tPOfvLi8; 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 S230373AbhJNLVd (ORCPT + 63 others); Thu, 14 Oct 2021 07:21:33 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:50540 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbhJNLVc (ORCPT ); Thu, 14 Oct 2021 07:21:32 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634210367; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=vfOxo/5ZWmikGRxjNTGyGNlOO3G2Fx1sjLi+kLS524g=; b=tPOfvLi8QAyoXUI0RBsi+26TR5sVSHxbEU3KlatSID9KmW0ElvuRanj++6DeUEbxzmazVD0c gk7uQ9s2EhVbeabveR3WtDW3ViHIciZDhUJ74qfRc0244BevsiCA6ZkybnQl5jlcRrTpaTV2 n9BfTcATUWnnO8PVhI6Fl8vOOTk= X-Mailgun-Sending-Ip: 198.61.254.9 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 smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 61681226f3e5b80f1ffddb88 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 14 Oct 2021 11:19:02 GMT Sender: vjakkam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 271A6C4360D; Thu, 14 Oct 2021 11:19:02 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from hu-vjakkam-hyd.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vjakkam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5E6EBC43460; Thu, 14 Oct 2021 11:19:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 5E6EBC43460 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=fail smtp.mailfrom=codeaurora.org From: Veerendranath Jakkam To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org Subject: [PATCH] nl80211: Indicate SA Query procedures offload for AP SME device Date: Thu, 14 Oct 2021 16:48:51 +0530 Message-Id: <1634210331-9001-1-git-send-email-vjakkam@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Add AP SME device feature flag to advertise that the SA Query procedures are handled in driver. If this flag is advertised SA Query request or response frames from peers are not reported to userspace. Thus userspace components shall skip SA Query specific validations. Ex: When AP started with Operating Channel Validation(OCV) support and channel switch occurs, hostapd starts SA Query timer for OCV enabled STAs. Hostapd sends deauth to the STAs which didn't send SA Query request before timeout, Hostapd can skip such validations when this flag advertised. Signed-off-by: Veerendranath Jakkam --- include/uapi/linux/nl80211.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index eda608b..99746aa 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -5735,13 +5735,17 @@ enum nl80211_tdls_operation { NL80211_TDLS_DISABLE_LINK, }; -/* +/** * enum nl80211_ap_sme_features - device-integrated AP features - * Reserved for future use, no bits are defined in - * NL80211_ATTR_DEVICE_AP_SME yet. + * @NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD: Driver handles SA Query procedures. + * If this flag is advertised by the driver, SA Query request/response + * frames are handled within the driver and won't be reported to userspace. + * Userspace shall skip SA Query specific validations if the driver is + * advertizing this capability. + */ enum nl80211_ap_sme_features { + NL80211_DEVICE_AP_SME_SA_QUERY_OFFLOAD = 1 << 0, }; - */ /** * enum nl80211_feature_flags - device/driver features -- 2.7.4