Browse Source

qcacld-3.0: Cleanup usage of RA rate limit variables in WMA

By design, when APF is supported by target, RA filtering need
not be configured. Legacy code handled this by passing INI value
of RA rate limit value to WMA and intersecting it with APF
enabled flag. Change Iabb75b46fce64b2c4a7a303848d7cb6b4714253b
replaced this implementation by a single check in PMO. So remove
the WMA legacy code since it has no purpose now. Also remove
unused PMO prototypes pmo_update_ra_limit and
pmo_update_target_service.

Cleaunp the WMA code that intersects RA rate limit and APF
variables.

Change-Id: I870a1271a627d47242000f5e04068e628f567216
CRs-Fixed: 2379745
Nachiket Kukade 6 years ago
parent
commit
07d7a82ff7
2 changed files with 8 additions and 22 deletions
  1. 1 22
      pmo/core/inc/wlan_pmo_static_config.h
  2. 7 0
      pmo/core/src/wlan_pmo_main.c

+ 1 - 22
pmo/core/inc/wlan_pmo_static_config.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2019 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
@@ -64,27 +64,6 @@ void pmo_register_wow_default_patterns(struct wlan_objmgr_vdev *vdev);
 void pmo_register_action_frame_patterns(
 		struct wlan_objmgr_vdev *vdev);
 
-/**
- * pmo_update_target_service(): API to update wmi target service info to PMO.
- * @psoc: objmgr psoc
- * @wmi_service: wmi service number
- * @value: true when wmi service is enabled in firmware otherwise false.
- *
- * Return void
- */
-void pmo_update_target_service(struct wlan_objmgr_psoc *psoc,
-	WMI_SERVICE service, bool value);
-
-/**
- * pmo_update_ra_limit() - update ra limit based on apf filter
- *  enabled or not
- * @psoc: objmgr psoc
- * @apf_enabled: true when apf service is enabled else false
- *
- * Return: none
- */
-void pmo_update_ra_limit(struct wlan_objmgr_psoc *psoc, bool apf_enabled);
-
 /**
  * pmo_set_wow_event_bitmap() - Assign bitmask with wow event
  * @event: wow event

+ 7 - 0
pmo/core/src/wlan_pmo_main.c

@@ -24,6 +24,7 @@
 #include "wlan_pmo_obj_mgmt_public_struct.h"
 #include "wlan_pmo_cfg.h"
 #include "cfg_ucfg_api.h"
+#include "wlan_fwol_ucfg_api.h"
 
 static struct wlan_pmo_ctx *gp_pmo_ctx;
 
@@ -152,6 +153,12 @@ static void wlan_pmo_runtime_pm_init_cfg(struct wlan_objmgr_psoc *psoc,
 static void wlan_pmo_ra_filtering_init_cfg(struct wlan_objmgr_psoc *psoc,
 					   struct pmo_psoc_cfg *psoc_cfg)
 {
+	bool ra_enable;
+
+	if (QDF_IS_STATUS_SUCCESS(ucfg_fwol_get_is_rate_limit_enabled(psoc,
+								   &ra_enable)))
+		psoc_cfg->ra_ratelimit_enable = ra_enable;
+
 	psoc_cfg->ra_ratelimit_interval =
 			cfg_get(psoc, CFG_RA_RATE_LIMIT_INTERVAL);
 }