tn3399_openwrt/package
Sven Eckelmann 87493dac11 mac80211: initialize sinfo in cfg80211_get_station
Most of the implementations behind cfg80211_get_station will not initialize
sinfo to zero before manipulating it. For example, the member "filled",
which indicates the filled in parts of this struct, is often only modified
by enabling certain bits in the bitfield while keeping the remaining bits
in their original state. A caller without a preinitialized sinfo.filled can
then no longer decide which parts of sinfo were filled in by
cfg80211_get_station (or actually the underlying implementations).

cfg80211_get_station must therefore take care that sinfo is initialized to
zero. Otherwise, the caller may tries to read information which was not
filled in and which must therefore also be considered uninitialized. In
batadv_v_elp_get_throughput's case, an invalid "random" expected throughput
may be stored for this neighbor and thus the B.A.T.M.A.N V algorithm may
switch to non-optimal neighbors for certain destinations.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
2018-07-07 18:33:57 +02:00
..
base-files base-files: add menuconfig option for HOME_URL 2018-06-27 08:40:34 +02:00
boot uboot-kirkwood: fix malformed boot configuration 2018-06-27 08:42:54 +02:00
devel perf: remove linux 4.4 workarounds 2018-07-07 14:53:26 +02:00
firmware firmware: amd64-microcode: update to 20180524 2018-07-07 12:23:00 +02:00
kernel mac80211: initialize sinfo in cfg80211_get_station 2018-07-07 18:33:57 +02:00
libs mbedtls: Activate deterministic ECDSA 2018-07-07 18:33:53 +02:00
network mbedtls: Update to 2.11.0 2018-07-07 18:29:14 +02:00
system ca-certificates: ca-bundle: add symlink for openssl default setting 2018-07-07 18:19:39 +02:00
utils mbedtls: Update to 2.11.0 2018-07-07 18:29:14 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00