[riot-commits] [RIOT-OS/RIOT] 3978f5: drivers/sx126x: fix netdev send function

José Alamos noreply at github.com
Wed Jul 7 18:10:52 CEST 2021


  Branch: refs/heads/2021.07-branch
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 3978f511667518e96a506dbbbf826bf58c9f3962
      https://github.com/RIOT-OS/RIOT/commit/3978f511667518e96a506dbbbf826bf58c9f3962
  Author: Jose Alamos <jose at alamos.cc>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M drivers/sx126x/sx126x_netdev.c

  Log Message:
  -----------
  drivers/sx126x: fix netdev send function

This commit fixes the send function of sx126x. The loop that reads the
iolist was not considering the offset. Therefore each iolist snippet was
being written into the first position.

The loop was also setting the payload length to the size of the iolist
snippet. Then the payload was also wrong.

With this commit an iolist is copied sequentially into the framebuffer
and the payload length is set to `iolist_size`


  Commit: 0262c36960ea7c73284128f72be4b0dcb70d877e
      https://github.com/RIOT-OS/RIOT/commit/0262c36960ea7c73284128f72be4b0dcb70d877e
  Author: Jose Alamos <jose at alamos.cc>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M drivers/sx126x/sx126x_netdev.c

  Log Message:
  -----------
  drivers/sx126x: fix wrong return value in recv function


  Commit: ecbafcdaab25b4f878e9bdc72d5d88e6285dea56
      https://github.com/RIOT-OS/RIOT/commit/ecbafcdaab25b4f878e9bdc72d5d88e6285dea56
  Author: José Alamos <jose at alamos.cc>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M drivers/sx126x/sx126x_netdev.c

  Log Message:
  -----------
  Merge pull request #16620 from MrKevinWeiss/pr/sx126x/fix_netdev_write

drivers/sx126x: fix netdev send and recv function [backport 2021.07]


Compare: https://github.com/RIOT-OS/RIOT/compare/b490a66e9e56...ecbafcdaab25


More information about the commits mailing list