From: Alexander Aring <alex.aring@gmail.com>
To: linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de, Alexander Aring <alex.aring@gmail.com>
Subject: [PATCHv2 wpan-next 00/16] ieee802154: add support for phy capabilities
Date: Wed, 6 May 2015 13:40:12 +0200 [thread overview]
Message-ID: <1430912428-17284-1-git-send-email-alex.aring@gmail.com> (raw)
Hi,
this patch series contains support for phy capabilities. The phy capabilities
can be used to check the setting parameters in nl802154 before we calling the
according rdev-ops to send them into SoftMAC/Driver(HardMAC) layer. This avoids
that we know before sending them to these layers that we know a "-EINVAL" before,
this can be used to check all setting parameters in one setting commands like [0].
Additional we can now dump the capabilities into userspace so users know what the
phy is supported.
The initial values for phy capabilities is that if the driver supports the according
handling then the full range of 802.15.4 is supported like csma parameters or
max frame retries. If the driver doesn't support the setting of these we assume the
802.15.4 standard values which cannot be changed. (If the phy supports that in any
way then the driver is broken and need to support that, we assume that the phy
doing 802.15.4 defaults). This case is for mac parameters. In case of that the driver
supports the according settings like CSMA/frame retries _but_ not the full range of
the 802.15.4 then the driver can overwrite this behaviour by changing the capabilities.
For phy parameters, if the driver doesn't set anything, then there is also no
possibility to change these values from userspace, this is also a lack of support
inside the driver then.
At least this patch series also includes a rework of setting/reporting
tx_powers/cca_ed_levels values.
- Alex
changes since v2:
- fix nl802154_capability_attr to nl802154_wpan_phy_capability_attr
- change dbm handling to mbm handling
- reorder patches "mac802154: check for really change" and
"mac802154: remove check if operation is supported" because inconsitent
when it's applied before "ieee802154: add several phy supported handling"
Alexander Aring (16):
ieee802154: change transmit power to s32
ieee802154: change transmit power to mbm
ieee802154: change cca ed level to mbm
ieee802154: introduce wpan_phy_supported
ieee802154: add several phy supported handling
mac802154: check for really changes
mac802154: remove check if operation is supported
ieee802154: add iftypes capability
ieee802154: add support for get tx powers
ieee802154: add support for get cca ed levels
at86rf230: set cca_modes supported flags
at86rf230: add reset states of tx power level
at86rf230: rework tx power support
at86rf230: rework tx cca energy detection level
ieee802154: check transmit power before driver layer
nl802154: add support for dump phy capabilities
drivers/net/ieee802154/at86rf230.c | 136 +++++++++++++++++++++++--------
drivers/net/ieee802154/cc2520.c | 2 +-
drivers/net/ieee802154/fakelb.c | 30 +++----
drivers/net/ieee802154/mrf24j40.c | 2 +-
include/net/cfg802154.h | 47 ++++++++++-
include/net/mac802154.h | 25 ++++--
include/net/nl802154.h | 79 ++++++++++++++++++
net/ieee802154/nl-mac.c | 8 +-
net/ieee802154/nl-phy.c | 4 +-
net/ieee802154/nl802154.c | 162 ++++++++++++++++++++++++++++++++++---
net/ieee802154/rdev-ops.h | 23 ++++++
net/ieee802154/trace.h | 45 +++++++++++
net/mac802154/cfg.c | 62 +++++++++-----
net/mac802154/driver-ops.h | 32 +++++++-
net/mac802154/mac_cmd.c | 41 ++++++++++
net/mac802154/main.c | 32 ++++++++
16 files changed, 631 insertions(+), 99 deletions(-)
--
2.3.7
next reply other threads:[~2015-05-06 11:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 11:40 Alexander Aring [this message]
2015-05-06 11:40 ` [PATCHv2 wpan-next 01/16] ieee802154: change transmit power to s32 Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 02/16] ieee802154: change transmit power to mbm Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 03/16] ieee802154: change cca ed level " Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 04/16] ieee802154: introduce wpan_phy_supported Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 05/16] ieee802154: add several phy supported handling Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 06/16] mac802154: check for really changes Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 07/16] mac802154: remove check if operation is supported Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 08/16] ieee802154: add iftypes capability Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 09/16] ieee802154: add support for get tx powers Alexander Aring
2015-05-06 12:02 ` Phoebe Buckheister
2015-05-06 13:19 ` Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 10/16] ieee802154: add support for get cca ed levels Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 11/16] at86rf230: set cca_modes supported flags Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 12/16] at86rf230: add reset states of tx power level Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 13/16] at86rf230: rework tx power support Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 14/16] at86rf230: rework tx cca energy detection level Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 15/16] ieee802154: check transmit power before driver layer Alexander Aring
2015-05-06 11:40 ` [PATCHv2 wpan-next 16/16] nl802154: add support for dump phy capabilities Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1430912428-17284-1-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-wpan@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox