qcacld-3.0: Remove obsolete wlan_hdd_latency_opt()

Change "qcacld-3.0: Add ARP debug stats" (Change-Id
Idce70799bd3698dc8a8ecd8cfc8ef7d9bf1f5764) removed the only use of
wlan_hdd_latency_opt(), so remove this now obsolete function.

Change-Id: I27a3157072847e313fe8379abd2de4ec76cfef57
CRs-Fixed: 2263616
This commit is contained in:
Jeff Johnson
2018-06-19 10:13:03 -07:00
gecommit door nshrivas
bovenliggende 0a6de649a1
commit 4e998e3f04

Bestand weergeven

@@ -483,40 +483,6 @@ void wlan_hdd_classify_pkt(struct sk_buff *skb)
QDF_NBUF_CB_PACKET_TYPE_ICMPv6;
}
/**
* wlan_hdd_latency_opt()- latency option
* @adapter: pointer to the adapter structure
* @skb: pointer to sk buff
*
* Function to disable power save for icmp packets.
*
* Return: None
*/
#ifdef WLAN_ICMP_DISABLE_PS
static inline void
wlan_hdd_latency_opt(struct hdd_adapter *adapter, struct sk_buff *skb)
{
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
if (hdd_ctx->config->icmp_disable_ps_val <= 0)
return;
if (QDF_NBUF_CB_GET_PACKET_TYPE(skb) ==
QDF_NBUF_CB_PACKET_TYPE_ICMP) {
wlan_hdd_set_powersave(adapter, false,
hdd_ctx->config->icmp_disable_ps_val);
sme_ps_enable_auto_ps_timer(WLAN_HDD_GET_HAL_CTX(adapter),
adapter->session_id,
hdd_ctx->config->icmp_disable_ps_val);
}
}
#else
static inline void
wlan_hdd_latency_opt(struct hdd_adapter *adapter, struct sk_buff *skb)
{
}
#endif
/**
* hdd_get_transmit_sta_id() - function to retrieve station id to be used for
* sending traffic towards a particular destination address. The destination