qcacld-3.0: Add ucfg_pmo_psoc_set_caps()

Provide PMO-specific device capabilities to PMO. This allows PMO to do
intersections between configuration and device capabilities.

Change-Id: If0a199f9be466d16cef900a29b14b73a2a4e52d0
CRs-Fixed: 2197828
This commit is contained in:
Dustin Brown
2018-02-28 16:00:02 -08:00
committed by nshrivas
parent 757f448a04
commit 06259e5d96
7 changed files with 94 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018 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
@@ -43,6 +43,22 @@ QDF_STATUS ucfg_pmo_update_psoc_config(struct wlan_objmgr_psoc *psoc,
return pmo_core_update_psoc_config(psoc, psoc_cfg);
}
QDF_STATUS ucfg_pmo_psoc_set_caps(struct wlan_objmgr_psoc *psoc,
struct pmo_device_caps *caps)
{
QDF_BUG(psoc);
if (!psoc)
return QDF_STATUS_E_INVAL;
QDF_BUG(caps);
if (!caps)
return QDF_STATUS_E_INVAL;
pmo_psoc_set_caps(psoc, caps);
return QDF_STATUS_SUCCESS;
}
bool ucfg_pmo_is_ap_mode_supports_arp_ns(struct wlan_objmgr_psoc *psoc,
enum QDF_OPMODE vdev_opmode)
{