From 9edea95be2d3d23bc961b5cd8ecc4ed785ab798b Mon Sep 17 00:00:00 2001 From: Nitesh Shah Date: Tue, 27 Dec 2016 12:55:24 +0530 Subject: qcacld-3.0: Cleanup stale TDLS functions Remove stale TDLS functions. Change-Id: Ibf345baf36f5faeba44eca292895c7bb35015ec0 CRs-Fixed: 1105485 --- core/hdd/inc/wlan_hdd_tdls.h | 5 ----- core/hdd/inc/wlan_hdd_wext.h | 6 ------ core/hdd/src/wlan_hdd_tdls.c | 32 -------------------------------- 3 files changed, 43 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_tdls.h b/core/hdd/inc/wlan_hdd_tdls.h index 96b766ad5812..c3ff8318a1e7 100644 --- a/core/hdd/inc/wlan_hdd_tdls.h +++ b/core/hdd/inc/wlan_hdd_tdls.h @@ -509,13 +509,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); diff --git a/core/hdd/inc/wlan_hdd_wext.h b/core/hdd/inc/wlan_hdd_wext.h index aab5fdc60adb..6a06d042bfbf 100644 --- a/core/hdd/inc/wlan_hdd_wext.h +++ b/core/hdd/inc/wlan_hdd_wext.h @@ -376,12 +376,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); diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index 32a432da571a..69dace4c2e94 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -1433,38 +1433,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 -- cgit v1.2.3