Xue Liu <liuxuenetmail@xxxxxxxxx> wrote: > Now I am working on a driver for MCR20A radio chip from NXP. This chip > has a special feature: support two PAN networks. It means it can > operate on two different or the same channels with different PAN IDs, > short addresses and extended addresses. I suppose to add two 802.15.4 > interfaces for this feature. And I have two questions: Neat. Too bad it can't operate on two channels at the same time... BTW: can it do 802.15.4 TSCH mode? > 1. how to add 802.15.4 devices ? Call ieee802154_register_hw() twice > with different struct ieee802154_hw ? > 2. how to deal with tx and rx regarding two interfaces. I think that at you will need to call register_hw() twice and manage two virtual queues, and then service them in your real driver. Perhaps the fakewpan device structure will help you here. My take, however, is that the PANID processing on some devices is really just software, and perhaps we should be treating PANID the same way we treat VLANs: as something often sorted out in the stack, but sometimes coming with hardware acceleration. We also have support for multiple Tx and Rx queues now, so this should also help. That's how I would think of this in the long term. -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | network architect [ ] mcr@xxxxxxxxxxxx http://www.sandelman.ca/ | ruby on rails [
Attachment:
signature.asc
Description: PGP signature