Procházet zdrojové kódy

qcacld-3.0: Remove SSR protect (transitions)

As part of DSC integration cleanup, remove SSR protection from
transitions where osif_sync trans start/stop protection is also in
place.

Change-Id: I0b4a9404697d130c8a1bfeb7d2c0d2977d825f5c
CRs-Fixed: 2411001
Dustin Brown před 6 roky
rodič
revize
ffaf8cce87

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

@@ -13960,10 +13960,8 @@ static int _wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __wlan_hdd_cfg80211_change_iface(wiphy, net_dev, type,
 						 flags, params);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 

+ 0 - 8
core/hdd/src/wlan_hdd_hostapd.c

@@ -465,9 +465,7 @@ static int hdd_hostapd_open(struct net_device *net_dev)
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_hostapd_open(net_dev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 
@@ -538,9 +536,7 @@ int hdd_hostapd_stop(struct net_device *net_dev)
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_hostapd_stop(net_dev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 
@@ -1090,9 +1086,7 @@ void wlan_hdd_sap_pre_cac_failure(void *data)
 	osif_vdev_sync_unregister(adapter->dev);
 	osif_vdev_sync_wait_for_ops(vdev_sync);
 
-	cds_ssr_protect(__func__);
 	__wlan_hdd_sap_pre_cac_failure(data);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 	osif_vdev_sync_destroy(vdev_sync);
@@ -1161,9 +1155,7 @@ static void wlan_hdd_sap_pre_cac_success(void *data)
 	osif_vdev_sync_unregister(adapter->dev);
 	osif_vdev_sync_wait_for_ops(vdev_sync);
 
-	cds_ssr_protect(__func__);
 	__wlan_hdd_sap_pre_cac_success(adapter);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 	osif_vdev_sync_destroy(vdev_sync);

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

@@ -2175,9 +2175,7 @@ static int hdd_mon_open(struct net_device *net_dev)
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_mon_open(net_dev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 
@@ -3161,9 +3159,7 @@ static int hdd_open(struct net_device *net_dev)
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_open(net_dev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 
@@ -3279,9 +3275,7 @@ static int hdd_stop(struct net_device *net_dev)
 	if (errno)
 		return errno;
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_stop(net_dev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 
@@ -13675,9 +13669,7 @@ static int hdd_driver_mode_change(enum QDF_GLOBAL_MODE mode)
 		goto trans_stop;
 	}
 
-	cds_ssr_protect(__func__);
 	errno = __hdd_driver_mode_change(hdd_ctx, mode);
-	cds_ssr_unprotect(__func__);
 
 trans_stop:
 	osif_driver_sync_trans_stop(driver_sync);

+ 0 - 4
core/hdd/src/wlan_hdd_p2p.c

@@ -773,10 +773,8 @@ _wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
 	if (errno)
 		return ERR_PTR(errno);
 
-	cds_ssr_protect(__func__);
 	wdev = __wlan_hdd_add_virtual_intf(wiphy, name, name_assign_type,
 					   type, flags, params);
-	cds_ssr_unprotect(__func__);
 
 	if (IS_ERR_OR_NULL(wdev))
 		goto destroy_sync;
@@ -890,9 +888,7 @@ int wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
 	osif_vdev_sync_unregister(wdev->netdev);
 	osif_vdev_sync_wait_for_ops(vdev_sync);
 
-	cds_ssr_protect(__func__);
 	errno = __wlan_hdd_del_virtual_intf(wiphy, wdev);
-	cds_ssr_unprotect(__func__);
 
 	osif_vdev_sync_trans_stop(vdev_sync);
 	osif_vdev_sync_destroy(vdev_sync);