qcacld-3.0: Add spatial reuse feature support
Add SAP mode support for non-srg spatial reuse. Change-Id: Ic575eefd0d36b6750d826c9bccbd53f07ae9ea75 CRs-Fixed: 3213404
This commit is contained in:

committed by
Madan Koyyalamudi

orang tua
19a58a9c0f
melakukan
e728680f11
40
components/spatial_reuse/dispatcher/inc/spatial_reuse_api.h
Normal file
40
components/spatial_reuse/dispatcher/inc/spatial_reuse_api.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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 above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOC : contains interface prototypes for spatial_reuse api
|
||||
*/
|
||||
|
||||
#ifndef _SPATIAL_REUSE_API_H_
|
||||
#define _SPATIAL_REUSE_API_H_
|
||||
|
||||
#include <qdf_types.h>
|
||||
#include <qdf_trace.h>
|
||||
#include <wlan_objmgr_vdev_obj.h>
|
||||
|
||||
/**
|
||||
* wlan_spatial_reuse_config_set() - Set spatial reuse config
|
||||
* @vdev: objmgr manager vdev
|
||||
* @sr_ctrl: spatial reuse control
|
||||
* @non_srg_max_pd_offset: non-srg max pd offset
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_spatial_reuse_config_set(struct wlan_objmgr_vdev *vdev,
|
||||
uint8_t sr_ctrl,
|
||||
uint8_t non_srg_max_pd_offset);
|
||||
|
||||
#endif
|
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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 above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* DOC : contains interface prototypes for OS_IF layer
|
||||
*/
|
||||
#ifndef _SPATIAL_REUSE_UCFG_API_H_
|
||||
#define _SPATIAL_REUSE_UCFG_API_H_
|
||||
|
||||
#include <qdf_trace.h>
|
||||
#include <wlan_objmgr_vdev_obj.h>
|
||||
|
||||
/**
|
||||
* ucfg_spatial_reuse_get_sr_config() - Spatial reuse config get
|
||||
*
|
||||
* @vdev: object manager vdev
|
||||
* @sr_ctrl: spatial reuse sr control
|
||||
* @non_srg_max_pd_offset: non-srg max pd offset
|
||||
* @he_spr_enabled: spatial reuse enabled
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
void ucfg_spatial_reuse_get_sr_config(struct wlan_objmgr_vdev *vdev,
|
||||
uint8_t *sr_ctrl,
|
||||
uint8_t *non_srg_max_pd_offset,
|
||||
bool *he_spr_enabled);
|
||||
/**
|
||||
* ucfg_spatial_reuse_get_sr_config() - Spatial reuse config set
|
||||
*
|
||||
* @vdev: object manager vdev
|
||||
* @sr_ctrl: spatial reuse sr control
|
||||
* @non_srg_max_pd_offset: non-srg max pd offset
|
||||
* @he_spr_enabled: Spatial reuse enabled
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
void ucfg_spatial_reuse_set_sr_config(struct wlan_objmgr_vdev *vdev,
|
||||
uint8_t sr_ctrl,
|
||||
uint8_t non_srg_max_pd_offset);
|
||||
/**
|
||||
* ucfg_spatial_reuse_send_sr_config() - Send spatial reuse config to fw
|
||||
*
|
||||
* @vdev: object manager vdev
|
||||
* @enable: spatial reuse config to be enabled or not
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
void ucfg_spatial_reuse_send_sr_config(struct wlan_objmgr_vdev *vdev,
|
||||
bool enable);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user