| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * This file is part of wl1251 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 1998-2007 Texas Instruments Incorporated |
|---|
| 5 | 6 | * Copyright (C) 2008 Nokia Corporation |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License |
|---|
| 9 | | - * version 2 as published by the Free Software Foundation. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 14 | | - * General Public License for more details. |
|---|
| 15 | | - * |
|---|
| 16 | | - * You should have received a copy of the GNU General Public License |
|---|
| 17 | | - * along with this program; if not, write to the Free Software |
|---|
| 18 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
|---|
| 19 | | - * 02110-1301 USA |
|---|
| 20 | | - * |
|---|
| 21 | 7 | */ |
|---|
| 22 | 8 | |
|---|
| 23 | 9 | #ifndef __WL1251_CMD_H__ |
|---|
| .. | .. |
|---|
| 104 | 90 | u16 id; |
|---|
| 105 | 91 | u16 status; |
|---|
| 106 | 92 | /* payload */ |
|---|
| 107 | | - u8 data[0]; |
|---|
| 93 | + u8 data[]; |
|---|
| 108 | 94 | } __packed; |
|---|
| 109 | 95 | |
|---|
| 110 | 96 | struct wl1251_command { |
|---|
| .. | .. |
|---|
| 295 | 281 | struct wl1251_cmd_header header; |
|---|
| 296 | 282 | |
|---|
| 297 | 283 | __le16 size; |
|---|
| 298 | | - u8 data[0]; |
|---|
| 284 | + u8 data[]; |
|---|
| 299 | 285 | } __packed; |
|---|
| 300 | 286 | |
|---|
| 301 | 287 | #define TIM_ELE_ID 5 |
|---|