diff options
author | Ahmed ElArabawy <arabawy@google.com> | 2019-04-01 10:18:29 -0700 |
---|---|---|
committer | Ahmed ElArabawy <arabawy@google.com> | 2019-04-01 10:18:29 -0700 |
commit | 52ef3da2b0b53690d60d9370c0fe47d8cbf3fd7c (patch) | |
tree | 160446d273549cc5ee04e2ead3e8175ae8685512 | |
parent | d817dabdeb263898703923e8b0b8523505847919 (diff) | |
download | poplar-52ef3da2b0b53690d60d9370c0fe47d8cbf3fd7c.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: Ie607c0a48a4ca4fe5041291118e29edfd3e88343
-rw-r--r-- | wifi/wifi_hal/wifi_offload.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wifi/wifi_hal/wifi_offload.cpp b/wifi/wifi_hal/wifi_offload.cpp index 9ef1912..99c2fec 100644 --- a/wifi/wifi_hal/wifi_offload.cpp +++ b/wifi/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) |