From 8de8fcb2cfc97e4b4ae342a5f3d22a68ed90e907 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 12 Jun 2019 13:59:38 +0530 Subject: [PATCH] qcacld-3.0: Update the bad bssid reset time in MS Update the bad bssid reset time in Ms, and compare with the connection age to remove the BSSID with which the nud fail has not happened till the mentioned bad bssid reset time. Change-Id: I6ba58d5e8a110b4c83d5c83e3cec6c832a24094b CRs-Fixed: 2469969 --- components/blacklist_mgr/core/src/wlan_blm_core.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/blacklist_mgr/core/src/wlan_blm_core.c b/components/blacklist_mgr/core/src/wlan_blm_core.c index b2070ce51fe8..f4e91e25fe11 100644 --- a/components/blacklist_mgr/core/src/wlan_blm_core.c +++ b/components/blacklist_mgr/core/src/wlan_blm_core.c @@ -26,8 +26,8 @@ #include #include "wlan_blm_tgt_api.h" -#define SECONDS_TO_MS(params) (params * 60) -#define MINUTES_TO_MS(params) (SECONDS_TO_MS(params) * 1000) +#define SECONDS_TO_MS(params) (params * 1000) +#define MINUTES_TO_MS(params) (SECONDS_TO_MS(params) * 60) static void blm_update_ap_info(struct blm_reject_ap *blm_entry, struct blm_config *cfg, @@ -988,8 +988,8 @@ blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev, if (!qdf_mem_cmp(blm_entry->bssid.bytes, bssid.bytes, QDF_MAC_ADDR_SIZE)) { - blm_debug("%pM present in BLM reject list, updating connect info", - blm_entry->bssid.bytes); + blm_debug("%pM present in BLM reject list, updating connect info con_state = %d", + blm_entry->bssid.bytes, con_state); entry_found = true; break; } @@ -1022,7 +1022,8 @@ blm_update_bssid_connect_params(struct wlan_objmgr_pdev *pdev, connection_age = qdf_mc_timer_get_system_time() - max_entry_time; if ((connection_age > - blm_psoc_obj->blm_cfg.bad_bssid_counter_reset_time) || + SECONDS_TO_MS(blm_psoc_obj->blm_cfg. + bad_bssid_counter_reset_time)) || !blm_entry->reject_ap_type) { blm_debug("Bad Bssid timer expired/AP cleared from all blacklisting, removed %pM from list", blm_entry->bssid.bytes);