aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee802154/fakehard.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-09-22 07:26:48 -0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-06 06:23:41 -0500
commita0b4a738e0e03f5e0d6ca366560f9a48e5adf83a (patch)
tree8063be3ae88a2bef6377cdf913b2432d9805c48b /drivers/ieee802154/fakehard.c
parent375bb0e04b618d0c425b0ea492d16cf71eb94905 (diff)
wpan-phy: allow specifying a per-page channel mask
IEEE 802.15.4-2006 defines channel pages that hold channels (max 32 pages, 27 channels per page). Allow the driver to specify supported channels on pages, other than the first one. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'drivers/ieee802154/fakehard.c')
-rw-r--r--drivers/ieee802154/fakehard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ieee802154/fakehard.c b/drivers/ieee802154/fakehard.c
index 96a2959ce877..f6f2afefaa17 100644
--- a/drivers/ieee802154/fakehard.c
+++ b/drivers/ieee802154/fakehard.c
@@ -356,7 +356,7 @@ 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 = (1 << 27) - 1; 359 phy->channels_supported[0] = (1 << 27) - 1;
360 phy->transmit_power = 0xbf; 360 phy->transmit_power = 0xbf;
361 361
362 dev->netdev_ops = &fake_ops; 362 dev->netdev_ops = &fake_ops;