[riot-commits] [RIOT-OS/RIOT] 078c47: cpu/esp32: fixes frame size handling in esp_wifi

Sebastian Meiling s at mlng.net
Thu Jan 17 17:39:01 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 078c47d79ca06dc558f5a275936bfe88c4c5503c
      https://github.com/RIOT-OS/RIOT/commit/078c47d79ca06dc558f5a275936bfe88c4c5503c
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c
    M cpu/esp32/esp-wifi/esp_wifi_netdev.h

  Log Message:
  -----------
  cpu/esp32: fixes frame size handling in esp_wifi

The size of received and transmitted frames was stored in an uint8_t, which did not allow to process frames larger than 255 octets. However, WiFi has an MTU of 1500 octets.


  Commit: 2c97377585c142d4148d94a921d516e13c72fef3
      https://github.com/RIOT-OS/RIOT/commit/2c97377585c142d4148d94a921d516e13c72fef3
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: fixes NETOPT_IS_WIRED in esp_wifi

esp_wifi returns false now.


  Commit: d24d73dadf466bbc888905916b0071f6618592a1
      https://github.com/RIOT-OS/RIOT/commit/d24d73dadf466bbc888905916b0071f6618592a1
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: fixes NETOPT_LINK_CONNECTED in esp_wifi

esp_wifi was simply returning the connection state instead of filling the referenced value.


  Commit: 3ef35e1b7839f374a1539a9aad6d61513614f248
      https://github.com/RIOT-OS/RIOT/commit/3ef35e1b7839f374a1539a9aad6d61513614f248
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: use static WiFi config in esp_wifi

The WiFi configuration has to be static to avoid memory access problems when WiFi AP is reconnected.


  Commit: 8a1da21b1a128f995fc6d8370e88a19f6ab418d4
      https://github.com/RIOT-OS/RIOT/commit/8a1da21b1a128f995fc6d8370e88a19f6ab418d4
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: fixes serious memory leak in esp_wifi

The buffer given by the WiFi driver as parameter eb has to be freed explicitly. Otherwise the esp_wifi_netdev stops working after some seconds.


  Commit: 2c3ac91cf30c0c5f6ee723353f31b43608205c03
      https://github.com/RIOT-OS/RIOT/commit/2c3ac91cf30c0c5f6ee723353f31b43608205c03
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: move wifi_connect to event handler

Before function wifi_connect is executed, starting the WiFi driver should have been finished. This is indicated by the WiFi driver by sending event SYSTEM_EVENT_STA_START. Function wifi_connect is moved therefore to the event handler for SYSTEM_EVENT_STA_START.


  Commit: f4cacc1e24a63e8a1abdeb05ebb86ec35d9e902a
      https://github.com/RIOT-OS/RIOT/commit/f4cacc1e24a63e8a1abdeb05ebb86ec35d9e902a
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: improved debug message in esp_wifi


  Commit: 90e9c95c30aaea47f598cbf36b41a86a1955316c
      https://github.com/RIOT-OS/RIOT/commit/90e9c95c30aaea47f598cbf36b41a86a1955316c
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: registration of RX callback in esp_wifi

RX callback function should be register when WiFi has been connected to AP successfully and should be unregistered when WiFi disconnects from AP. Therefore, esp_wifi_internal_reg_rxcb is called now in event handler on event SYSTEM_EVENT_STA_CONNECTED. It is reset now on event SYSTEM_EVENT_STA_DISCONNECTED.


  Commit: c9684af5c20d63d5b497381ff5e49ed9fbb734d5
      https://github.com/RIOT-OS/RIOT/commit/c9684af5c20d63d5b497381ff5e49ed9fbb734d5
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: automatic reconnect after disconnect

If WiFi is disconnected, e.g., because of timeout for beacon frame, it is tried to reconnect automatically.


  Commit: c0d4706bf8b85edb9bdb3a58c84e0bf32f48631f
      https://github.com/RIOT-OS/RIOT/commit/c0d4706bf8b85edb9bdb3a58c84e0bf32f48631f
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: fix of event types in esp_wifi


  Commit: e83a8679b435b0809aa98e49d1dce83d791d0568
      https://github.com/RIOT-OS/RIOT/commit/e83a8679b435b0809aa98e49d1dce83d791d0568
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c
    M cpu/esp32/esp-wifi/esp_wifi_params.h

  Log Message:
  -----------
  cpu/esp32: cleanup esp_wifi config parameters


  Commit: 1cf415a8a97099f3c55339e4ab6f270c1333a439
      https://github.com/RIOT-OS/RIOT/commit/1cf415a8a97099f3c55339e4ab6f270c1333a439
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/doc.txt
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c
    M cpu/esp32/esp-wifi/esp_wifi_netdev.h
    M cpu/esp32/esp-wifi/esp_wifi_params.h

  Log Message:
  -----------
  cpu/esp32: doc improvements in esp_wifi


  Commit: cb37288ca5ceee9d2db90665474e37a3a7c3fdba
      https://github.com/RIOT-OS/RIOT/commit/cb37288ca5ceee9d2db90665474e37a3a7c3fdba
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    R cpu/esp32/README.md

  Log Message:
  -----------
  cpu/esp32: redundant README.md removed

To avoid further inconsistencies in documentation, README.md is not provided any longer


  Commit: 7754a3416c8ad1e33433518d5d9ed48493376a2e
      https://github.com/RIOT-OS/RIOT/commit/7754a3416c8ad1e33433518d5d9ed48493376a2e
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp_common/esp-now/doc.txt

  Log Message:
  -----------
  cpu/esp_common: doc fixes related to esp_wifi


  Commit: 6caead7bbc9ca2d5d1b206ae8a96f195a92308d3
      https://github.com/RIOT-OS/RIOT/commit/6caead7bbc9ca2d5d1b206ae8a96f195a92308d3
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/doc.txt
    M cpu/esp32/esp-wifi/doc.txt

  Log Message:
  -----------
  cpu/esp32: esp-wifi related doc changes


  Commit: f788928b27809f3e3db1d116a7efdc3124bb7d36
      https://github.com/RIOT-OS/RIOT/commit/f788928b27809f3e3db1d116a7efdc3124bb7d36
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c

  Log Message:
  -----------
  cpu/esp32: fix esp_wifi stability issues

Fixes sporadic blocking of the wifi thread in esp_wifi_recv_cb function under heavy network load conditions when frames are coming in faster than they can be processed. Since esp_wifi_recv_cb function is not executed in interrupt context, the msg_send function used for ISR event can block when the message queue is full. With this change esp_wifi can be flooded with icmpv6 packets of maximum size without any problems over hours.


  Commit: 6a99e86b2fb01b595456eadc4a83c16303e79f1e
      https://github.com/RIOT-OS/RIOT/commit/6a99e86b2fb01b595456eadc4a83c16303e79f1e
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/Makefile.dep

  Log Message:
  -----------
  cpu/esp32: fix stability issues of esp_wifi

ESP-IDF heap handling has to be used for esp_wifi for stability reasons. Otherwise, heap is corrupted sporadically


  Commit: 5bb05f09114c5c8e5f248389a173bee63587aea3
      https://github.com/RIOT-OS/RIOT/commit/5bb05f09114c5c8e5f248389a173bee63587aea3
  Author: Gunar Schorcht <gunar at schorcht.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/doc.txt

  Log Message:
  -----------
  cpu/esp32: esp-wifi related doc changes


  Commit: 495607d501e9d5c11fdf7b71cb7c8a5087080bba
      https://github.com/RIOT-OS/RIOT/commit/495607d501e9d5c11fdf7b71cb7c8a5087080bba
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-01-17 (Thu, 17 Jan 2019)

  Changed paths:
    M cpu/esp32/Makefile.dep
    R cpu/esp32/README.md
    M cpu/esp32/doc.txt
    M cpu/esp32/esp-wifi/doc.txt
    M cpu/esp32/esp-wifi/esp_wifi_netdev.c
    M cpu/esp32/esp-wifi/esp_wifi_netdev.h
    M cpu/esp32/esp-wifi/esp_wifi_params.h
    M cpu/esp_common/esp-now/doc.txt

  Log Message:
  -----------
  Merge pull request #10762 from gschorcht/esp32_esp_wifi_fix

cpu/esp32: esp_wifi netdev driver


Compare: https://github.com/RIOT-OS/RIOT/compare/c06172925a20...495607d501e9
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list