1. 08 7月, 2016 2 次提交
  2. 13 4月, 2016 1 次提交
  3. 11 3月, 2016 1 次提交
  4. 24 2月, 2016 1 次提交
  5. 21 10月, 2015 1 次提交
    • A
      6lowpan: cleanup lowpan_header_decompress · 8911d774
      Alexander Aring 提交于
      This patch changes the lowpan_header_decompress function by removing
      inklayer related information from parameters. This is currently for
      supporting short and extended address for iphc handling in 802154.
      We don't support short address handling anyway right now, but there
      exists already code for handling short addresses in
      lowpan_header_decompress.
      
      The address parameters are also changed to a void pointer, so 6LoWPAN
      linklayer specific code can put complex structures as these parameters
      and cast it again inside the generic code by evaluating linklayer type
      before. The order is also changed by destination address at first and
      then source address, which is the same like all others functions where
      destination is always the first, memcpy, dev_hard_header,
      lowpan_header_compress, etc.
      
      This patch also moves the fetching of iphc values from 6LoWPAN linklayer
      specific code into the generic branch.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Acked-by: NJukka Rissanen <jukka.rissanen@linux.intel.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      8911d774
  6. 30 9月, 2015 1 次提交
    • A
      mac802154: check on len instead mac_len · 5f2ebb3b
      Alexander Aring 提交于
      This patch change the length check to len instead of mac_len for
      checking if the frame control field is available to dereference.
      We need to change it because I saw issues with af_packet raw sockets
      and the mrf24j40 which calls this functionality. The raw socket
      functionality doesn't set the mac_len but resets the skb_mac_header to
      skb->data which is still correct. The issue occur at mrf24j40 only,
      because the driver need to evaluate the fc fields.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      5f2ebb3b
  7. 22 9月, 2015 1 次提交
    • A
      ieee802154: change needed headroom/tailroom · 87a93e4e
      Alexander Aring 提交于
      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: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      87a93e4e
  8. 17 9月, 2015 1 次提交
  9. 23 7月, 2015 1 次提交
  10. 12 6月, 2015 1 次提交
  11. 07 6月, 2015 8 次提交
  12. 19 5月, 2015 4 次提交
    • A
      cfg802154: introduce wpan phy flags · edea8f7c
      Alexander Aring 提交于
      This patch introduce a flag property for the wpan phy structure.
      The current flag settings in ieee802154_hw are accessable in mac802154
      layer only which is okay for flags which indicates MAC handling which
      are done by phy. For real PHY layer settings like cca mode, transmit
      power, cca energy detection level.
      
      The difference between these flags are that the MAC handling flags are
      only handled in mac802154/HardMac layer e.g. on an interface up. The phy
      settings are direct netlink calls from nl802154 into the driver layer
      and the nl802154 need to have a chance to check if the driver supports
      this handling before sending to the next layer.
      
      We also check now on PHY flags while dumping and setting pib attributes.
      In comparing with MIB attributes the 802.15.4 gives us an default value
      which we assume when a transceiver implement less functionality. In case
      of MIB settings the nl802154 layer doesn't need to check on the
      ieee802154_hw flags then.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      edea8f7c
    • A
      ieee802154: change cca ed level to mbm · 32b23550
      Alexander Aring 提交于
      This patch change the handling of cca energy detection level from dbm to
      mbm. This prepares to handle floating point cca energy detection levels
      values. The old netlink 802.15.4 will convert the dbm value to mbm for
      handling backward compatibility.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      32b23550
    • A
      ieee802154: change transmit power to mbm · e2eb173a
      Alexander Aring 提交于
      This patch change the handling of transmit power level from dbm to mbm.
      This prepares to handle floating point transmit power levels values. The
      old netlink 802.15.4 will convert the dbm value to mbm for handling
      backward compatibility.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      e2eb173a
    • A
      ieee802154: change transmit power to s32 · 1a19cb68
      Alexander Aring 提交于
      This patch change the transmit power from s8 to s32. This prepares to store a
      mbm value instead dbm inside the transmit power variable. The old
      interface keep the a s8 dbm value, which should be backward compatibility
      when assign s8 to s32.
      Signed-off-by: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      1a19cb68
  13. 01 5月, 2015 1 次提交
  14. 10 4月, 2015 1 次提交
  15. 09 4月, 2015 1 次提交
  16. 14 2月, 2015 2 次提交
  17. 19 12月, 2014 1 次提交
  18. 13 11月, 2014 1 次提交
    • A
      mac802154: add interframe spacing time handling · 61f2dcba
      Alexander Aring 提交于
      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: NAlexander Aring <alex.aring@gmail.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      61f2dcba
  19. 06 11月, 2014 3 次提交
  20. 03 11月, 2014 1 次提交
  21. 02 11月, 2014 1 次提交
  22. 30 10月, 2014 5 次提交