rdev-ops.h (9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e) rdev-ops.h (05db59a0619969a47ab87050985344177c662cab)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __CFG802154_RDEV_OPS
3#define __CFG802154_RDEV_OPS
4
5#include <net/cfg802154.h>
6
7#include "core.h"
8#include "trace.h"

--- 251 unchanged lines hidden (view full) ---

260 return -EOPNOTSUPP;
261
262 trace_802154_rdev_stop_beacons(&rdev->wpan_phy, wpan_dev);
263 ret = rdev->ops->stop_beacons(&rdev->wpan_phy, wpan_dev);
264 trace_802154_rdev_return_int(&rdev->wpan_phy, ret);
265 return ret;
266}
267
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __CFG802154_RDEV_OPS
3#define __CFG802154_RDEV_OPS
4
5#include <net/cfg802154.h>
6
7#include "core.h"
8#include "trace.h"

--- 251 unchanged lines hidden (view full) ---

260 return -EOPNOTSUPP;
261
262 trace_802154_rdev_stop_beacons(&rdev->wpan_phy, wpan_dev);
263 ret = rdev->ops->stop_beacons(&rdev->wpan_phy, wpan_dev);
264 trace_802154_rdev_return_int(&rdev->wpan_phy, ret);
265 return ret;
266}
267
268static inline int rdev_associate(struct cfg802154_registered_device *rdev,
269 struct wpan_dev *wpan_dev,
270 struct ieee802154_addr *coord)
271{
272 int ret;
273
274 if (!rdev->ops->associate)
275 return -EOPNOTSUPP;
276
277 trace_802154_rdev_associate(&rdev->wpan_phy, wpan_dev, coord);
278 ret = rdev->ops->associate(&rdev->wpan_phy, wpan_dev, coord);
279 trace_802154_rdev_return_int(&rdev->wpan_phy, ret);
280 return ret;
281}
282
268#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
269/* TODO this is already a nl802154, so move into ieee802154 */
270static inline void
271rdev_get_llsec_table(struct cfg802154_registered_device *rdev,
272 struct wpan_dev *wpan_dev,
273 struct ieee802154_llsec_table **table)
274{
275 rdev->ops->get_llsec_table(&rdev->wpan_phy, wpan_dev, table);

--- 102 unchanged lines hidden ---
283#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
284/* TODO this is already a nl802154, so move into ieee802154 */
285static inline void
286rdev_get_llsec_table(struct cfg802154_registered_device *rdev,
287 struct wpan_dev *wpan_dev,
288 struct ieee802154_llsec_table **table)
289{
290 rdev->ops->get_llsec_table(&rdev->wpan_phy, wpan_dev, table);

--- 102 unchanged lines hidden ---