Bladeren bron

qcacld-3.0: Remove sap_dfs_is_channel_in_preferred_location()

Change Ia0fa016b174ef4b50e2cc339e4e476ec65642dbf ("qcacld-3.0:
Use dfs component support") removed the last client of
sap_dfs_is_channel_in_preferred_location().  Since this function
is now obsolete, remove it.

Change-Id: I137a00699511c7f019f6cf3b8f0579aeb52c7778
CRs-Fixed: 2371144
Jeff Johnson 6 jaren geleden
bovenliggende
commit
64a419a8ad
2 gewijzigde bestanden met toevoegingen van 0 en 48 verwijderingen
  1. 0 32
      core/sap/src/sap_fsm.c
  2. 0 16
      core/sap/src/sap_internal.h

+ 0 - 32
core/sap/src/sap_fsm.c

@@ -554,38 +554,6 @@ void sap_dfs_set_current_channel(void *ctx)
 	}
 }
 
-bool sap_dfs_is_channel_in_preferred_location(mac_handle_t mac_handle,
-					      uint8_t channel_id)
-{
-	struct mac_context *mac;
-
-	mac = MAC_CONTEXT(mac_handle);
-	if (NULL == mac) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
-			  FL("invalid mac"));
-		return true;
-	}
-	if ((SAP_CHAN_PREFERRED_INDOOR ==
-	     mac->sap.SapDfsInfo.sap_operating_chan_preferred_location) &&
-	    (true == IS_CHAN_JAPAN_OUTDOOR(channel_id))) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_LOW,
-			  FL
-				  ("CHAN=%d is Outdoor so invalid,preferred Indoor only"),
-			  channel_id);
-		return false;
-	} else if ((SAP_CHAN_PREFERRED_OUTDOOR ==
-		    mac->sap.SapDfsInfo.sap_operating_chan_preferred_location)
-		   && (true == IS_CHAN_JAPAN_INDOOR(channel_id))) {
-		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_LOW,
-			  FL
-				  ("CHAN=%d is Indoor so invalid,preferred Outdoor only"),
-			  channel_id);
-		return false;
-	}
-
-	return true;
-}
-
 #ifdef FEATURE_AP_MCC_CH_AVOIDANCE
 /**
  * sap_check_in_avoid_ch_list() - checks if given channel present is channel

+ 0 - 16
core/sap/src/sap_internal.h

@@ -384,22 +384,6 @@ bool sap_is_conc_sap_doing_scc_dfs(mac_handle_t mac_handle,
 
 uint8_t sap_get_total_number_sap_intf(mac_handle_t mac_handle);
 
-/**
- * sap_dfs_is_channel_in_preferred_location() - Verify a channel is valid
- *	with respect to indoor/outdoor location setting
- * @mac_handle: Opaque handle to the global MAC context
- * @channel_id: Channel number to be verified
- *
- * This function checks if the passed @channel_id is in accordance
- * with preferred Channel location settings.
- *
- * Return:
- * * true - Channel location is same as the preferred location
- * * false - Channel location is not same as the preferred location
- */
-bool sap_dfs_is_channel_in_preferred_location(mac_handle_t mac_handle,
-					      uint8_t channel_id);
-
 /**
  * sap_channel_sel - Function for initiating scan request for ACS
  * @sap_context: Sap Context value.