From 184c8ab3b6750d0281fcb5fcea0f6404c74a8149 Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Thu, 4 Jun 2020 13:55:30 -0700 Subject: [PATCH] qcacld-3.0: Change NLA policy table for policy OFFLOADED_PACKETS The current policy table for OFFLOADED_PACKETS is incorrect and does not match the uptream versions. Hence, rearrange the table contents with the proper parameters to fix this. Change-Id: I1e6b0ebc3ef4f622833778e0545d50783d524551 CRs-Fixed: 2701205 --- core/hdd/src/wlan_hdd_cfg80211.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 42abedb238..7930338df4 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -9744,19 +9744,19 @@ static int hdd_unmap_req_id_to_pattern_id(struct hdd_context *hdd_ctx, const struct nla_policy offloaded_packet_policy[ QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX + 1] = { - [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID] = {.type = NLA_U32}, [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL] = { .type = NLA_U32}, + [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID] = {.type = NLA_U32}, + [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA] = { + .type = NLA_BINARY}, [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR] = { .type = NLA_BINARY, .len = QDF_MAC_ADDR_SIZE }, - [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR] = { - .type = NLA_BINARY, - .len = QDF_MAC_ADDR_SIZE }, [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR] = { + .type = NLA_BINARY, + .len = QDF_MAC_ADDR_SIZE }, + [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD] = { .type = NLA_U32}, - [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA] = { - .type = NLA_BINARY}, [QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE] = { .type = NLA_U16}, };