diff options
author | Alexander Aring <alex.aring@gmail.com> | 2014-11-12 19:51:56 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-11-13 04:51:58 +0100 |
commit | 61f2dcba9a03d4fd9342f0d6821af0a46c7098e9 (patch) | |
tree | 0244a0a47ebe5e22ae41ecff1d7f897c253fef6e /include/net/cfg802154.h | |
parent | a930430b047a0cc118bfc47ca54fcdfbadf091d2 (diff) | |
download | op-kernel-dev-61f2dcba9a03d4fd9342f0d6821af0a46c7098e9.zip op-kernel-dev-61f2dcba9a03d4fd9342f0d6821af0a46c7098e9.tar.gz |
mac802154: add interframe spacing time handling
This patch adds a new interframe spacing time handling into mac802154
layer. Interframe spacing time is a time period between each transmit.
This patch adds a high resolution timer into mac802154 and starts on
xmit complete with corresponding interframe spacing expire time if
ifs_handling is true. We make it variable because it depends if
interframe spacing time is handled by transceiver or mac802154. At the
timer complete function we wake the netdev queue again. This avoids
new frame transmit in range of interframe spacing time.
For synced driver we add no handling of interframe spacing time. This
is currently a lack of support in all synced xmit drivers. I suppose
it's working because the latency of workqueue which is needed to call
spi_sync.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/cfg802154.h')
-rw-r--r-- | include/net/cfg802154.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h index fa0a9e5..17b4fc0 100644 --- a/include/net/cfg802154.h +++ b/include/net/cfg802154.h @@ -81,6 +81,14 @@ struct wpan_phy { s32 cca_ed_level; + /* PHY depended MAC PIB values */ + + /* 802.15.4 acronym: Tdsym in usec */ + u8 symbol_duration; + /* lifs and sifs periods timing */ + u16 lifs_period; + u16 sifs_period; + struct device dev; char priv[0] __aligned(NETDEV_ALIGN); |