Files
android_kernel_samsung_sm86…/components/son/dispatcher/inc/son_api.h
bings b6c09cbaf4 qcacld-3.0: Do not kickout sta if it is in band steering
When a sta is being steered, sending a deauth may interrupt the
association/EAPOL handshake on the new BSS.

Do not kickout sta if it is being steered.

Change-Id: I15dd26bca27699087cdb790de8cb95281dade385
CRs-Fixed: 3042990
2021-10-27 20:53:09 -07:00

75 lines
2.3 KiB
C

/*
* Copyright (c) 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
* 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 son api
*/
#ifndef _SON_API_H_
#define _SON_API_H_
#include <qdf_types.h>
#include <wlan_objmgr_peer_obj.h>
#include <wlan_objmgr_pdev_obj.h>
#include <reg_services_public_struct.h>
/**
* wlan_son_get_chan_flag() - get chan flag
* @pdev: pointer to pdev
* @freq: qdf_freq_t
* @flag_160: If true, 160 channel info will be obtained;
* otherwise 80+80, 80 channel info will be obtained
* @chan_params: chan parameters
*
* Return: combination of enum qca_wlan_vendor_channel_prop_flags and
* enum qca_wlan_vendor_channel_prop_flags_2
*/
uint32_t wlan_son_get_chan_flag(struct wlan_objmgr_pdev *pdev,
qdf_freq_t freq, bool flag_160,
struct ch_params *chan_params);
/**
* wlan_son_peer_set_kickout_allow() - set the peer is allowed to kickout
* @vdev: pointer to vdev
* @peer: pointer to peer
* @kickout_allow: kickout_allow to set
*
* Return: QDF_STATUS_SUCCESS on Success else failure.
*/
QDF_STATUS wlan_son_peer_set_kickout_allow(struct wlan_objmgr_vdev *vdev,
struct wlan_objmgr_peer *peer,
bool kickout_allow);
#ifdef WLAN_FEATURE_SON
/**
* wlan_son_peer_is_kickout_allow() - Is peer is allowed to kickout
* @vdev: pointer to vdev
* @macaddr: mac addr of the peer
*
* Return: True if it is allowed to kickout.
*/
bool wlan_son_peer_is_kickout_allow(struct wlan_objmgr_vdev *vdev,
uint8_t *macaddr);
#else
static inline bool wlan_son_peer_is_kickout_allow(struct wlan_objmgr_vdev *vdev,
uint8_t *macaddr)
{
return true;
}
#endif /*WLAN_FEATURE_SON*/
#endif