1. 13 Apr, 2016 3 commits
  2. 24 Sep, 2015 1 commit
  3. 22 Sep, 2015 2 commits
    • Alexander Aring's avatar
      ieee802154: add helpers for frame control checks · 79750ac4
      Alexander Aring authored
      This patch introduce two static inline functions. The first to get the
      frame control field from an sk_buff. The second is for checking on the
      acknowledgment request bit on the frame control field. Later we can
      introduce more functions to check on the frame control fields.
      
      These will deprecate the current behaviour which requires a
      host-byteorder conversion and manually bit handling.
      Reviewed-by: default avatarStefan Schmidt <stefan@osg.samsung.com>
      Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      79750ac4
    • Alexander Aring's avatar
      ieee802154: change needed headroom/tailroom · 87a93e4e
      Alexander Aring authored
      This patch cleanups needed_headroom, needed_tailroom and hard_header_len
      fields for wpan and lowpan interfaces.
      
      For wpan interfaces the worst case mac header len should be part of
      needed_headroom, currently this is set as hard_header_len, but
      hard_header_len should be set to the minimum header length which xmit
      call assumes and this is the minimum frame length of 802.15.4.
      The hard_header_len value will check inside send callbacl of AF_PACKET
      raw sockets.
      
      For lowpan interfaces, if fragmentation isn't needed the skb will
      call dev_hard_header for 802154 layer and queue it afterwards. This
      happens without new skb allocation, so we need the same headroom and
      tailroom lengths like 802154 inside 802154 6lowpan layer. At least we
      assume as minimum header length an ipv6 header size.
      Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      87a93e4e
  4. 17 Sep, 2015 1 commit
  5. 31 May, 2015 2 commits
  6. 14 Mar, 2015 1 commit
  7. 13 Feb, 2015 1 commit
  8. 17 Nov, 2014 1 commit
  9. 12 Nov, 2014 1 commit
    • Alexander Aring's avatar
      mac802154: add interframe spacing time handling · 61f2dcba
      Alexander Aring authored
      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: default avatarAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      61f2dcba
  10. 11 Nov, 2014 2 commits
    • Alexander Aring's avatar
      ieee820154: add short_addr setting support · 9830c62a
      Alexander Aring authored
      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: default avatarAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      9830c62a
    • Alexander Aring's avatar
      ieee820154: add pan_id setting support · 702bf371
      Alexander Aring authored
      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: default avatarAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      702bf371
  11. 05 Nov, 2014 2 commits
  12. 04 Nov, 2014 1 commit
  13. 02 Nov, 2014 2 commits
  14. 01 Nov, 2014 1 commit
  15. 27 Oct, 2014 1 commit
  16. 25 Oct, 2014 2 commits
  17. 15 May, 2014 1 commit
  18. 14 Mar, 2014 1 commit
  19. 13 Nov, 2011 1 commit
  20. 23 Jul, 2009 1 commit
  21. 09 Jun, 2009 1 commit
    • Sergey Lapin's avatar
      net: add IEEE 802.15.4 socket family implementation · 9ec76716
      Sergey Lapin authored
      Add support for communication over IEEE 802.15.4 networks. This implementation
      is neither certified nor complete, but aims to that goal. This commit contains
      only the socket interface for communication over IEEE 802.15.4 networks.
      One can either send RAW datagrams or use SOCK_DGRAM to encapsulate data
      inside normal IEEE 802.15.4 packets.
      
      Configuration interface, drivers and software MAC 802.15.4 implementation will
      follow.
      
      Initial implementation was done by Maxim Gorbachyov, Maxim Osipov and Pavel
      Smolensky as a research project at Siemens AG. Later the stack was heavily
      reworked to better suit the linux networking model, and is now maitained
      as an open project partially sponsored by Siemens.
      Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Signed-off-by: default avatarSergey Lapin <slapin@ossfans.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9ec76716