05 Dec, 2014
3 commits
-
Signed-off-by: Varka Bhadram
Reviewed-by: Stefan Schmidt
Acked-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
Coding style cleanup.
Signed-off-by: Stefan Schmidt
Acked-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
Signed-off-by: Stefan Schmidt
Acked-by: Alexander Aring
Signed-off-by: Marcel Holtmann
26 Nov, 2014
1 commit
-
Removes unnecessary if statement check for net device. Error check performed
after alloc_netdev().ndev = alloc_netdev(sizeof(*sdata) + local->hw.vif_data_size, name,
NET_NAME_UNKNOWN, ieee802154_if_setup);
if (!ndev)
return ERR_PTR(-ENOMEM);
..Signed-off-by: Varka Bhadram
Acked-by: Alexander Aring
Signed-off-by: Marcel Holtmann
17 Nov, 2014
10 commits
-
This patch changes the byteorder handling for short and panid handling.
We now except to get little endian in nl802154 for these attributes.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds support for deleting a wpan interface via nl802154.
Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds support for setting an extended address while
registration a new interface. If ieee802154_is_valid_extended_addr
getting as parameter and invalid extended address then the perm address
is fallback. This is useful to make some default handling while for
example default registration of a wpan interface while phy registration.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds a new nl802154 command for adding a new interface
according to a wpan phy via nl802154.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This parameter was grabbed from wireless implementation with the
identically wireless dev struct. We don't need this right now and so we
remove it. Maybe we will add it later again if we found any real reason
to have such parameter.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch replace the depracted IEEE802154_DEV to the new introduced
NL802154_IFTYPE_NODE types. There is a backwards compatibility to have
the identical types for both enum definitions. Also remove some inlcude
issue with "linux/nl802154.h", because the export nl_policy inside this
header it was always necessary to have an include of "net/rtnetlink.h"
before. The reason for this is more complicated. Nevertheless we removed
this now, because "linux/nl802154.h" is the depracted netlink interface.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
We don't and we can't name it zigbee anymore. This patch removes
deprecated information for project website.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patches removes the const keyword in variables which are non
pointers. There is no sense to declare call by value parameters as
const.Signed-off-by: Alexander Aring
Reported-by: Marc Kleine-Budde
Signed-off-by: Marcel Holtmann -
This patches removes the const keyword in variables which are non
pointers. There is no sense to declare call by value parameters as const.Signed-off-by: Alexander Aring
Reported-by: Marc Kleine-Budde
Signed-off-by: Marcel Holtmann -
This patch removes some prototypes which are not used anymore.
Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann
13 Nov, 2014
1 commit
-
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
Signed-off-by: Marcel Holtmann
12 Nov, 2014
13 commits
-
This patch adds support for setting listen before transmit mode via
nl802154 framework.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch add support for setting mac frame retries setting via
nl802154 framework.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch add support for max csma backoffs setting via nl802154
framework.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds support for setting backoff exponents via nl802154
framework.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds support for setting short address via nl802154 framework.
Also added a comment because a 0xffff seems to be valid address that we
don't have a short address. This is a valid setting but we need
more checks in upper layers to don't allow this address as source address.
Also the current netlink interface doesn't allow to set the short_addr
to 0xffff. Same for the 0xfffe short address which describes a not
allocated short address.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds support for setting pan_id via nl802154 framework.
Adding a comment because setting 0xffff as pan_id seems to be valid
setting. The pan_id 0xffff as source pan is invalid. I am not sure now
about this setting but for the current netlink interface this is an
invalid setting, so we do the same now. Maybe we need to change that
when we have coordinator support and association support.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds page and channel setting support to nl802154 framework.
Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds a netdev notifier for interface renaming. We have a name
attribute inside of subif data struct. This is needed to have always the
actual netdev name in sdata name attribute.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch changes the module description like wireless which is IEEE
802.11 "subsystem" and not "implementation".Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds an unique id for an wpan_phy. This behaviour is mostly
grabbed from wireless stack. This is needed for upcomming patches which
identify the wpan netdev while NETDEV_CHANGENAME in netdev notify function.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
Instead of always re-lock the iflist_mtx at multiple interfaces we lock
the complete for each loop at start and at the end.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch is just a cleanup to name the temporary variable for
protected list for each loop as tmp.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch move the iface unregistration into iface.c file to have
a behaviour which is similar like mac80211. Also iface handling should
be inside iface.c file only.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann
10 Nov, 2014
7 commits
-
This patch adds a netif_running check while trying to change the address
attributes via ioctl. While netif_running is true these attributes
should be only readable.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds rtnl lock hold mechanism while accessing wpan_dev
attributes. Furthermore these attributes should be protected by rtnl
lock and netif_running only.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch removes the setting of dev_addr on a monitor device. This
address should be zero. A monitor should only sniff and send raw frames
out. The address should be never used by upper layers and receiving
frame parsing.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds an iftype argument to the wpan_dev. This is needed to
get the interface type from netdev ieee802154_ptr. The subif data struct
can only accessible in mac802154 branch.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch renames the wpan_phy_alloc function to wpan_phy_new. This
naming convention is like wireless and "wiphy_new" function.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch removes the mac_params from subif data struct. Instead we
manipulate the wpan attributes directly.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch moves all mac pib attributes into the wpan_dev struct.
Furthermore we can easier access these attributes over the netdev
802154_ptr pointer. Currently this is only possible over a complicated
callback structure in mac802154 because subif data structure is
accessable inside mac802154 only.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann
06 Nov, 2014
5 commits
-
Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch removes the af_ieee802154 defines and use the
IEEE802154_EXTENDED_ADDR_LEN. We should do this everywhere in the
802.15.4 subsystem because af_ieee802154 should be normally an uapi
header.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adding support for a perm extended address. This is useful
when a device supports an eeprom with a programmed static extended address.
If a device doesn't support such eeprom or serial registers then the
driver should generate a random extended address.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch cleanups the ieee802154_be64_to_le64 to have a similar
function like ieee802154_le64_to_be64 only with switched source and
destionation types.Signed-off-by: Alexander Aring
Signed-off-by: Marcel Holtmann -
This patch adds an ieee802154_vif similar like the ieee80211_vif which
holds the interface type and maybe further more attributes like the
ieee80211_vif structure.Signed-off-by: Alexander Aring
Cc: Varka Bhadram
Signed-off-by: Marcel Holtmann