#include <net/mac80211.h>
#include "../mvm.h"
#include <kunit/test.h>
MODULE_IMPORT_NS(…);
static struct wiphy wiphy = …;
static struct ieee80211_hw hw = …;
static struct ieee80211_channel chan_5ghz = …;
static struct ieee80211_channel chan_6ghz = …;
static struct ieee80211_channel chan_2ghz = …;
static struct cfg80211_chan_def chandef_a = …;
static struct cfg80211_chan_def chandef_b = …;
static struct iwl_mvm_phy_ctxt ctx = …;
static struct iwl_mvm_vif_link_info mvm_link = …;
static struct cfg80211_bss bss = …;
static struct ieee80211_bss_conf link_conf = …;
static const struct iwl_fw_cmd_version entry = …;
static struct iwl_fw fw = …;
static struct iwl_mvm mvm = …;
static const struct link_grading_case { … } link_grading_cases[] = …;
KUNIT_ARRAY_PARAM_DESC(…) …
static void setup_link_conf(struct kunit *test)
{ … }
static void test_link_grading(struct kunit *test)
{ … }
static struct kunit_case link_grading_test_cases[] = …;
static struct kunit_suite link_grading = …;
kunit_test_suite(…) …;
static const struct valid_link_pair_case { … } valid_link_pair_cases[] = …;
KUNIT_ARRAY_PARAM_DESC(…) …
static void test_valid_link_pair(struct kunit *test)
{ … }
static struct kunit_case valid_link_pair_test_cases[] = …;
static struct kunit_suite valid_link_pair = …;
kunit_test_suite(…) …;