diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-09-22 13:26:48 +0200 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2009-11-06 12:23:41 +0100 |
commit | a0b4a738e0e03f5e0d6ca366560f9a48e5adf83a (patch) | |
tree | 8063be3ae88a2bef6377cdf913b2432d9805c48b /drivers/ieee802154/fakehard.c | |
parent | wpan-phy: use snprintf to limit the amount of chars written (diff) | |
download | linux-a0b4a738e0e03f5e0d6ca366560f9a48e5adf83a.tar.xz linux-a0b4a738e0e03f5e0d6ca366560f9a48e5adf83a.zip |
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.c | 2 |
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) dev->addr_len); memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len); - phy->channels_supported = (1 << 27) - 1; + phy->channels_supported[0] = (1 << 27) - 1; phy->transmit_power = 0xbf; dev->netdev_ops = &fake_ops; |