From a9f27fea2a48250098012d797d6f83500c35a67b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 2 Oct 2020 11:42:45 +0300 Subject: sys/linux: add 802.11 frame descriptions This commit enables accurate generation of 802.11 frames for injection. The descriptions only include frames/fields/elements that are supported by mac80211. Also, this commit includes fixes to tests that were affected by modification of the existing descriptions. The validity of the frames was verified by capturing the generated packets and examining them in Wirehark. --- sys/linux/test/80211_ibss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/linux/test/80211_ibss') diff --git a/sys/linux/test/80211_ibss b/sys/linux/test/80211_ibss index 0bea2f5f8..cc52a509f 100644 --- a/sys/linux/test/80211_ibss +++ b/sys/linux/test/80211_ibss @@ -1,9 +1,9 @@ # requires: -sandbox=namespace -# Join IBSSS network +# Join IBSSS network. syz_80211_join_ibss(&AUTO='wlan0\x00', &AUTO=@default_ibss_ssid, 0x6, 0x0) -# Inject an arbitrary packet +# Inject an arbitrary packet. -syz_80211_inject_frame(&AUTO=@device_a, &AUTO="00112233445566778899", 0xa) \ No newline at end of file +syz_80211_inject_frame(&AUTO=@device_a, &AUTO=@mgmt_frame=@beacon={@wo_ht={{AUTO, AUTO, AUTO, AUTO, AUTO, 0, 0, 0, 0, AUTO, 0}, {0, 0}, @device_b, @device_a, @from_mac=@device_a, {0,0}}, 0x0, @default, 0x1, @val={AUTO, AUTO, @default_ap_ssid}, @val={AUTO, AUTO, [{0x2,0x1}, {0x4,0x1}, {0xb,0x1}, {0x16,0x1}, {0x0c,0x0}, {0x12,0x0}, {0x18,0x0}, {0x24, 0x0}]}, @void, @void, @void, @void, @void, @void, @void, @void, @void, @void, @void, []}, AUTO) -- cgit mrf-deployment