hostap/wlantest
Johannes Berg a1f11e34c4 Use os_memdup()
This leads to cleaner code overall, and also reduces the size
of the hostapd and wpa_supplicant binaries (in hwsim test build
on x86_64) by about 2.5 and 3.5KiB respectively.

The mechanical conversions all over the code were done with
the following spatch:

    @@
    expression SIZE, SRC;
    expression a;
    @@
    -a = os_malloc(SIZE);
    +a = os_memdup(SRC, SIZE);
    <...
    if (!a) {...}
    ...>
    -os_memcpy(a, SRC, SIZE);

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-07 13:19:10 +02:00
..
bip.c
bss.c
ccmp.c
ctrl.c
gcmp.c
inject.c Remove trailing whitespace 2016-12-28 14:31:42 +02:00
Makefile Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
monitor.c
process.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
readpcap.c
rx_data.c Make struct wpa_eapol_key easier to use with variable length MIC 2016-10-10 21:11:46 +03:00
rx_eapol.c Use os_memdup() 2017-03-07 13:19:10 +02:00
rx_ip.c
rx_mgmt.c
rx_tdls.c
sta.c
test_vectors.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
tkip.c Use os_memdup() 2017-03-07 13:19:10 +02:00
wep.c Move CRC-32 routine from wlantest to src/utils 2016-10-09 17:13:23 +03:00
wired.c
wlantest.c
wlantest.h Make struct wpa_eapol_key easier to use with variable length MIC 2016-10-10 21:11:46 +03:00
wlantest_cli.c wlantest: Add a BSS probe_response counter 2013-12-26 13:37:06 +02:00
wlantest_ctrl.h
writepcap.c