From 0df2a2fdbe8bc58ddf644a677762d0770f42438c Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 28 Mar 2017 08:10:18 +0200 Subject: [PATCH] net/ieee802154: Simplify data FS settings function signature There is no need of interface anymore. After previous changes, it appears that net_if parameter is not used so we can remove it. Change-Id: Id3570f50865696818a9be2280172e2e25fc537f7 Signed-off-by: Tomasz Bursztyka --- subsys/net/ip/l2/ieee802154/ieee802154_frame.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/subsys/net/ip/l2/ieee802154/ieee802154_frame.c b/subsys/net/ip/l2/ieee802154/ieee802154_frame.c index 4c71593c3ff..3b37c72663a 100644 --- a/subsys/net/ip/l2/ieee802154/ieee802154_frame.c +++ b/subsys/net/ip/l2/ieee802154/ieee802154_frame.c @@ -517,8 +517,7 @@ static inline struct ieee802154_fcf_seq *generate_fcf_grounds(uint8_t **p_buf, } static inline enum ieee802154_addressing_mode -get_dst_addr_mode(struct net_if *iface, struct net_linkaddr *dst, - bool *broadcast) +get_dst_addr_mode(struct net_linkaddr *dst, bool *broadcast) { if (!dst->addr) { NET_DBG("Broadcast destination"); @@ -542,14 +541,13 @@ get_dst_addr_mode(struct net_if *iface, struct net_linkaddr *dst, } static inline -bool data_addr_to_fs_settings(struct net_if *iface, - struct net_linkaddr *dst, +bool data_addr_to_fs_settings(struct net_linkaddr *dst, struct ieee802154_fcf_seq *fs, struct ieee802154_frame_params *params) { bool broadcast; - fs->fc.dst_addr_mode = get_dst_addr_mode(iface, dst, &broadcast); + fs->fc.dst_addr_mode = get_dst_addr_mode(dst, &broadcast); if (fs->fc.dst_addr_mode != IEEE802154_ADDR_MODE_NONE) { fs->fc.pan_id_comp = 1; @@ -673,7 +671,7 @@ bool ieee802154_create_data_frame(struct net_if *iface, params.dst.pan_id = ctx->pan_id; params.pan_id = ctx->pan_id; - broadcast = data_addr_to_fs_settings(iface, dst, fs, ¶ms); + broadcast = data_addr_to_fs_settings(dst, fs, ¶ms); p_buf = generate_addressing_fields(iface, fs, ¶ms, p_buf);