mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
1c889f4db6
commit
37eb0edc84
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ 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;
|
||||
}
|
||||
EXPORT_SYMBOL(wpan_phy_alloc);
|
||||
|
|
Loading…
Reference in a new issue