aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee802154
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-09-22 07:31:25 -0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-06 06:32:12 -0500
commit478e87c23340e88e909aa749f4772838bc96a20b (patch)
treedbd9b28f160cb0062b8cc96e8d06401370c624b6 /drivers/ieee802154
parentc83b2077c8bfec097ab02a0eca60bd611fdc7944 (diff)
fakehard: claim all 2.4 Ghz channels as supported
Make fakehard device claim all 2.4 Ghz channels from 802.15.4-2006, 802.15.4a-2007 as supported by the hw. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'drivers/ieee802154')
-rw-r--r--drivers/ieee802154/fakehard.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/ieee802154/fakehard.c b/drivers/ieee802154/fakehard.c
index ccf83eb1e20a..70a9f9c72fa7 100644
--- a/drivers/ieee802154/fakehard.c
+++ b/drivers/ieee802154/fakehard.c
@@ -356,7 +356,15 @@ static int __devinit ieee802154fake_probe(struct platform_device *pdev)
356 dev->addr_len); 356 dev->addr_len);
357 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); 357 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
358 358
359 phy->channels_supported[0] = (1 << 27) - 1; 359 /*
360 * For now we'd like to emulate 2.4 GHz-only device,
361 * both O-QPSK and CSS
362 */
363 /* 2.4 GHz O-QPSK 802.15.4-2003 */
364 phy->channels_supported[0] |= 0x7FFF800;
365 /* 2.4 GHz CSS 802.15.4a-2007 */
366 phy->channels_supported[3] |= 0x3fff;
367
360 phy->transmit_power = 0xbf; 368 phy->transmit_power = 0xbf;
361 369
362 dev->netdev_ops = &fake_ops; 370 dev->netdev_ops = &fake_ops;