zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.86k stars 6.62k forks source link

wifi: nrf70: Unable to get DHCP when enabled raw modes #80973

Closed krish2718 closed 5 days ago

krish2718 commented 6 days ago

Describe the bug

When using STA mode with raw modes enabled (but not used), DHCP fails to get an IP.

To Reproduce

  1. Build sampleswest build -p -b nrf7002dk/nrf5340/cpuapp -- -DEXTRA_CONF_FILE=overlay-raw-tx.conf -DSB_CONFIG_WIFI_NRF70_SYSTEM_WITH_RAW_MODES=y
  2. Connect to an AP
  3. Observe DHCP failure.

Expected behavior Successful DHCP exchange and ping to the AP

Impact Wi-Fi cannot be used.

Logs and console output Wireshark shows checksum failure for DHCP discover.

Environment (please complete the following information):

Additional context NA

krish2718 commented 6 days ago

Triage summary: Due to newly implemented get_config L2 Ethernet OP in nRF70 driver, the OP only implements a partial types, making networking stack to skip checksum for IPV4 header but marking the packet as checksum done (UDP header), so, both networking stack and nRF70 HW skip doing IPV4 header checksum.