Lines Matching +full:0 +full:- +full:127
1 // SPDX-License-Identifier: GPL-2.0-only
39 .expect = 0,
47 .expect = 0,
57 .expect = 0,
65 .expect = 0,
73 .expect = 0,
99 .expect = 0,
127 const struct subchan_test_case *params = test->param_value; in subchan_offset()
130 KUNIT_ASSERT_EQ(test, cfg80211_chandef_valid(¶ms->c), true); in subchan_offset()
132 offset = ieee80211_calc_chandef_subchan_offset(¶ms->c, params->n); in subchan_offset()
134 KUNIT_EXPECT_EQ(test, params->expect, offset); in subchan_offset()
156 .psd.power = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
161 .out.power = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
164 .desc = "no changes, 320 MHz, 160 MHz used, n=0",
176 .psd.n = 0,
181 .out.n = 0,
198 .psd.power = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
203 .out.power = { 0, 1, 2, 3, 4, 5, 6, 7, 127, 127, 127, 127, 127, 127, 127, 127},
224 .psd.power = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
229 .out.power = { 12, 13, 14, 15, 0, 1, 2, 3, 127, 127, 127, 127, 127, 127, 127, 127},
250 .psd.power = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
255 .out.power = { 0, 1, 2, 3, 12, 13, 14, 15, 127, 127, 127, 127, 127, 127, 127, 127},
263 const struct psd_reorder_test_case *params = test->param_value; in psd_reorder()
264 struct ieee80211_parsed_tpe_psd tmp = params->psd; in psd_reorder()
266 KUNIT_ASSERT_EQ(test, cfg80211_chandef_valid(¶ms->ap), true); in psd_reorder()
267 KUNIT_ASSERT_EQ(test, cfg80211_chandef_valid(¶ms->used), true); in psd_reorder()
269 ieee80211_rearrange_tpe_psd(&tmp, ¶ms->ap, ¶ms->used); in psd_reorder()
270 KUNIT_EXPECT_MEMEQ(test, &tmp, ¶ms->out, sizeof(tmp)); in psd_reorder()
280 .name = "mac80211-tpe",