qcacmn: Mark first packet after wow wakeup
Add feature support to tag first packet that wakes up HOST from WoW. rx_pkt_tlv.rx_msdu_end.reserved_1a field is used by TARGET to meet such request. Change-Id: I3d37e13e8cff49bc4f622d3070a19e4c4be56417 CRs-Fixed: 3137621
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
7148dfedf8
کامیت
d40b388d2f
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -1834,6 +1834,27 @@ void hal_compute_reo_remap_ix2_ix3_6750(uint32_t *ring, uint32_t num_rings,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
|
||||
/**
|
||||
* hal_get_first_wow_wakeup_packet_6750(): Function to retrieve
|
||||
* rx_msdu_end_1_reserved_1a
|
||||
*
|
||||
* reserved_1a is used by target to tag the first packet that wakes up host from
|
||||
* WoW
|
||||
*
|
||||
* @buf: Network buffer
|
||||
*
|
||||
* Dummy function for QCA6750
|
||||
*
|
||||
* Returns: 1 to indicate it is first packet received that wakes up host from
|
||||
* WoW. Otherwise 0
|
||||
*/
|
||||
static inline uint8_t hal_get_first_wow_wakeup_packet_6750(uint8_t *buf)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void hal_hw_txrx_ops_attach_qca6750(struct hal_soc *hal_soc)
|
||||
{
|
||||
/* init and setup */
|
||||
@@ -2030,6 +2051,10 @@ static void hal_hw_txrx_ops_attach_qca6750(struct hal_soc *hal_soc)
|
||||
hal_rx_msdu_get_reo_destination_indication_6750;
|
||||
hal_soc->ops->hal_setup_link_idle_list =
|
||||
hal_setup_link_idle_list_generic_li;
|
||||
#ifdef WLAN_FEATURE_MARK_FIRST_WAKEUP_PACKET
|
||||
hal_soc->ops->hal_get_first_wow_wakeup_packet =
|
||||
hal_get_first_wow_wakeup_packet_6750;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6750[] = {
|
||||
|
مرجع در شماره جدید
Block a user