Skip to content

Commit f25da51

Browse files
Alexander AringStefan-Schmidt
Alexander Aring
authored andcommitted
ieee802154: hwsim: add replacement for fakelb
This patch adds a new virtual driver mac802154_hwsim which is based on the fakelb driver. The fakelb driver will get deprecated and hopefully removed someday. The main reason for doing this step is to rename the driver to mac802154_hwsim to have a similar naming scheme as mac80211_hwsim, which is more popular in the 802.11 wireless word and the idea is the same behind this driver. The new features of this driver are to have knowledge about connected edges, which can be changed during runtime. This offers a testing environment for routing protocols e.g. RPL. The default behaviour is still as fakelb: two radios connected to each other. New added radios during runtime will not be connected to other wpan_hwsim instances. The netlink api is not namespace aware on purpose, only the registered wpan_phy's can be moved to namespaces. The physical layer according to wiresless "air" communication can be handled across namespaces. Furthermore the edges can be weighted with the LQI value according IEEE 802.15.4 which offers additional handling to mark bad or good connection indicators to other connected virtual phys. Signed-off-by: Alexander Aring <[email protected]> Signed-off-by: Stefan Schmidt <[email protected]>
1 parent 4e54acb commit f25da51

File tree

4 files changed

+1004
-0
lines changed

4 files changed

+1004
-0
lines changed

drivers/net/ieee802154/Kconfig

+11
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,14 @@ config IEEE802154_MCR20A
115115

116116
This driver can also be built as a module. To do so, say M here.
117117
the module will be called 'mcr20a'.
118+
119+
config IEEE802154_HWSIM
120+
depends on IEEE802154_DRIVERS && MAC802154
121+
tristate "Simulated radio testing tool for mac802154"
122+
---help---
123+
This driver is a developer testing tool that can be used to test
124+
IEEE 802.15.4 networking stack (mac802154) functionality. This is not
125+
needed for normal wpan usage and is only for testing.
126+
127+
This driver can also be built as a module. To do so say M here.
128+
The module will be called 'mac802154_hwsim'.

drivers/net/ieee802154/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ obj-$(CONFIG_IEEE802154_ATUSB) += atusb.o
77
obj-$(CONFIG_IEEE802154_ADF7242) += adf7242.o
88
obj-$(CONFIG_IEEE802154_CA8210) += ca8210.o
99
obj-$(CONFIG_IEEE802154_MCR20A) += mcr20a.o
10+
obj-$(CONFIG_IEEE802154_HWSIM) += mac802154_hwsim.o

0 commit comments

Comments
 (0)