qcacld-3.0: Add support for size 1 flexible length arrays

Convert size 1 variable length arrays to flexible
length arrays.

Change-Id: I348d479c94a27f4cecc02c8fc9fa98cfb9572baa
CRs-Fixed: 3690224
This commit is contained in:
Aditya Kodukula
2023-12-14 01:41:23 -08:00
committed by Ravindra Konda
parent a445b05367
commit 949885e505
7 changed files with 18 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022-2024 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
@@ -599,7 +599,7 @@ struct tdls_rx_mgmt_frame {
uint32_t vdev_id;
uint32_t frm_type;
uint32_t rx_rssi;
uint8_t buf[1];
QDF_FLEX_ARRAY(uint8_t, buf);
};
/**
@@ -1407,7 +1407,7 @@ struct tdls_send_mgmt_request {
struct qdf_mac_addr peer_mac;
enum wifi_traffic_ac ac;
/* Variable length. Dont add any field after this. */
uint8_t add_ie[1];
QDF_FLEX_ARRAY(uint8_t, add_ie);
};
/**