From: Tony Cheneau Date: Mon, 25 Mar 2013 17:59:24 +0000 (+0000) Subject: mac802154: turn on ACK when enabled by the upper layers X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=cf692061d0d575f1b9b614555ca392d8b8eabab3;p=~shefty%2Frdma-dev.git mac802154: turn on ACK when enabled by the upper layers Signed-off-by: Tony Cheneau Signed-off-by: David S. Miller --- diff --git a/net/mac802154/wpan.c b/net/mac802154/wpan.c index d20c6d3c247..7d3f6594ed4 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);