mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
iwlwifi: adjust to make d3.c compile
struct iwl_mvm_wep_key_cmd ends in a variable sized array but later is included in another struct followed by the actual struct iwl_mvm_wep_key in d3.c. Make the array[0] instead of [] to avoid the warning about it being a GNU-extension. Also include string.h explicitly for memset_after(). Reviewed by: cc Differential Revision: https://reviews.freebsd.org/D43647 (cherry picked from commit e1d31d0685f0b430f385023b7de49f47be6c7de0)
This commit is contained in:
parent
3e0a31384c
commit
0e3bf4d95a
2 changed files with 7 additions and 0 deletions
|
|
@ -477,7 +477,11 @@ struct iwl_mvm_wep_key_cmd {
|
|||
u8 decryption_type;
|
||||
u8 flags;
|
||||
u8 reserved;
|
||||
#if defined(__linux__)
|
||||
struct iwl_mvm_wep_key wep_key[];
|
||||
#elif defined(__FreeBSD__)
|
||||
struct iwl_mvm_wep_key wep_key[0];
|
||||
#endif
|
||||
} __packed; /* SEC_CURR_WEP_KEY_CMD_API_S_VER_2 */
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
#include <linux/etherdevice.h>
|
||||
#include <linux/ip.h>
|
||||
#include <linux/fs.h>
|
||||
#if defined(__FreeBSD__)
|
||||
#include <linux/string.h>
|
||||
#endif
|
||||
#include <net/cfg80211.h>
|
||||
#include <net/ipv6.h>
|
||||
#include <net/tcp.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue