aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-09-18 08:35:06 -0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2009-11-06 06:13:22 -0500
commit37eb0edc8488fccbf601ab3e7e582373ed2a631e (patch)
treec02b359415b9341ea956301e101c95f87fa2292a /net/ieee802154
parent1c889f4db6b2f8f8429e62011ba622642faba019 (diff)
wpan-phy: init channel/page fields
Set page to zero (for compatibility w/ devices supporting only first page). Also init channel by default to -1 to disallow transfers for non-initialised devices. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/wpan-class.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ieee802154/wpan-class.c b/net/ieee802154/wpan-class.c
index 0cec13842916..a10ae5be6adb 100644
--- a/net/ieee802154/wpan-class.c
+++ b/net/ieee802154/wpan-class.c
@@ -143,6 +143,9 @@ struct wpan_phy *wpan_phy_alloc(size_t priv_size)
143 143
144 phy->dev.class = &wpan_phy_class; 144 phy->dev.class = &wpan_phy_class;
145 145
146 phy->current_channel = -1; /* not initialised */
147 phy->current_page = 0; /* for compatibility */
148
146 return phy; 149 return phy;
147} 150}
148EXPORT_SYMBOL(wpan_phy_alloc); 151EXPORT_SYMBOL(wpan_phy_alloc);