gregory.greenman@xxxxxxxxx writes: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > Add a unit test for the parsing of a fragmented sta profile > sub-element inside a fragmented multi-link element. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > Signed-off-by: Gregory Greenman <gregory.greenman@xxxxxxxxx> > --- > net/mac80211/Kconfig | 11 ++++ > net/mac80211/Makefile | 2 + > net/mac80211/tests/Makefile | 3 ++ > net/mac80211/tests/elems.c | 101 ++++++++++++++++++++++++++++++++++++ > net/mac80211/tests/module.c | 10 ++++ > net/mac80211/util.c | 3 ++ > 6 files changed, 130 insertions(+) > create mode 100644 net/mac80211/tests/Makefile > create mode 100644 net/mac80211/tests/elems.c > create mode 100644 net/mac80211/tests/module.c > > diff --git a/net/mac80211/Kconfig b/net/mac80211/Kconfig > index 51ec8256b7fa..037ab74f5ade 100644 > --- a/net/mac80211/Kconfig > +++ b/net/mac80211/Kconfig > @@ -57,6 +57,17 @@ endif > comment "Some wireless drivers require a rate control algorithm" > depends on MAC80211 && MAC80211_HAS_RC=n > > +config MAC80211_KUNIT_TEST > + tristate "KUnit tests for mac80211" if !KUNIT_ALL_TESTS > + depends on KUNIT > + depends on MAC80211 > + default KUNIT_ALL_TESTS > + depends on !KERNEL_6_2 > + help > + Enable this option to test mac80211 internals with kunit. > + > + If unsure, say N. Just wanted to say that this is great. Hopefully we will have more tests in the future. But what's KERNEL_6_2? I tried to grep for that in wireless-next but didn't find anything. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches