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 <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2017-03-28 08:10:18 +02:00
parent e027645c88
commit 0df2a2fdbe
1 changed files with 4 additions and 6 deletions

View File

@ -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, &params);
broadcast = data_addr_to_fs_settings(dst, fs, &params);
p_buf = generate_addressing_fields(iface, fs, &params, p_buf);