qcacld-3.0: Move sysfs create/destroy to start/stop adapter
Move adapter-specific sysfs files, create/destroy, to start/stop adapter such that unwanted sysfs creations can be avoided for sap only files. Change-Id: Icff8df5f773fda0560400360c37d644274df456e CRs-Fixed: 2683477
This commit is contained in:
@@ -2861,6 +2861,8 @@ int hdd_start_adapter(struct hdd_adapter *adapter)
|
|||||||
wlan_hdd_update_dbs_scan_and_fw_mode_config();
|
wlan_hdd_update_dbs_scan_and_fw_mode_config();
|
||||||
|
|
||||||
exit_with_success:
|
exit_with_success:
|
||||||
|
hdd_create_adapter_sysfs_files(adapter);
|
||||||
|
|
||||||
hdd_exit();
|
hdd_exit();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@@ -5421,8 +5423,6 @@ static void hdd_cleanup_adapter(struct hdd_context *hdd_ctx,
|
|||||||
|
|
||||||
wlan_hdd_debugfs_csr_deinit(adapter);
|
wlan_hdd_debugfs_csr_deinit(adapter);
|
||||||
|
|
||||||
hdd_destroy_adapter_sysfs_files(adapter);
|
|
||||||
|
|
||||||
hdd_debugfs_exit(adapter);
|
hdd_debugfs_exit(adapter);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -6228,8 +6228,6 @@ struct hdd_adapter *hdd_open_adapter(struct hdd_context *hdd_ctx, uint8_t sessio
|
|||||||
|
|
||||||
hdd_periodic_sta_stats_init(adapter);
|
hdd_periodic_sta_stats_init(adapter);
|
||||||
|
|
||||||
hdd_create_adapter_sysfs_files(adapter);
|
|
||||||
|
|
||||||
return adapter;
|
return adapter;
|
||||||
|
|
||||||
err_free_netdev:
|
err_free_netdev:
|
||||||
@@ -6400,6 +6398,8 @@ QDF_STATUS hdd_stop_adapter(struct hdd_context *hdd_ctx,
|
|||||||
|
|
||||||
hdd_enter();
|
hdd_enter();
|
||||||
|
|
||||||
|
hdd_destroy_adapter_sysfs_files(adapter);
|
||||||
|
|
||||||
if (adapter->vdev_id != WLAN_UMAC_VDEV_ID_MAX)
|
if (adapter->vdev_id != WLAN_UMAC_VDEV_ID_MAX)
|
||||||
wlan_hdd_cfg80211_deregister_frames(adapter);
|
wlan_hdd_cfg80211_deregister_frames(adapter);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user