Hi, On Sat, May 09, 2015 at 05:12:20PM +0200, Maxime Hadjinlian wrote: > Hi Alex, > > I am currently trying to play with an MRF24J40 with the latests > kernel, and I can't figure out how could I obtain the lqi and rssi > value for each datagram received. > > I can see in the driver that they are indeed received from the SPI > link and I can follow along up to 'ieee802154_rx_irqsafe' (in > net/mac802154/rx.c) where the lqi is added to the skb buffer but I > don't seem to get them in my userspace application when I use > recvfrom. > > Did I miss something or is this a missing feature/bug ? > this is a missing feature and the lqi values of the ieee802154_rx_irqsafe function is currently garabage. The idea to implement such use case is like in wireless a: "iw dev wlan# station dump" in our tool "iwpan dev wpan node dump" which reports all received neighbor nodes by extended/short address and their lqi, rssi value. This is a opentask entry at [0]. The list of neighbors is stored so far I know as rhashtable in kernel (that's how wireless it does and we should use the same just with 802.15.4 functionality). - Alex [0] http://wpan.cakelab.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html