qcacmn: Add vdev param to configure NAN feature bitmap to firmware

Define a new vdev param to set corresponding bit to enable/disable
a particular NAN feature.
Currently, Framework configures NAN DW as 4 seconds when the
device is in sync role and the screen is off. But customers might
want this to be 512ms always irrespective of screen off/on.
Send the vdev param on NAN vdev by setting the "bit 0" to 0 to
indicate firmware to ignore framework configured DW value and
consider the firmware default value.

Change-Id: Idcbdae94bd6a96fbbe15ec103a0aa558cdfcd572
CRs-Fixed: 2721980
This commit is contained in:
Srinivas Dasari 2020-06-24 16:31:00 +05:30 • committed by nshrivas
commit 4e5cfb2ac9
2 changed files with 3 additions and 0 deletions

View file

@ -4977,6 +4977,7 @@ typedef enum {
wmi_vdev_param_set_cmd_obss_pd_threshold,
wmi_vdev_param_set_cmd_obss_pd_per_ac,
wmi_vdev_param_enable_srp,
wmi_vdev_param_nan_config_features,
} wmi_conv_vdev_param_id;
/**

View file

@ -492,6 +492,8 @@ static const uint32_t vdev_param_tlv[] = {
[wmi_vdev_param_set_cmd_obss_pd_per_ac] =
WMI_VDEV_PARAM_SET_CMD_OBSS_PD_PER_AC,
[wmi_vdev_param_enable_srp] = WMI_VDEV_PARAM_ENABLE_SRP,
[wmi_vdev_param_nan_config_features] =
WMI_VDEV_PARAM_ENABLE_DISABLE_NAN_CONFIG_FEATURES,
};
#endif