Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ieee802154: remove default channel settings

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>

authored by

Alexander Aring and committed by
Marcel Holtmann
ff4e6558 fe23bcd9

-3
-3
net/ieee802154/core.c
··· 100 100 101 101 phy->dev.class = &wpan_phy_class; 102 102 103 - phy->current_channel = -1; /* not initialised */ 104 - phy->current_page = 0; /* for compatibility */ 105 - 106 103 return phy; 107 104 108 105 out: