From: Alexander Aring <alex.aring@gmail.com>
To: linux-wpan@vger.kernel.org
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [PATCH wpan-tools 0/3] mac: info: interface: add basic support
Date: Fri, 26 Sep 2014 10:06:06 +0200 [thread overview]
Message-ID: <1411718769-1986-1-git-send-email-alex.aring@gmail.com> (raw)
Hi,
this patch series add support for setting lbt mode and dump phy parameters and
mac interface parameters.
Each interface "could" have different mac parameters, because the mac sublayer
means mac algorithmn which are done by phy. These parameters need to be the same
on each interface. There are couple of mac sublayer parameters like ARET, CSMA,
promiscuous mode, etc... These parameters will be changed if an interface will
comming up, otherwise it's there but not running. Solution to run this device
with different parameter is first down all others interfaces and then up the interface
with the different parameters. (Difficult to explain maybe it's clear when you play a
little bit with that).
PHY settings will directly set registers to the driver. There is no mac functionality.
Only physical changes in radio frequency handling.
dump example for phy pib:
root@DistroKit:~ iwpan phy
wpan_phy phy0
supported channels:
page 0: 11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
current_page: 0
current_channel: 26
cca_mode: 1
tx_power: 3
dump example for mac pib:
phy#0
Interface mon0
ifindex 5
wpan_dev 0x2
extended_addr 0x0000000000000000
short_addr 0xffff
pan_id 0xffff
type monitor
max_frame_retries 3
max_be 5
max_csma_backoffs 4
min_be 3
lbt 0
Interface wpan0
ifindex 2
wpan_dev 0x1
extended_addr 0xaaaaaaaaaaaaaaaa
short_addr 0xffff
pan_id 0xabcd
type node
max_frame_retries 3
max_be 5
max_csma_backoffs 4
min_be 3
lbt 0
I know there are a lot of other pib values. I don't forget these but it need
time to support it. I am still getting a state in the rework like mainline state.
Also it looks a little bit ugly but we can still change it for the wpan-tools. :-)
- Alex
Alexander Aring (3):
mac: add support for setting lbt mode
info: add support to dump phy pib
interface: add dump for iface mac parameters
src/Makefile.am | 1 +
src/info.c | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
src/interface.c | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++
src/iwpan.h | 3 ++
src/mac.c | 27 ++++++++++++++
src/nl802154.h | 13 +++++++
src/nl_extras.h | 5 +++
7 files changed, 258 insertions(+)
create mode 100644 src/info.c
--
2.1.0
next reply other threads:[~2014-09-26 8:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 8:06 Alexander Aring [this message]
2014-09-26 8:06 ` [PATCH wpan-tools 1/3] mac: add support for setting lbt mode Alexander Aring
2014-09-26 8:06 ` [PATCH wpan-tools 2/3] info: add support to dump phy pib Alexander Aring
2014-09-26 8:06 ` [PATCH wpan-tools 3/3] interface: add dump for iface mac parameters Alexander Aring
2014-09-26 8:07 ` [PATCH wpan-tools 0/3] mac: info: interface: add basic support 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=1411718769-1986-1-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).