]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
fakehard: claim all 2.4 Ghz channels as supported
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Tue, 22 Sep 2009 11:31:25 +0000 (15:31 +0400)
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 6 Nov 2009 11:32:12 +0000 (14:32 +0300)
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>
drivers/ieee802154/fakehard.c

index ccf83eb1e20a9d9557e9273983eeee5e51880a69..70a9f9c72fa7e2bfc8d3502c1d223dcb318dae70 100644 (file)
@@ -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;