ieee802154: remove default channel settings
authorAlexander Aring <alex.aring@gmail.com>
Sun, 2 Nov 2014 03:18:33 +0000 (04:18 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Nov 2014 03:51:06 +0000 (04:51 +0100)
This patch removes the default channel setting. A channel is always set
and there is no default channel setting according 802.15.4.

Drivers should set the default channel and page in probing routine. This
behaviour is currently a lack of all 802.15.4 drivers.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/ieee802154/core.c

index 620abc2ba5fc89e62c794da0f673b85d957cf3c2..dc294a415d05f913f4f236bd735bcfff34f3b5fc 100644 (file)
@@ -100,9 +100,6 @@ struct wpan_phy *wpan_phy_alloc(size_t priv_size)
 
        phy->dev.class = &wpan_phy_class;
 
-       phy->current_channel = -1; /* not initialised */
-       phy->current_page = 0; /* for compatibility */
-
        return phy;
 
 out: