1
0

qcacmn: Move scoring logic to connection manager

Move bss scoring logic to connection manager.

Change-Id: If8484ec2fa8b3e2d153ae4a6caed76f3354b8965
CRs-Fixed: 2707106
Este cometimento está contido em:
gaurank kathpalia
2020-05-29 03:28:42 +05:30
cometido por nshrivas
ascendente e85e67ce9b
cometimento 506f49a0ff
18 ficheiros modificados com 2612 adições e 1262 eliminações

Ver ficheiro

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2020 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
@@ -21,6 +21,8 @@
#ifndef _WLAN_PSOC_MLME_API_H_
#define _WLAN_PSOC_MLME_API_H_
#include <include/wlan_psoc_mlme.h>
/**
* wlan_psoc_mlme_get_cmpt_obj() - Returns PSOC MLME component object
* @psoc: PSOC object
@@ -56,4 +58,34 @@ mlme_psoc_ext_t *wlan_psoc_mlme_get_ext_hdl(struct wlan_objmgr_psoc *psoc);
void wlan_psoc_mlme_set_ext_hdl(struct psoc_mlme_obj *psoc_mlme,
mlme_psoc_ext_t *psoc_ext_hdl);
/**
* wlan_psoc_set_phy_config() - Init psoc phy related configs
* @psoc: pointer to psoc object
* @phy_config: phy related configs score config
*
* Return: void
*/
void wlan_psoc_set_phy_config(struct wlan_objmgr_psoc *psoc,
struct psoc_phy_config *phy_config);
/**
* mlme_psoc_open() - MLME component Open
* @psoc: pointer to psoc object
*
* Open the MLME component and initialize the MLME structure
*
* Return: QDF Status
*/
QDF_STATUS mlme_psoc_open(struct wlan_objmgr_psoc *psoc);
/**
* mlme_psoc_close() - MLME component close
* @psoc: pointer to psoc object
*
* Open the MLME component and initialize the MLME structure
*
* Return: QDF Status
*/
QDF_STATUS mlme_psoc_close(struct wlan_objmgr_psoc *psoc);
#endif

Ver ficheiro

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2020 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
@@ -59,4 +59,47 @@ void wlan_psoc_mlme_set_ext_hdl(struct psoc_mlme_obj *psoc_mlme,
psoc_mlme->ext_psoc_ptr = psoc_ext_hdl;
}
void wlan_psoc_set_phy_config(struct wlan_objmgr_psoc *psoc,
struct psoc_phy_config *phy_config)
{
struct psoc_mlme_obj *mlme_psoc_obj;
struct psoc_phy_config *config;
if (!phy_config) {
mlme_err("phy_config is NUll");
return;
}
mlme_psoc_obj = wlan_psoc_mlme_get_cmpt_obj(psoc);
if (!mlme_psoc_obj)
return;
config = &mlme_psoc_obj->phy_config;
qdf_mem_copy(config, phy_config, sizeof(*config));
}
static void mlme_init_cfg(struct wlan_objmgr_psoc *psoc)
{
struct psoc_mlme_obj *mlme_psoc_obj;
mlme_psoc_obj = wlan_psoc_mlme_get_cmpt_obj(psoc);
if (!mlme_psoc_obj)
return;
wlan_cm_init_score_config(psoc, &mlme_psoc_obj->score_config);
}
QDF_STATUS mlme_psoc_open(struct wlan_objmgr_psoc *psoc)
{
mlme_init_cfg(psoc);
return QDF_STATUS_SUCCESS;
}
QDF_STATUS mlme_psoc_close(struct wlan_objmgr_psoc *psoc)
{
return QDF_STATUS_SUCCESS;
}
qdf_export_symbol(wlan_psoc_mlme_set_ext_hdl);