mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacld-3.0: Cleanup sta connection info at close adapter
Currently driver cleanup sta connection info at stop adapter because of which if query for sta connection info comes after adapter restart, in that case driver is not able to return this info. For example according to new design of Android-S, framework issues stop adapter after every disconnetion to update mac address dynamically, after that it starts adapter again, now if driver gets request for connection info, it is not able to provide the connection info as it is already cleaned up on stop adapter. To address above issue, cleanup sta connection info at close adapter instead of stop adapter. Change-Id: I54247d4577dd7f8cf1c7d7bc657005a09d69d0df CRs-Fixed: 3000842
This commit is contained in:
parent
0a30ae736f
commit
48a636bc07
1 changed files with 2 additions and 1 deletions
|
|
@ -6994,6 +6994,8 @@ static void __hdd_close_adapter(struct hdd_context *hdd_ctx,
|
|||
struct hdd_adapter *adapter,
|
||||
bool rtnl_held)
|
||||
{
|
||||
if (adapter->device_mode == QDF_STA_MODE)
|
||||
hdd_cleanup_conn_info(adapter);
|
||||
qdf_list_destroy(&adapter->blocked_scan_request_q);
|
||||
qdf_mutex_destroy(&adapter->blocked_scan_request_q_lock);
|
||||
policy_mgr_clear_concurrency_mode(hdd_ctx->psoc, adapter->device_mode);
|
||||
|
|
@ -7339,7 +7341,6 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx,
|
|||
ucfg_ipa_flush_pending_vdev_events(hdd_ctx->pdev,
|
||||
adapter->vdev_id);
|
||||
}
|
||||
hdd_cleanup_conn_info(adapter);
|
||||
hdd_vdev_destroy(adapter);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue