summaryrefslogtreecommitdiffstats
path: root/net/mac802154
diff options
context:
space:
mode:
authorTony Cheneau <tony.cheneau@amnesiak.org>2013-03-25 17:59:24 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-26 12:37:55 -0400
commitcf692061d0d575f1b9b614555ca392d8b8eabab3 (patch)
treed3c94e8e4bfdbcd4515084633199cab61c5d176e /net/mac802154
parentf333a15a3eaf831067f9bfed35f1bb5fe0670b9f (diff)
downloadop-kernel-dev-cf692061d0d575f1b9b614555ca392d8b8eabab3.zip
op-kernel-dev-cf692061d0d575f1b9b614555ca392d8b8eabab3.tar.gz
mac802154: turn on ACK when enabled by the upper layers
Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac802154')
-rw-r--r--net/mac802154/wpan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c
index d20c6d3..7d3f659 100644
--- a/net/mac802154/wpan.c
+++ b/net/mac802154/wpan.c
@@ -145,6 +145,8 @@ static int mac802154_header_create(struct sk_buff *skb,
head[pos++] = mac_cb(skb)->seq; /* DSN/BSN */
fc = mac_cb_type(skb);
+ if (mac_cb_is_ackreq(skb))
+ fc |= IEEE802154_FC_ACK_REQ;
if (!saddr) {
spin_lock_bh(&priv->mib_lock);
OpenPOWER on IntegriCloud