mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: enable hsoffload feature
Enable HS offload feature against latest kernel and ipa release. Compile against latest ipa header is required. Change-Id: I704bdfde098de6e33fb6b30455a75cb6a6cddb21 CRs-fixed: 1019762
This commit is contained in:
parent
44e334fb7e
commit
07b28f6878
1 changed files with 12 additions and 3 deletions
|
|
@ -510,8 +510,7 @@ uint32_t wlan_hdd_stub_addr_to_priv(void *ptr)
|
|||
} while (0)
|
||||
#define HDD_BW_GET_DIFF(_x, _y) (unsigned long)((ULONG_MAX - (_y)) + (_x) + 1)
|
||||
|
||||
/* Temporary macro to make a build without IPA V2 */
|
||||
#ifdef IPA_V2
|
||||
#if defined (QCA_WIFI_3_0) && defined (CONFIG_IPA3)
|
||||
#define HDD_IPA_WDI2_SET(pipe_in, ipa_ctxt) \
|
||||
do { \
|
||||
pipe_in.u.ul.rdy_ring_rp_va = \
|
||||
|
|
@ -528,7 +527,7 @@ do { \
|
|||
#else
|
||||
/* Do nothing */
|
||||
#define HDD_IPA_WDI2_SET(pipe_in, ipa_ctxt)
|
||||
#endif /* IPA_V2 */
|
||||
#endif /* IPA3 */
|
||||
|
||||
static struct hdd_ipa_adapter_2_client {
|
||||
enum ipa_client_type cons_client;
|
||||
|
|
@ -1977,10 +1976,20 @@ struct sk_buff *hdd_ipa_tx_packet_ipa(hdd_context_t *hdd_ctx,
|
|||
{
|
||||
struct ipa_header *ipa_header;
|
||||
struct frag_header *frag_header;
|
||||
struct hdd_ipa_priv *hdd_ipa = hdd_ctx->hdd_ipa;
|
||||
|
||||
if (!hdd_ipa_uc_is_enabled(hdd_ctx))
|
||||
return skb;
|
||||
|
||||
if (!hdd_ipa)
|
||||
return skb;
|
||||
|
||||
if (HDD_IPA_UC_NUM_WDI_PIPE != hdd_ipa->activated_fw_pipe)
|
||||
return skb;
|
||||
|
||||
if (skb_headroom(skb) < sizeof(struct ipa_header))
|
||||
return skb;
|
||||
|
||||
ipa_header = (struct ipa_header *) skb_push(skb,
|
||||
sizeof(struct ipa_header));
|
||||
if (!ipa_header) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue