linux/drivers/staging/wlan-ng
Kees Cook 6277fbfdd2 staging: wlan-ng: Remove pointless a3/a4 union
There is no need for the a3/a4 union. The two structs are identical
except for the addition of a4. Excepting one place, the structs are
only ever used in the union, and the union is always allocated at full
size. The one instance of the a3-specific struct can be replaced with
the full version, as no sizing information is used. Replace the union
with the a4 version of the struct. "diffoscope" reports there are no
object code differences after this change.

Cc: Allen Pais <apais@linux.microsoft.com>
Cc: Romain Perier <romain.perier@gmail.com>
Cc: Chen Lin <chen.lin5@zte.com.cn>
Cc: Ivan Safonov <insafonov@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-staging@lists.linux.dev
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210819174537.3499227-2-keescook@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-08-26 10:41:16 +02:00
..
cfg80211.c staging: wlan-ng: cfg80211: Move large struct onto the heap 2021-05-10 11:19:23 +02:00
hfa384x_usb.c staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
hfa384x.h staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
Kconfig staging/wlan-ng: add CRC32 dependency in Kconfig 2019-12-10 10:56:54 +01:00
Makefile
p80211conv.c staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211conv.h staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211hdr.h staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211ioctl.h staging: wlan-ng: silence incorrect type in argument 1 (different address spaces) 2021-05-10 11:19:33 +02:00
p80211metadef.h staging: wlan-ng: remove "autogenerated code" comments 2018-09-28 14:43:52 +02:00
p80211metastruct.h staging: wlan-ng: remove "autogenerated code" comments 2018-09-28 14:43:52 +02:00
p80211mgmt.h staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211msg.h
p80211netdev.c staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211netdev.h staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
p80211req.c staging: wlan-ng: make switch case block format consistent 2018-09-28 14:43:52 +02:00
p80211req.h
p80211types.h staging: Replace zero-length array with flexible-array member 2020-02-23 19:18:54 +01:00
p80211wep.c staging: wlan-ng: p80211wep.c: use lib/crc32 2019-10-07 12:32:43 +02:00
prism2fw.c staging/wlan-ng: Remove all strcpy() uses in favor of strscpy() 2021-07-27 15:11:10 +02:00
prism2mgmt.c staging/wlan-ng: Fix line alignment 2020-11-06 10:57:46 +01:00
prism2mgmt.h
prism2mib.c staging: wlan-ng: Disable buggy MIB ioctl 2021-08-18 12:45:28 +02:00
prism2sta.c staging: wlan-ng: Remove pointless a3/a4 union 2021-08-26 10:41:16 +02:00
prism2usb.c staging: wlan-ng: fix out of bounds read in prism2sta_probe_usb() 2020-08-18 16:12:54 +02:00
README

TODO:
	- checkpatch.pl cleanups
	- sparse warnings
	- move to use the in-kernel wireless stack

Please send any patches or complaints about this driver to Greg
Kroah-Hartman <greg@kroah.com> and don't bother the upstream wireless
kernel developers about it, they want nothing to do with it.