Browse Source

qcacld-3.0: Increment the set feature version

Currently the set feature version is 2. There is a change in
min sleep period for TWT.

So increment the set feature version from 2 to 3

CRs-Fixed: 3378350
Change-Id: Iacee2a208b01144ced6b64834cbb3f6a5bedff20
Sachin Ahuja 2 years ago
parent
commit
30dec8b155
1 changed files with 20 additions and 2 deletions
  1. 20 2
      core/wma/src/wma_main.c

+ 20 - 2
core/wma/src/wma_main.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. 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
@@ -324,6 +324,22 @@ wma_get_concurrency_support(struct wlan_objmgr_psoc *psoc)
 		return WMI_HOST_BAND_CONCURRENCY_DBS;
 }
 
+/**
+ * wma_update_set_feature_version() - Update the set feature version
+ *
+ * @fs: Feature set structure in which version needs to be updated.
+ *
+ * Version 1 - Base feature version
+ * Version 2 - WMI_HOST_VENDOR1_REQ1_VERSION_3_30 updated.
+ * Version 3 - min sleep period for TWT and Scheduled PM in FW updated
+ *
+ * Return: None
+ */
+static void wma_update_set_feature_version(struct target_feature_set *fs)
+{
+	fs->feature_set_version = 3;
+}
+
 /**
  * wma_set_feature_set_info() - Set feature set info
  * @wma_handle: WMA handle
@@ -479,7 +495,9 @@ static void wma_set_feature_set_info(tp_wma_handle wma_handle,
 	feature_set->peer_bigdata_getbssinfo_support = true;
 	feature_set->peer_bigdata_assocreject_info_support = true;
 	feature_set->peer_getstainfo_support = true;
-	feature_set->feature_set_version = 2;
+
+	wma_update_set_feature_version(feature_set);
+
 }
 
 /**