diff options
| -rw-r--r-- | core/hdd/inc/wlan_hdd_tdls.h | 5 | ||||
| -rw-r--r-- | core/hdd/inc/wlan_hdd_wext.h | 6 | ||||
| -rw-r--r-- | core/hdd/src/wlan_hdd_tdls.c | 32 |
3 files changed, 0 insertions, 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 @@ -1434,38 +1434,6 @@ void wlan_hdd_tdls_extract_sa(struct sk_buff *skb, uint8_t *mac) } /** - * 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 * |
