Commit Graph

16960 Commits

Author SHA1 Message Date
Mathy Vanhoef
f0c97b2446 fragattacks: reorder CVEs in SUMMARY 2021-03-13 06:05:51 +04:00
Mathy Vanhoef
070cfd9bad v1.3.2: reference presentation handouts and icmp-size parameter 2021-03-08 05:51:44 +04:00
Mathy Vanhoef
c362116dcd fragattacks: the tool is now called FragAttack 2021-03-01 20:55:14 +04:00
Mathy Vanhoef
3ad0d1a883 fragattacks: updated README for 1.3.1 release 2021-03-01 08:07:38 +04:00
Mathy Vanhoef
f069b9d724 fragattack: fix paper references in README 2021-02-19 11:16:39 +04:00
Mathy Vanhoef
32de654b74 fragattack: detect unexpected scapy version 2021-01-30 06:52:45 +04:00
Mathy Vanhoef
7eb3596f07 fragattack: clarify fragmented ping test sanity check 2021-01-22 05:14:37 +04:00
Mathy Vanhoef
40d19275c8 fragattack: minor fix in README 2021-01-21 10:56:05 +04:00
Mathy Vanhoef
8d62941087 fragattack: README: rerun pysetup.sh when pulling new code 2021-01-21 04:48:57 +04:00
Mathy Vanhoef
6f8d45f37e fragattack: improved scapy fix and driver/hostap version check 2021-01-21 01:49:12 +04:00
Mathy Vanhoef
ac012353e9 fragattack: updated amsduattack reference 2021-01-20 21:30:29 +04:00
Mathy Vanhoef
694aaa0100 fragattack: updated README and SUMMARY 2021-01-20 04:30:41 +04:00
Mathy Vanhoef
2f4a6cb56e fragattack: tweaked troubleshooting steps 2021-01-16 15:48:07 +04:00
Mathy Vanhoef
d7718bc6f6 fragattack: use set_amsdu and is_amsdu functions 2021-01-16 14:39:21 +04:00
Mathy Vanhoef
56a0d40b3b fragattack: tweak to README 2021-01-13 04:23:24 +04:00
Mathy Vanhoef
cab3422a38 fragattack: bugfixes and move to new scapy 2021-01-13 04:18:13 +04:00
Mathy Vanhoef
d3dcc2c449 fragattack: track latest libwifi 2021-01-12 22:49:39 +04:00
Mathy Vanhoef
89a1cd8283 fragattack: scapy fix with Python 3.9 2021-01-12 22:48:32 +04:00
Mathy Vanhoef
95033755ae fragattack: track latest libwifi 2021-01-07 00:27:48 +04:00
Mathy Vanhoef
4fc8340205 fragattack: minor driver check bug 2021-01-05 20:45:34 +04:00
Mathy Vanhoef
0465abe64c fragattack: don't receive EAPOL over nl80211 2020-12-19 05:59:04 +04:00
Mathy Vanhoef
1c7d9224b5 fragattack: mention ath9k_htc 11n fix in README 2020-12-19 04:50:50 +04:00
Mathy Vanhoef
ac5dea5903 fragattack: check hostap and driver for version 1.3 2020-12-19 04:47:04 +04:00
Mathy Vanhoef
c5648ebcd2 fragattacks: updated README for version 1.3 2020-12-19 00:50:26 +04:00
Mathy Vanhoef
f7d7681386 fragattack: support SAE with hash-to-element method 2020-12-19 00:30:29 +04:00
Mathy Vanhoef
f988e85c95 pull in new hostap code 2020-12-18 23:24:52 +04:00
Mathy Vanhoef
35acc6dce2 fragattack: track latest libwifi 2020-12-18 22:47:40 +04:00
Mathy Vanhoef
641c4a5f2d fragattack: add --stay-up argument 2020-12-18 21:18:51 +04:00
Mathy Vanhoef
8ea2321ce3 fragattack: by default use 11n in tests 2020-12-18 21:18:09 +04:00
Mathy Vanhoef
87e5a7e832 fragattack: fix description of optional argument 2020-12-18 21:15:47 +04:00
Mathy Vanhoef
48ca650035 fragattack: clarify tcpdump usage in README 2020-12-18 21:11:46 +04:00
Sunil Dutt
a337c1d7c9 New TWT operations and attributes to TWT Setup and Nudge
Define the following additional TWT operations:
QCA_WLAN_TWT_GET_STATS, QCA_WLAN_TWT_CLEAR_STATS,
QCA_WLAN_TWT_GET_CAPABILITIES, QCA_WLAN_TWT_SETUP_READY_NOTIFY.

Also define new attributes to qca_wlan_vendor_attr_twt_setup
and qca_wlan_vendor_attr_twt_nudge.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-12-16 18:04:15 +02:00
Disha Das
b709bb40fd DPP2: Add DPP_CONTROLLER commands to hostapd_cli and wpa_cli
Add the DPP control interface DPP_CONTROLLER_START and
DPP_CONTROLLER_STOP commands to the CLIs.

Signed-off-by: Disha Das <dishad@codeaurora.org>
2020-12-16 18:04:15 +02:00
Jouni Malinen
6ead8b897f Use bool for is_6ghz variables and functions
Replace the implicit boolean checks that used int variables with use of
a more explicit bool variable type.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-12-11 19:56:14 +02:00
Jouni Malinen
9a411882bd tests: setband with band combination
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-12-11 19:56:14 +02:00
Veerendranath Jakkam
7131fede34 Extend the setband support for 6 GHz and band combinations
Support possible band combinations of 2.4 GHz, 5 GHz, and 6 GHz with
QCA_WLAN_VENDOR_ATTR_SETBAND_MASK attribute. Ensure backwards
compatibility with old drivers that are using
QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE attribute and supporting only 2.4 GHz
and 5 GHz bands.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
2020-12-11 19:56:14 +02:00
Jouni Malinen
e4c815a77a tests: Update scan_fail to match implementation change
The function name for adding frequency lists changed, so this test case
needs a matching change to avoid failures.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2020-12-11 19:56:14 +02:00
Veerendranath Jakkam
2a37cda747 scan: Add a helper function to append supported freqs from a given band
This functionality was repeated for couple of times. Use a shared helper
function to avoid code duplication.

Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
2020-12-11 16:47:43 +02:00
Mathy Vanhoef
0593119c76 fragattack: tweaked README and more usage of bcast-dst param 2020-12-11 04:37:15 +04:00
Mathy Vanhoef
fc1d0aaefd fragattack: new testcase in README 2020-12-10 05:12:51 +04:00
Jouni Malinen
bba926350a Fix gcc-10 build with -Werror=array-bounds and dl_list_for_each()
The earlier workaround for UBSAN issues in commit 3b6b3ae581 ("Modify
dl_list_for_each() to not use unaligned access with WPA_TRACE") ended up
using a construction in which the type cast to the containing structure
was compared instead of the struct dl_list pointers. While that worked
around the UBSAN issue, it resulted in a comparison that gcc-10
interprets as being out of bounds for struct dl_list (which it obviously
is since this is to find the start of the containing structure).

Revert that workaround and instead, mark the struct dl_list used within
struct os_alloc_trace to have matching 16 octet alignment as the
containing structure. This is also restoring consistent design for
dl_list_for_each*().

Signed-off-by: Jouni Malinen <j@w1.fi>
2020-12-04 13:59:37 +02:00
Johannes Berg
d215f42538 tests: HE: Add a test for wifi generation on 2.4 GHz
This was broken in the kernel in mac80211 for a while, until commit
780a8c9efc65 ("mac80211: do not disable HE if HT is missing on 2.4 GHz")
fixed it.

Add a test for wifi generation on 2.4 GHz in addition to the 5 GHz one.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-12-04 12:42:17 +02:00
Juliusz Sosinowicz
0225301fde wolfSSL: Client cert loading API fix
Client cert loading API should check equality to SSL_SUCCESS for
success.

Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
2020-12-04 12:42:17 +02:00
Avraham Stern
297050b460 nl80211: Report invalid signal and noise when info is unavailable
When the driver sends a CQM RSSI threshold event, wpa_supplicant queries
the driver for the signal and noise values. However, it is possible that
by that time the station has already disconnected from the AP, so these
values are no longer valid. In this case, indicate that these values are
invalid by setting them to WPA_INVALID_NOISE.

Previously a value of 0 would be reported, which may be confusing as
this is a valid value.

Since nl80211_get_link_signal() and nl80211_get_link_noise() already set
invalid values for a case of failure, just use the value set by these
functions even if they fail.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Brian Norris <briannorris@chromium.org>
2020-12-04 12:42:15 +02:00
Janusz Dziedzic
3fd22b6ef4 tests: remotehost: Introduce wait_event()
Allow to run local/remote process like:
 - ubus listen
 - logread -f
 - tail -f
 - wpa_cli
 - hostapd_cli
And next wait for specific event(s).

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2020-12-04 12:14:35 +02:00
Janusz Dziedzic
11b3af3dad tests: remotehost: Use correct name
While we start thread use:
 - thread_run
 - therad_stop
 - thread_wait

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
2020-12-04 12:14:09 +02:00
Thomas Pedersen
be96f4e8d2 wlantest: Allow missing RSNE in S1G beacon
S1G beacons save a few bytes by not requiring the RSNE in beacon if RSN
BSS is configured. Handle this in wlantest by only clearing RSNE from
the BSS info if frame is a Probe Response frame.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
2020-12-04 12:01:54 +02:00
Andrei Otcheretianski
eac2b65635 tests: Skip dpp_enterprise_tcp tests without OpenSSL
Skip these tests if OpenSSL wasn't loaded, instead of crashing.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
2020-12-04 11:54:27 +02:00
Jouni Malinen
348447c486 tests: Determine number of parallel make jobs automatically
Use nproc (if available) instead of the hardcoded 8 parallel make jobs.

Signed-off-by: Jouni Malinen <j@w1.fi>
2020-12-04 11:49:04 +02:00
Jouni Malinen
0dcfdd5e47 tests: Skip test cases properly if tshark is not available
Instead of trying to process empty results, mark the test case as
skipped if tshark is not available.

Signed-off-by: Jouni Malinen <j@w1.fi>
2020-12-04 11:43:45 +02:00