[channelmask] add radio supported and preferred channel mask (#3732)

Add new radio platform APIs:
 * otPlatRadioGetSupportedChannelMask(); // supported channel mask: the device is allowed to be on;
 * otPlatRadioGetPreferredChannelMask(); // preferred channel mask: the device prefers to form on.

Implement some default radio platform APIs.

Add spinel property `SPINEL_PROP_PHY_CHAN_PREFERRED` to retrieve Preferred ChannelMask.
This commit is contained in:
Shu Chen
2019-04-08 10:35:18 -07:00
committed by Jonathan Hui
parent 174d076722
commit 4c06b47c34
22 changed files with 174 additions and 37 deletions
+1
View File
@@ -163,6 +163,7 @@ LOCAL_SRC_FILES := \
src/core/net/ip6_routes.cpp \
src/core/net/netif.cpp \
src/core/net/udp6.cpp \
src/core/phy/radio_weak.cpp \
src/core/thread/address_resolver.cpp \
src/core/thread/announce_begin_server.cpp \
src/core/thread/announce_sender.cpp \