From e54c0bf64cecf0076800a06edd501e191ef6c6cc Mon Sep 17 00:00:00 2001 From: Asutosh Mohapatra Date: Mon, 22 Apr 2024 02:12:05 -0700 Subject: [PATCH] qcacmn: Add vendor attribute to configure custom STA keep-alive interval Introduce an attribute QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL in QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure station's keep-alive interval to the driver/firmware. This can be used to resolve kickout issues from APs which kick out STAs before the BSS maximum idle period expires. Change-Id: I80c743d5a10b559a2ec027a1098ff55fc450007b CRs-Fixed: 3795409 --- os_if/linux/qca_vendor.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 978f4f1cbb..df90efacf6 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. - * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -5068,6 +5068,18 @@ enum qca_wlan_vendor_attr_config { */ QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, + /* 16-bit unsigned value to configure client's keep-alive interval in + * seconds. The driver will reduce the keep-alive interval to this + * configured value if the AP advertises BSS maximum idle period and if + * that BSS max idle period is larger than this configured value. If the + * AP does not advertise a maximum value, the configured value will be + * used as a keep-alive period for unprotected frames. + * + * This configuration is applicable only during the STA's current + * association. + */ + QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108, + /* keep last */ QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =