Browse Source

qcacld-3.0: Cleanup stale TDLS functions

Remove stale TDLS functions.

Change-Id: Ibf345baf36f5faeba44eca292895c7bb35015ec0
CRs-Fixed: 1105485
Nitesh Shah 8 years ago
parent
commit
f8ed55e27f
3 changed files with 0 additions and 43 deletions
  1. 0 5
      core/hdd/inc/wlan_hdd_tdls.h
  2. 0 6
      core/hdd/inc/wlan_hdd_wext.h
  3. 0 32
      core/hdd/src/wlan_hdd_tdls.c

+ 0 - 5
core/hdd/inc/wlan_hdd_tdls.h

@@ -511,13 +511,8 @@ int wlan_hdd_tdls_init(hdd_adapter_t *pAdapter);
 
 void wlan_hdd_tdls_exit(hdd_adapter_t *pAdapter);
 
-void wlan_hdd_tdls_extract_da(struct sk_buff *skb, uint8_t *mac);
-
 void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, uint8_t *mac);
 
-int wlan_hdd_tdls_increment_pkt_count(hdd_adapter_t *pAdapter,
-				      const uint8_t *mac, uint8_t tx);
-
 int wlan_hdd_tdls_set_sta_id(hdd_adapter_t *pAdapter, const uint8_t *mac,
 			     uint8_t staId);
 

+ 0 - 6
core/hdd/inc/wlan_hdd_wext.h

@@ -374,12 +374,6 @@ int hdd_set_tx_stbc(hdd_adapter_t *adapter, int value);
 int hdd_get_rx_stbc(hdd_adapter_t *adapter, int *value);
 int hdd_set_rx_stbc(hdd_adapter_t *adapter, int value);
 
-#ifdef FEATURE_WLAN_TDLS
-QDF_STATUS iw_set_tdls_params(struct net_device *dev,
-			      struct iw_request_info *info,
-			      union iwreq_data *wrqu, char *extra, int nOffset);
-#endif
-
 void wlan_hdd_change_country_code_callback(void *pAdapter);
 
 int hdd_set_band(struct net_device *dev, u8 ui_band);

+ 0 - 32
core/hdd/src/wlan_hdd_tdls.c

@@ -1436,38 +1436,6 @@ void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, uint8_t *mac)
 	memcpy(mac, skb->data + 6, 6);
 }
 
-/**
- * wlan_hdd_tdls_increment_pkt_count() - update statistics counter on tdls peer
- * @pAdapter: HDD adapter
- * @mac: MAC address of the TDLS peer
- * @tx: If 1, increment tx packet counter, if 0, increment rx packet counter
- *
- * Return: 0 for success or negative errno otherwise
- */
-int wlan_hdd_tdls_increment_pkt_count(hdd_adapter_t *pAdapter,
-				      const uint8_t *mac, uint8_t tx)
-{
-	hddTdlsPeer_t *curr_peer;
-	hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
-
-	if (eTDLS_SUPPORT_ENABLED != pHddCtx->tdls_mode &&
-	    eTDLS_SUPPORT_EXTERNAL_CONTROL != pHddCtx->tdls_mode)
-		return -EINVAL;
-
-	curr_peer = wlan_hdd_tdls_get_peer(pAdapter, mac, true);
-	if (curr_peer == NULL) {
-		hdd_err("curr_peer is NULL");
-		return -EINVAL;
-	}
-
-	if (tx)
-		curr_peer->tx_pkt++;
-	else
-		curr_peer->rx_pkt++;
-
-	return 0;
-}
-
 /**
  * wlan_hdd_tdls_check_config() - validate tdls configuration parameters
  * @config: tdls configuration parameter structure