mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
c83b2077c8
commit
478e87c233
1 changed files with 9 additions and 1 deletions
|
@ -356,7 +356,15 @@ 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[0] = (1 << 27) - 1;
|
||||
/*
|
||||
* For now we'd like to emulate 2.4 GHz-only device,
|
||||
* both O-QPSK and CSS
|
||||
*/
|
||||
/* 2.4 GHz O-QPSK 802.15.4-2003 */
|
||||
phy->channels_supported[0] |= 0x7FFF800;
|
||||
/* 2.4 GHz CSS 802.15.4a-2007 */
|
||||
phy->channels_supported[3] |= 0x3fff;
|
||||
|
||||
phy->transmit_power = 0xbf;
|
||||
|
||||
dev->netdev_ops = &fake_ops;
|
||||
|
|
Loading…
Reference in a new issue