qcacld-3.0: Add support to configure bss max idle period

Add support to configure the bss max idle period for STA.

Change-Id: Ifc56f6513a2b643ab574937c5216b53bdea1d2c5
CRs-Fixed: 2829159
This commit is contained in:
Kiran Kumar Lokere
2020-12-07 22:01:37 -08:00
committed by Madan Koyyalamudi
parent 74c62ced54
commit f4ed112b3c
9 changed files with 74 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2021, The Linux Foundation. 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 above
@@ -51,6 +51,31 @@
CFG_VALUE_OR_DEFAULT, \
"send default NULL frame to AP")
/*
* bss_max_idle_period - STA bss max period
*
* @Min: 0
* @Max: 100
* @Default: 0
*
* This ini is used to advertise the bss max idle period in assoc req.
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal
*
*/
#define CFG_STA_BSS_MAX_IDLE_PERIOD CFG_UINT( \
"bss_max_idle_period", \
0, \
100, \
0, \
CFG_VALUE_OR_DEFAULT, \
"advertise bss max idle period")
/*
* <ini>
* tgt_gtx_usr_cfg - target gtx user config
@@ -484,6 +509,7 @@
#define CFG_STA_ALL \
CFG(CFG_INFRA_STA_KEEP_ALIVE_PERIOD) \
CFG(CFG_STA_BSS_MAX_IDLE_PERIOD) \
CFG(CFG_TGT_GTX_USR_CFG) \
CFG(CFG_PMKID_MODES) \
CFG(CFG_IGNORE_PEER_ERP_INFO) \

View File

@@ -1557,6 +1557,7 @@ enum station_keepalive_method {
/**
* struct wlan_mlme_sta_cfg - MLME STA configuration items
* @sta_keep_alive_period: Sends NULL frame to AP period
* @bss_max_idle_period: BSS max idle period
* @tgt_gtx_usr_cfg: Target gtx user config
* @pmkid_modes: Enable PMKID modes
* @wait_cnf_timeout: Wait assoc cnf timeout
@@ -1578,6 +1579,7 @@ enum station_keepalive_method {
*/
struct wlan_mlme_sta_cfg {
uint32_t sta_keep_alive_period;
uint32_t bss_max_idle_period;
uint32_t tgt_gtx_usr_cfg;
uint32_t pmkid_modes;
uint32_t wait_cnf_timeout;