Lines Matching +full:memcpy +full:- +full:channels
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <kunit/test-bug.h>
27 priv->ctx = ctx; in t_wiphy_init()
28 priv->ops = ops; in t_wiphy_init()
30 /* Initialize channels, feel free to add more here channels/bands */ in t_wiphy_init()
31 memcpy(priv->channels_2ghz, channels_2ghz, sizeof(channels_2ghz)); in t_wiphy_init()
32 wiphy->bands[NL80211_BAND_2GHZ] = &priv->band_2ghz; in t_wiphy_init()
33 priv->band_2ghz.channels = priv->channels_2ghz; in t_wiphy_init()
34 priv->band_2ghz.n_channels = ARRAY_SIZE(channels_2ghz); in t_wiphy_init()
36 resource->data = wiphy; in t_wiphy_init()
37 resource->name = "wiphy"; in t_wiphy_init()
47 priv = wiphy_priv(resource->data); in t_wiphy_exit()
48 ops = priv->ops; in t_wiphy_exit()
54 wiphy_free(resource->data); in t_wiphy_exit()