qcacmn: Green AP framework
Add APIs for green AP convergence framework. Change-Id: Icd4e676af1296843b0f64957e1d55db9b32f3e55 CRs-Fixed: 2142183
This commit is contained in:
82
umac/green_ap/dispatcher/inc/wlan_green_ap_api.h
Normal file
82
umac/green_ap/dispatcher/inc/wlan_green_ap_api.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright (c) 2017 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 green ap north bound interface definitions
|
||||
*/
|
||||
|
||||
#ifndef _WLAN_GREEN_AP_API_H_
|
||||
#define _WLAN_GREEN_AP_API_H_
|
||||
|
||||
#include <wlan_objmgr_pdev_obj.h>
|
||||
|
||||
/**
|
||||
* wlan_green_ap_init() - initialize green ap component
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_init(void);
|
||||
|
||||
/**
|
||||
* wlan_green_ap_deinit() - De-initialize green ap component
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_deinit(void);
|
||||
|
||||
/**
|
||||
* wlan_green_ap_start() - Start green ap
|
||||
* @pdev: pdev pointer
|
||||
*
|
||||
* Call this function when the first vdev comes up
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_start(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* wlan_green_ap_stop() - Stop green ap
|
||||
* @pdev: pdev pointer
|
||||
*
|
||||
* Call this function when the last vdev goes down
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_stop(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* wlan_green_ap_add_sta() - On association
|
||||
* @pdev: pdev pointer
|
||||
*
|
||||
* Call this function when new node is associated
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_add_sta(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* wlan_green_ap_del_sta() - On disassociation
|
||||
* @pdev: pdev pointer
|
||||
*
|
||||
* Call this function when new node is associated
|
||||
*
|
||||
* Return: Success or Failure
|
||||
*/
|
||||
QDF_STATUS wlan_green_ap_del_sta(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
#endif /* _WLAN_GREEN_AP_API_H_ */
|
29
umac/green_ap/dispatcher/inc/wlan_green_ap_ucfg_api.h
Normal file
29
umac/green_ap/dispatcher/inc/wlan_green_ap_ucfg_api.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2017 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 green ap north bound interface definitions
|
||||
*/
|
||||
|
||||
#ifndef _WLAN_GREEN_AP_UCFG_API_H_
|
||||
#define _WLAN_GREEN_AP_UCFG_API_H_
|
||||
|
||||
#include <wlan_objmgr_pdev_obj.h>
|
||||
|
||||
|
||||
#endif /* _WLAN_GREEN_AP_UCFG_API_H_ */
|
66
umac/green_ap/dispatcher/src/wlan_green_ap_api.c
Normal file
66
umac/green_ap/dispatcher/src/wlan_green_ap_api.c
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright (c) 2017 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: This file contains green ap north bound interface definitions
|
||||
*/
|
||||
|
||||
#include <qdf_status.h>
|
||||
#include <wlan_green_ap_api.h>
|
||||
|
||||
QDF_STATUS wlan_green_ap_init(void)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_green_ap_deinit(void)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_green_ap_start(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_green_ap_stop(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_green_ap_add_sta(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_green_ap_del_sta(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
return status;
|
||||
}
|
25
umac/green_ap/dispatcher/src/wlan_green_ap_ucfg_api.c
Normal file
25
umac/green_ap/dispatcher/src/wlan_green_ap_ucfg_api.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (c) 2017 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: This file contains green ap north bound interface definitions
|
||||
*/
|
||||
|
||||
#include <qdf_status.h>
|
||||
#include <wlan_green_ap_ucfg_api.h>
|
||||
|
Reference in New Issue
Block a user