summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed ElArabawy <arabawy@google.com>2019-04-01 10:25:36 -0700
committerAhmed ElArabawy <arabawy@google.com>2019-04-01 10:25:36 -0700
commita94e4f8cc16abd77c53c7df936273142e16f04f0 (patch)
tree0b0386dead4448e323a15a099dfe843961ed133d
parent5fdcd8dddecdad64e14f81b773c1d160ed627e8b (diff)
downloadwlan-a94e4f8cc16abd77c53c7df936273142e16f04f0.tar.gz
Wifi: Add ether type to sending offloaded packet
In current implementation, the ether type used for offloaded packets is always hardcoded to IPv4 in lower layers. This commit adds support to specify ether type of offloaded packets from user space. This reflects in the prototype of the hal function with no current implementation change. Bug: 122487582 Test: Manual Change-Id: I49ffebabd75f3a9ec7e225bb6992aa5eca4edc67
-rw-r--r--bcmdhd/wifi_hal/wifi_offload.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bcmdhd/wifi_hal/wifi_offload.cpp b/bcmdhd/wifi_hal/wifi_offload.cpp
index 9ef1912..99c2fec 100644
--- a/bcmdhd/wifi_hal/wifi_offload.cpp
+++ b/bcmdhd/wifi_hal/wifi_offload.cpp
@@ -216,7 +216,8 @@ public:
/* API to send specified mkeep_alive packet periodically. */
wifi_error wifi_start_sending_offloaded_packet(wifi_request_id index, wifi_interface_handle iface,
- u8 *ip_packet, u16 ip_packet_len, u8 *src_mac_addr, u8 *dst_mac_addr, u32 period_msec)
+ u16 /* ether_type */, u8 *ip_packet, u16 ip_packet_len, u8 *src_mac_addr, u8 *dst_mac_addr,
+ u32 period_msec)
{
if ((index > 0 && index <= N_AVAIL_ID) && (ip_packet != NULL) && (src_mac_addr != NULL)
&& (dst_mac_addr != NULL) && (period_msec > 0)