qcacld-3.0: Replace multiple IPv4/v6 address len macros with QDF macro
Replace multiple IPv4/v6 address len macros with QDF macro. Change-Id: Id8ee0e1a4d6057f74ea5b7122a33f5137ea533e4 CRs-Fixed: 2435753
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. 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
|
||||
@@ -50,7 +50,7 @@ struct pmo_arp_req {
|
||||
*/
|
||||
struct pmo_arp_offload_params {
|
||||
uint8_t enable;
|
||||
uint8_t host_ipv4_addr[PMO_IPV4_ADDR_LEN];
|
||||
uint8_t host_ipv4_addr[QDF_IPV4_ADDR_SIZE];
|
||||
struct qdf_mac_addr bssid;
|
||||
bool is_offload_applied;
|
||||
};
|
||||
|
@@ -39,7 +39,6 @@
|
||||
#include "qdf_event.h"
|
||||
#include "wlan_pmo_hw_filter_public_struct.h"
|
||||
|
||||
#define PMO_IPV4_ADDR_LEN 4
|
||||
|
||||
#define PMO_IPV4_ARP_REPLY_OFFLOAD 0
|
||||
#define PMO_IPV6_NEIGHBOR_DISCOVERY_OFFLOAD 1
|
||||
@@ -49,7 +48,6 @@
|
||||
|
||||
#define PMO_MAC_NS_OFFLOAD_SIZE 1
|
||||
#define PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA 16
|
||||
#define PMO_MAC_IPV6_ADDR_LEN 16
|
||||
#define PMO_IPV6_ADDR_VALID 1
|
||||
#define PMO_IPV6_ADDR_UC_TYPE 0
|
||||
#define PMO_IPV6_ADDR_AC_TYPE 1
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2019 The Linux Foundation. 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
|
||||
@@ -62,11 +62,11 @@ enum pmo_ns_addr_scope {
|
||||
struct pmo_ns_offload_params {
|
||||
uint8_t enable;
|
||||
uint32_t num_ns_offload_count;
|
||||
uint8_t src_ipv6_addr[PMO_MAC_IPV6_ADDR_LEN];
|
||||
uint8_t src_ipv6_addr[QDF_IPV6_ADDR_SIZE];
|
||||
uint8_t self_ipv6_addr[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA]
|
||||
[PMO_MAC_IPV6_ADDR_LEN];
|
||||
[QDF_IPV6_ADDR_SIZE];
|
||||
uint8_t target_ipv6_addr[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA]
|
||||
[PMO_MAC_IPV6_ADDR_LEN];
|
||||
[QDF_IPV6_ADDR_SIZE];
|
||||
struct qdf_mac_addr self_macaddr;
|
||||
uint8_t src_ipv6_addr_valid;
|
||||
uint8_t target_ipv6_addr_valid[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
|
||||
@@ -92,7 +92,7 @@ struct pmo_ns_req {
|
||||
enum pmo_offload_trigger trigger;
|
||||
uint32_t count;
|
||||
uint8_t ipv6_addr[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA]
|
||||
[PMO_MAC_IPV6_ADDR_LEN];
|
||||
[QDF_IPV6_ADDR_SIZE];
|
||||
uint8_t ipv6_addr_type[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
|
||||
enum pmo_ns_addr_scope scope[PMO_MAC_NUM_TARGET_IPV6_NS_OFFLOAD_NA];
|
||||
};
|
||||
|
Reference in New Issue
Block a user