qcacld-3.0: Check whether p2p device dynamic mac update supported
If F/W doesn't support p2p device dynamic mac update, after dynamic mac update, p2p tx will fail. Check whether p2p device dynamic mac update supported by target, if not supported, reject p2p device dynamic mac update request from upper layer. Fix warning of uninitialized status. Change-Id: I845bd9683f2b68c3ed28292917601fdefed13f72 CRs-Fixed: 3680411
This commit is contained in:

committed by
Ravindra Konda

parent
12bd9f4c4b
commit
f7fc5bc815
@@ -476,4 +476,23 @@ bool ucfg_p2p_is_roam_config_disabled(struct wlan_objmgr_psoc *psoc)
|
||||
* Return: p2p go supported on indoor channel
|
||||
*/
|
||||
bool ucfg_p2p_get_indoor_ch_support(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
#ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
|
||||
/**
|
||||
* ucfg_is_p2p_device_dynamic_set_mac_addr_supported() - API to check P2P device
|
||||
* dynamic MAC address update is supported or not
|
||||
*
|
||||
* @psoc: Pointer to psoc
|
||||
*
|
||||
* Return: true or false
|
||||
*/
|
||||
bool
|
||||
ucfg_is_p2p_device_dynamic_set_mac_addr_supported(struct wlan_objmgr_psoc *psoc);
|
||||
#else
|
||||
static inline bool
|
||||
ucfg_is_p2p_device_dynamic_set_mac_addr_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
#endif /* _WLAN_P2P_UCFG_API_H_ */
|
||||
|
@@ -31,6 +31,7 @@
|
||||
#include "../../core/src/wlan_p2p_main.h"
|
||||
#include "../../core/src/wlan_p2p_roc.h"
|
||||
#include "../../core/src/wlan_p2p_off_chan_tx.h"
|
||||
#include "target_if.h"
|
||||
|
||||
static inline struct wlan_lmac_if_p2p_tx_ops *
|
||||
ucfg_p2p_psoc_get_tx_ops(struct wlan_objmgr_psoc *psoc)
|
||||
@@ -661,3 +662,21 @@ bool ucfg_p2p_get_indoor_ch_support(struct wlan_objmgr_psoc *psoc)
|
||||
|
||||
return p2p_soc_obj->param.indoor_channel_support;
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
|
||||
bool
|
||||
ucfg_is_p2p_device_dynamic_set_mac_addr_supported(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wmi_unified *wmi_handle;
|
||||
|
||||
wmi_handle = get_wmi_unified_hdl_from_psoc(psoc);
|
||||
if (!wmi_handle) {
|
||||
p2p_err("wmi handle is NULL");
|
||||
return false;
|
||||
}
|
||||
|
||||
return wmi_service_enabled(wmi_handle,
|
||||
wmi_service_p2p_device_update_mac_addr_support);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user