Ver código fonte

qcacld-3.0: Update pno wiphy params after FW ready event

Currently pno related parameters are getting populated in
wiphy before scan related inis are initialized, and because
of this, wiphy is not getting initialized correctly as ini
scan_support_enabled for pno is not initialized yet.
Wiphy is registered once FW ready event is received,
ideally wiphy parameters which are dependadnt on FW
capabilities or cfg items should be configured once
FW ready event is received.

To resolve this issue, update sched scan related parameter
initialization after FW ready event is received.

Change-Id: Ib0cdb145caa5a0b9911365750fbfd38dc954dee3
CRs-fixed: 2400148
Ashish Kumar Dhanotiya 6 anos atrás
pai
commit
908925de35
2 arquivos alterados com 1 adições e 1 exclusões
  1. 0 1
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 1 0
      core/hdd/src/wlan_hdd_main.c

+ 0 - 1
core/hdd/src/wlan_hdd_cfg80211.c

@@ -12931,7 +12931,6 @@ int wlan_hdd_cfg80211_init(struct device *dev,
 
 	wlan_hdd_cfg80211_set_wiphy_sae_feature(wiphy);
 
-	wlan_config_sched_scan_plans_to_wiphy(wiphy, hdd_ctx->psoc);
 	wlan_scan_cfg80211_add_connected_pno_support(wiphy);
 
 	wiphy->max_scan_ssids = MAX_SCAN_SSID;

+ 1 - 0
core/hdd/src/wlan_hdd_main.c

@@ -2005,6 +2005,7 @@ void hdd_update_tgt_cfg(hdd_handle_t hdd_handle, struct wma_tgt_cfg *cfg)
 
 	hdd_ctx->wmi_max_len = cfg->wmi_max_len;
 
+	wlan_config_sched_scan_plans_to_wiphy(hdd_ctx->wiphy, hdd_ctx->psoc);
 	/*
 	 * This needs to be done after HDD pdev is created and stored since
 	 * it will access the HDD pdev object lock.