[Linux-zigbee-devel] [PATCH net] 6lowpan: add missing fragment list spinlock

2014-02-04 Thread Alexander Aring
This patch adds a missing spinlock hold in the timer expire function. The timer expire function will occur after specific timeout for fragmented 6lowpan packets which are still in the fragment list. Signed-off-by: Alexander Aring --- Some little note: Currently I working on patches for net-next

[Linux-zigbee-devel] netif_stop_queue

2014-02-04 Thread Martin Townsend
Hi, I was wondering why the decision to stop the network tx queue is made outside of the driver in the mac802154 device whereas with Ethernet the decision is made at the driver layer? Many Thanks, Martin. -- Managing

[Linux-zigbee-devel] [PATCH] ieee802154: always enter RF2xy receive state correctly

2014-02-04 Thread Phoebe Buckheister
The RF2xy chips can be taken to RX_ON only from a certain set of states. If the chip is running, we can always enter TRX_OFF, though, so first enter TRX_OFF and then RX_ON. This also fixes a bug I've experienced, in which my RF212 radio would only receive packets after a wpan device on the radio w

[Linux-zigbee-devel] [PATCH] ieee802154: ensure that first RF212 state comes from TRX_OFF

2014-02-04 Thread Phoebe Buckheister
This is an alternative to my previous patch for the non-receiving RF212 problem. Apparently not all state changes to RX_ON must come from TRX_OFF, but only the *first* such change. This can either be done in _start with another per-dev variable or in _hw_init by switching to TRX_OFF unconditionally

Re: [Linux-zigbee-devel] [PATCH net] 6lowpan: add missing fragment list spinlock

2014-02-04 Thread David Miller
From: Alexander Aring Date: Tue, 4 Feb 2014 11:57:53 +0100 > @@ -197,7 +197,9 @@ static void lowpan_fragment_timer_expired(unsigned long > entry_addr) > > pr_debug("timer expired for frame with tag %d\n", entry->tag); > > + spin_lock_bh(&flist_lock); > list_del(&entry->list)

Re: [Linux-zigbee-devel] [PATCH net] 6lowpan: add missing fragment list spinlock

2014-02-04 Thread Alexander Aring
Hi David, thanks for your reply. On Tue, Feb 04, 2014 at 08:32:03PM -0800, David Miller wrote: > From: Alexander Aring > Date: Tue, 4 Feb 2014 11:57:53 +0100 > > > @@ -197,7 +197,9 @@ static void lowpan_fragment_timer_expired(unsigned long > > entry_addr) > > > > pr_debug("timer expired