History log of /net/mac802154/mib.c
Revision Date Author Comments
4710d806fcb825156e0a7b3a81104915c5e90f5d 02-Jul-2014 Varka Bhadram <varkabhadram@gmail.com> 6lowpan: mac802154: fix coding style issues

This patch fixed the coding style issues reported by checkpatch.pl

following issues fixed:
CHECK: Alignment should match open parenthesis
WARNING: line over 80 characters
CHECK: Blank lines aren't necessary before a close brace '}'
WARNING: networking block comments don't use an empty /* line, use /* Comment...
WARNING: Missing a blank line after declarations
WARNING: networking block comments start with * on subsequent lines
CHECK: braces {} should be used on all arms of this statement

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Tested-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
29e023746a672e4ff702ca9dc63a06145fd8f4b0 16-May-2014 Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> mac802154: add llsec configuration functions

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
6c6a9855560d3cfa93120f2ab07b8ea0110f953d 05-Apr-2014 Jean Sacren <sakiwit@gmail.com> mac802154: fix duplicate #include headers

The commit e6278d92005e ("mac802154: use header operations to
create/parse headers") included the header

net/ieee802154_netdev.h

which had been included by the commit b70ab2e87f17 ("ieee802154:
enforce consistent endianness in the 802.15.4 stack"). Fix this
duplicate #include by deleting the latter one as the required header
has already been in place.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Cc: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Cc: linux-zigbee-devel@lists.sourceforge.net
Signed-off-by: David S. Miller <davem@davemloft.net>
e6278d92005e9d6e374f269b4ce39c908a68ad5d 14-Mar-2014 Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> mac802154: use header operations to create/parse headers

Use the operations on 802.15.4 header structs introduced in a previous
patch to create and parse all headers in the mac802154 stack. This patch
reduces code duplication between different parts of the mac802154 stack
that needed information from headers, and also fixes a few bugs that
seem to have gone unnoticed until now:

* 802.15.4 dgram sockets would return a slightly incorrect value for
the SIOCINQ ioctl
* mac802154 would not drop frames with the "security enabled" bit set,
even though it does not support security, in violation of the
standard

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
b70ab2e87f17176d18f67ef331064441a032b5f3 14-Mar-2014 Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> ieee802154: enforce consistent endianness in the 802.15.4 stack

Enable sparse warnings about endianness, replace the remaining fields
regarding network operations without explicit endianness annotations
with such that are annotated, and propagate this through the entire
stack.

Uses of ieee802154_addr_sa are not changed yet, this patch is only
concerned with all other fields (such as address filters, operation
parameters and the likes).

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2045ceaed4d54e6e698874d008be727ee5b2a01c 13-Feb-2014 stephen hemminger <stephen@networkplumber.org> net: remove unnecessary return's

One of my pet coding style peeves is the practice of
adding extra return; at the end of function.
Kill several instances of this in network code.

I suppose some coccinelle wizardy could do this automatically.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
9f7f78b479ae06279a85451d456040bbe4eae013 05-Apr-2013 Alan Ott <alan@signal11.us> mac802154: Keep track of the channel when changed

Two sections checked whether the current channel != the new channel
without ever setting the current channel variables.

1. net/mac802154/tx.c: Prevent set_channel() from getting called every
time a packet is sent.

2. net/mac802154/mib.c: Lock (pib_lock) accesses to current_channel and
current_page and make sure they are updated when the channel has been
changed.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
0483546a3de329cad7705d42962edb09a28794c6 25-Mar-2013 Tony Cheneau <tony.cheneau@amnesiak.org> mac802154: add mac802154_dev_get_dsn()

Bring-over mac802154_dev_get_dsn() function that was present in the
Linux ZigBee kernel. This function is called by the 6LoWPAN code in
order to properly set the DSN (Data Sequence Number) value in the IEEE
802.15.4 frame.

Signed-off-by: Tony Cheneau <tony.cheneau@amnesiak.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
428840424fc54dd2d3f67d3de8b78bb71a479537 10-Jul-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: sparse warnings: make symbols static

Make symbols static to avoid the following warning shown up
by sparse:

warning: symbol ... was not declared. Should it be static?

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
e885a47a474fe53ed7d952af4b6e9a5cf86d9a07 10-Jul-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: add get short address method

Add method to get the device short 802.15.4 address. This call
needed by ieee802154 layer to satisfy 'iz list' request from
the user space.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
66b69d4d7fe3026a4add368b72905b4d7878c320 26-Jun-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: page and channel setter

A new method to set page and channel values for a transceiver
was added to the MIB.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
48e44d5057144b4e28615e3e1ce725b2ca887b40 26-Jun-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: short address setter

A method to assign the IEEE802.15.4 short address was added to the
MIB implementation.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
dcbe4f93f6d220c22c937f4e305171119b87905e 26-Jun-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: set and get PAN id

Two methods intended to get and set the Private Area Network identifier
were added to the MIB implementation.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
ef2486f5538b886ad4f0d1ac0857b518291b48f7 15-May-2012 alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> mac802154: basic mib support

Basic support for IEEE 802.15.4 management information base.
Current implementation contains a command to set HW address only.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>