qcacld-3.0: Ini bitmap to enable/disable a particular NAN feature

NAN protocol runs in firmware and controlled by framework.
Framework configures multiple NAN discovery params while enabling
NAN. Framework configurations would be based on the framework
constraints or realtime scenarios like resource(memory/power/..)
consumption. But some of these params might need to be controlled
explicitly based on the usage.
NAN DW is one such parameter, which is configured as 4 seconds
when the device is in sync role and the screen is off. But
for some usecases, this param might have to be 512ms always
irrespective of screen off/on for some targets. Add an ini param
"nan_feature_config" to set a bit to indicate firmware whether to
honor framework configured DW value or the firmware default value.
Send the vdev param on NAN supported vdev by setting the "bit 0"
to indicate firmware to allow framework configured DW value.
If this bit is not set, firmware shall consider its default value.

Change-Id: I0476bca2bbe676beccfff207f5b4ea31e89031e2
CRs-Fixed: 2721970
This commit is contained in:
Srinivas Dasari
2020-06-23 23:25:25 +05:30
committed by nshrivas
부모 d001e72975
커밋 c2b4e154f3
7개의 변경된 파일151개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2018, 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
@@ -98,4 +98,14 @@ QDF_STATUS target_if_nan_deregister_events(struct wlan_objmgr_psoc *psoc);
* Return: 0 for success or error code
*/
int target_if_nan_rsp_handler(ol_scn_t scn, uint8_t *data, uint32_t len);
/**
* target_if_nan_set_vdev_feature_config() - Init NAN feature config params
* @psoc: Pointer to PSOC Object
* @vdev_id: vdev_id of the current vdev
*
* This function updates NAN feature config bitmap to firmware
*/
void target_if_nan_set_vdev_feature_config(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id);
#endif /* _WIFI_POS_TGT_IF_H_ */