Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162176Ab3DEUhA (ORCPT ); Fri, 5 Apr 2013 16:37:00 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41922 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162032Ab3DEUg6 (ORCPT ); Fri, 5 Apr 2013 16:36:58 -0400 X-Sasl-enc: I1zkCD2igPfzucJuJTYIQxLZaRPTdxBoahSlbn+HXA8p 1365194217 From: Alan Ott To: Alexander Smirnov , Dmitry Eremin-Solenikov , "David S. Miller" Cc: linux-zigbee-devel@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Alan Ott Subject: [PATCH] mac802154: Keep track of the channel when changed Date: Fri, 5 Apr 2013 16:36:41 -0400 Message-Id: <1365194201-2635-1-git-send-email-alan@signal11.us> X-Mailer: git-send-email 1.7.11.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 895 Lines: 30 Prevent set_channel() from getting called every time a packet is sent. This looks like it was an oversight. Signed-off-by: Alan Ott --- net/mac802154/tx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index 3fd3e07..6d16473 100644 --- a/net/mac802154/tx.c +++ b/net/mac802154/tx.c @@ -58,6 +58,9 @@ static void mac802154_xmit_worker(struct work_struct *work) pr_debug("set_channel failed\n"); goto out; } + + xw->priv->phy->current_channel = xw->chan; + xw->priv->phy->current_page = xw->page; } res = xw->priv->ops->xmit(&xw->priv->hw, xw->skb); -- 1.7.11.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/