diff options
Diffstat (limited to 'include/net/wpan-phy.h')
-rw-r--r-- | include/net/wpan-phy.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/net/wpan-phy.h b/include/net/wpan-phy.h index ff27f1b078d1..b52bda8d13b1 100644 --- a/include/net/wpan-phy.h +++ b/include/net/wpan-phy.h | |||
@@ -25,6 +25,14 @@ | |||
25 | #include <linux/mutex.h> | 25 | #include <linux/mutex.h> |
26 | #include <linux/bug.h> | 26 | #include <linux/bug.h> |
27 | 27 | ||
28 | /* According to the IEEE 802.15.4 stadard the upper most significant bits of | ||
29 | * the 32-bit channel bitmaps shall be used as an integer value to specify 32 | ||
30 | * possible channel pages. The lower 27 bits of the channel bit map shall be | ||
31 | * used as a bit mask to specify channel numbers within a channel page. | ||
32 | */ | ||
33 | #define WPAN_NUM_CHANNELS 27 | ||
34 | #define WPAN_NUM_PAGES 32 | ||
35 | |||
28 | struct wpan_phy { | 36 | struct wpan_phy { |
29 | struct mutex pib_lock; | 37 | struct mutex pib_lock; |
30 | 38 | ||
@@ -43,7 +51,7 @@ struct wpan_phy { | |||
43 | int idx; | 51 | int idx; |
44 | 52 | ||
45 | struct net_device *(*add_iface)(struct wpan_phy *phy, | 53 | struct net_device *(*add_iface)(struct wpan_phy *phy, |
46 | const char *name); | 54 | const char *name, int type); |
47 | void (*del_iface)(struct wpan_phy *phy, struct net_device *dev); | 55 | void (*del_iface)(struct wpan_phy *phy, struct net_device *dev); |
48 | 56 | ||
49 | char priv[0] __attribute__((__aligned__(NETDEV_ALIGN))); | 57 | char priv[0] __attribute__((__aligned__(NETDEV_ALIGN))); |