| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2003 Herbert Valerio Riedel <hvr@gnu.org> |
|---|
| 3 | 4 | * Copyright (C) 2004 Luis R. Rodriguez <mcgrof@ruslug.rutgers.edu> |
|---|
| 4 | 5 | * Copyright (C) 2004 Aurelien Alleaume <slts@free.fr> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 11 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | | - * GNU General Public License for more details. |
|---|
| 14 | | - * |
|---|
| 15 | | - * You should have received a copy of the GNU General Public License |
|---|
| 16 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | | - * |
|---|
| 18 | 6 | */ |
|---|
| 19 | 7 | |
|---|
| 20 | 8 | #if !defined(_ISL_OID_H) |
|---|
| .. | .. |
|---|
| 49 | 37 | u16 state; |
|---|
| 50 | 38 | u16 code; |
|---|
| 51 | 39 | u16 size; |
|---|
| 52 | | - u8 data[0]; |
|---|
| 40 | + u8 data[]; |
|---|
| 53 | 41 | } __packed; |
|---|
| 54 | 42 | |
|---|
| 55 | 43 | struct obj_buffer { |
|---|
| .. | .. |
|---|
| 80 | 68 | |
|---|
| 81 | 69 | struct obj_bsslist { |
|---|
| 82 | 70 | u32 nr; |
|---|
| 83 | | - struct obj_bss bsslist[0]; |
|---|
| 71 | + struct obj_bss bsslist[]; |
|---|
| 84 | 72 | } __packed; |
|---|
| 85 | 73 | |
|---|
| 86 | 74 | struct obj_frequencies { |
|---|
| 87 | 75 | u16 nr; |
|---|
| 88 | | - u16 mhz[0]; |
|---|
| 76 | + u16 mhz[]; |
|---|
| 89 | 77 | } __packed; |
|---|
| 90 | 78 | |
|---|
| 91 | 79 | struct obj_attachment { |
|---|
| .. | .. |
|---|
| 93 | 81 | char reserved; |
|---|
| 94 | 82 | short id; |
|---|
| 95 | 83 | short size; |
|---|
| 96 | | - char data[0]; |
|---|
| 84 | + char data[]; |
|---|
| 97 | 85 | } __packed; |
|---|
| 98 | 86 | |
|---|
| 99 | 87 | /* |
|---|
| .. | .. |
|---|
| 155 | 143 | * together with a CSMA contention. Without this all frames are |
|---|
| 156 | 144 | * sent with a CSMA contention. |
|---|
| 157 | 145 | * Bibliography: |
|---|
| 158 | | - * http://www.hpl.hp.com/personal/Jean_Tourrilhes/Papers/Packet.Frame.Grouping.html |
|---|
| 146 | + * https://www.hpl.hp.com/personal/Jean_Tourrilhes/Papers/Packet.Frame.Grouping.html |
|---|
| 159 | 147 | */ |
|---|
| 160 | 148 | enum dot11_maxframeburst_t { |
|---|
| 161 | 149 | /* Values for DOT11_OID_MAXFRAMEBURST */ |
|---|