blob: 670b6b3cd8a17d63e4efd0cfb31a99fb790d7f0f [file] [log] [blame]
/*
* This file is part of the UWB stack for linux.
*
* Copyright (c) 2020-2022 Qorvo US, Inc.
*
* This software is provided under the GNU General Public License, version 2
* (GPLv2), as well as under a Qorvo commercial license.
*
* You may choose to use this software under the terms of the GPLv2 License,
* version 2 ("GPLv2"), as published by the Free Software Foundation.
* You should have received a copy of the GPLv2 along with this program. If
* not, see <http://www.gnu.org/licenses/>.
*
* This program is distributed under the GPLv2 in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GPLv2 for more
* details.
*
* If you cannot meet the requirements of the GPLv2, you may not use this
* software for any purpose without first obtaining a commercial license from
* Qorvo. Please contact Qorvo to inquire about licensing terms.
*/
#ifndef NET_MCPS802154_FIRA_REGION_CALL_H
#define NET_MCPS802154_FIRA_REGION_CALL_H
#include "fira_region.h"
/**
* fira_get_capabilities() - Get FiRa capabilities.
* @local: FiRa context.
* @info: Request information.
*
* Return: 0 or error.
*/
int fira_get_capabilities(struct fira_local *local,
const struct genl_info *info);
/**
* fira_session_control() - Control FiRa session.
* @local: FiRa context.
* @call_id: Identifier of the FiRa procedure.
* @params: Nested attribute containing procedure parameters.
* @info: Request information.
*
* Return: 0 or error.
*/
int fira_session_control(struct fira_local *local, enum fira_call call_id,
const struct nlattr *params,
const struct genl_info *info);
/**
* fira_session_get_count() - Get count of active and inactive sessions.
* @local: FiRa context.
*
* Return: 0 or error.
*/
int fira_session_get_count(struct fira_local *local);
#endif /* NET_MCPS802154_FIRA_REGION_CALL_H */