Browse Source

qcacld-3.0: Clear reassoc_scenario flag when ASSOCIATION_COMPLETION

Currently, sta_ctx->hdd_reassoc_scenario is set when ROAM_FT_START
and cleared when ROAM_SET_KEY_COMPLETE. But for some roaming case,
no KEY exchange happen after roaming complete. Then this flag
is not cleared, which cause failure to get station stats in
wlan_hdd_get_sta_stats, such as RSSI info. To address this, clear
sta_ctx->hdd_reassoc_scenario when handling
ROAM_ASSOCIATION_COMPLETION.

Change-Id: I0b96246afe227023fd52df93f27bed23ffd7cb1c
CRs-Fixed: 2763178
Lihua Liu 4 years ago
parent
commit
9dab73797c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/hdd/src/wlan_hdd_assoc.c

+ 6 - 0
core/hdd/src/wlan_hdd_assoc.c

@@ -4496,6 +4496,12 @@ hdd_sme_roam_callback(void *context, struct csr_roam_info *roam_info,
 		} else {
 			wlan_hdd_ft_set_key_delay(hdd_ctx->mac_handle, adapter);
 		}
+		if (sta_ctx->ft_carrier_on) {
+			sta_ctx->hdd_reassoc_scenario = false;
+			hdd_debug("hdd_reassoc_scenario set to: %d session: %d",
+				  sta_ctx->hdd_reassoc_scenario,
+				  adapter->vdev_id);
+		}
 		qdf_ret_status =
 			hdd_association_completion_handler(adapter, roam_info,
 							   roam_id, roam_status,