Modbus Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed) (IDFGH-3775)

Environment

Development Kit:      Custom
Kit version (for WroverKit/PicoKit/DevKitC): Custom
Module or chip used:  ESP32-WROOM-32D
IDF version (run git describe --tags to find it):

good behavior => v4.1-dev-1100-g18d435e26
bad behavior => v4.1-rc-10-g70675c7d1

Build System:         CMake
Compiler version (run xtensa-esp32-elf-gcc --version to find it):

good behavior => (crosstool-NG esp-2019r2) 8.2.0
bad behavior => (crosstool-NG esp-2020r2) 8.2.0

Operating System:     Windows
(Windows only) environment type: MSYS2 mingw32
Using an IDE?: Yes => eclipse CDT
Power Supply:         Custom

Problem Description
We were encountering a memory leak in the wifi stack on the previous version (v4.1-dev-1100-g18d435e26). As it was fixed on release/v4.1, we decided to move to this branch head (also, we're going to production so it was better to go to a release branch rather than staying on master).
So now we are on v4.1-rc-10-g70675c7d1.
Problem is that we always get "Core 1 panic'ed (Cache disabled but cached memory region accessed)" errors causing reboot after some minutes, without explanation, as our code has not changed before and after SDK update.
We suspect it comes from Modbus/UART ISR handlers, because we've tried the following independently:

disable Modbus stack usage => problem disappears
removed UART and Modbus ISR handlers from IRAM by changing SDK config CONFIG_FMB_TIMER_ISR_IN_IRAM and CONFIG_UART_ISR_IN_IRAM to "n" => problem disappears.

Also, we've checked the differences between the 2 versions, and dug a bit in the code, and we've found inconsistencies for code that should be in IRAM, for example:

vTimerGroupIsr => runs in IRAM, but can access constants in flash such as usTimerIndex1 (not in DRAM)
uart_rx_intr_handler_default => runs in DRAM, but can call functions in flash such as uart_hal_write_txfifo or uart_hal_read_rxfifo (not in IRAM).
There might be others as well, it is only the ones we've identified.
So maybe this added to other amount of running code can cause more chances to get cache exceptions. We've tried to move the objects we've identified from flash to IRAM/DRAM, but without success...

Expected Behavior
Code shall not crash with the new SDK version, as before.
Actual Behavior
Code crashes with the new SDK version.
Steps to reproduce
I have not made the effort yet to try the simple Modbus examples. But I'm not sure this will fail... I'm afraid it could be due to the size of the binary: the more it is, the more cache accesses might be required, and so the more the problem could occur.
Code to reproduce this issue
NA
Debug Logs
Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed)
Core 1 register dump:
PC      : 0x40130b2c  PS      : 0x00060034  A0      : 0x40082e64  A1      : 0x3ffbe840
0x40130b2c: uart_ll_is_tx_idle at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/soc/esp32/include/hal/uart_ll.h:740

0x40082e64: _xt_lowint1 at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/freertos/xtensa_vectors.S:1153

A2      : 0x3ffd8a9c  A3      : 0x3ffc1e00  A4      : 0x3ffd1d6c  A5      : 0x00000020
A6      : 0x00000001  A7      : 0x00004000  A8      : 0x8008c5ad  A9      : 0x00000080
A10     : 0x3ff6e000  A11     : 0x00000000  A12     : 0x60d6de31  A13     : 0x60d6de31
A14     : 0xffffffff  A15     : 0x3ffc8450  SAR     : 0x00000000  EXCCAUSE: 0x00000007
EXCVADDR: 0x00000000  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000
Core 1 was running in ISR context:
EPC1    : 0x40089983  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x40130b2c
0x40089983: spi_flash_op_block_func at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/spi_flash/cache_utils.c:101 (discriminator 1)

0x40130b2c: uart_ll_is_tx_idle at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/soc/esp32/include/hal/uart_ll.h:740

ELF file SHA256: 4b09f0aacc1d6396

Backtrace: 0x40130b29:0x3ffbe840 0x40082e61:0x3ffbe8a0 0x40089980:0x3ffb7e60 0x40082514:0x3ffb7e90
0x40130b29: timer_disable_intr at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/driver/timer.c:429

0x40082e61: _xt_lowint1 at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/freertos/xtensa_vectors.S:1153

0x40089980: spi_flash_op_block_func at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/spi_flash/cache_utils.c:101 (discriminator 1)

0x40082514: ipc_task at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/esp_common/src/ipc.c:62

Re-enable cpu cache.
Rebooting...
ets Jun  8 2016 00:22:57

rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7360
ho 0 tail 12 room 4
load:0x40078000,len:13072
load:0x40080400,len:3896
0x40080400: _init at ??:?
entry 0x40080688

I (30) boot: ESP-IDF v4.1-rc-10-g70675c7d1 2nd stage bootloader
I (30) boot: compile time 09:09:21
I (30) boot: chip revision: 1
I (35) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (42) boot.esp32: SPI Speed      : 40MHz
I (46) boot.esp32: SPI Mode       : DIO
I (51) boot.esp32: SPI Flash Size : 8MB
I (55) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (64) boot: ## Label            Usage          Type ST Offset   Length
I (72) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (79) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (87) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (94) boot:  3 factory          factory app      00 00 00010000 00200000
I (102) boot:  4 ota_ihm1         OTA app          00 10 00210000 00200000
I (109) boot:  5 ota_ihm2         OTA app          00 11 00410000 00200000
I (117) boot:  6 ota_lvl2         OTA app          00 12 00610000 00080000
I (124) boot: End of partition table
I (129) boot: Defaulting to factory image
I (133) boot_comm: chip revision: 1, min. application chip revision: 0
I (140) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x56244 (352836) map
I (284) esp_image: segment 1: paddr=0x0006626c vaddr=0x3ffbdb60 size=0x066e4 ( 26340) load
I (295) esp_image: segment 2: paddr=0x0006c958 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/freertos/xtensa_vectors.S:1778

I (296) esp_image: segment 3: paddr=0x0006cd64 vaddr=0x40080404 size=0x032b4 ( 12980) load
I (307) esp_image: segment 4: paddr=0x00070020 vaddr=0x400d0020 size=0xf61c0 (1008064) map
0x400d0020: _stext at ??:?

I (694) esp_image: segment 5: paddr=0x001661e8 vaddr=0x400836b8 size=0x160a4 ( 90276) load
0x400836b8: xMBPortEventPost at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/freemodbus/port/portevent.c:89 (discriminator 1)

I (748) boot: Loaded app from partition at offset 0x10000
I (748) boot: Disabling RNG early entropy source...
I (749) cpu_start: Pro cpu up.
I (752) cpu_start: Application information:
I (757) cpu_start: Project name:     zpce_embedded_zs500_ihm
I (763) cpu_start: App version:      V72I6.0.0-2-g74183db5b-dirty
I (770) cpu_start: Compile time:     Aug  4 2020 09:08:45
I (776) cpu_start: ELF file SHA256:  4b09f0aacc1d6396...
I (782) cpu_start: ESP-IDF:          v4.1-rc-10-g70675c7d1
I (788) cpu_start: Starting app cpu, entry point is 0x400815ec
0x400815ec: call_start_cpu1 at c:\users\simon.thiebaut\documents\projets\zs500_v3\zpce_embedded_zs500_ihm\build/../esp-idf/components/esp32/cpu_start.c:271
I (0) cpu_start: App cpu up.
I (799) heap_init: Initializing. RAM available for dynamic allocation:
I (806) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (812) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM

I (818) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (824) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (830) heap_init: At 3FFD7170 len 00008E90 (35 KiB): DRAM
I (836) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (843) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (849) heap_init: At 4009975C len 000068A4 (26 KiB): IRAM
I (855) cpu_start: Pro cpu start user code
I (874) spi_flash: detected chip: gd
I (875) spi_flash: flash io: dio
I (875) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (887) STARTUP: FW VERSION 6.0.0

Other items if possible

good behavior (v4.1-dev-1100-g18d435e26)

sdkconfig attached
elf file attached
map file attached (you can see the mislocated function/constants that should be in IRAM/DRAM from our point of view)

bad behavior (v4.1-rc-10-g70675c7d1)

sdkconfig attached
elf file attached
map file attached (you can see the mislocated function/constants that should be in IRAM/DRAM from our point of view)

4.1-dev.zip
4.1-rc.zip
I've also checked tickets #5072 and #4049, but the do not present exactly the same symptoms.
Also, please let us know if we too the wrong branch to upgrade and get the fix of wifi leak, maybe it has an impact...
Thank you for your help.
Best regards,
Simon

Thanks for the detailed report and sorry for the inconvenience, we will look into.

Hi  @simon-thiebaut,
Thanks for your issue. I investigated the issue and files you provided.

You are using some modification to ESP-IDF. v4.1-rc-10-g70675c7d1 is not an official ESP-IDF version (no commit 70675c7d1 in official repo) this may cause some inconsistency during investigation.
The modbus port code and other functions in your *.elf file:
The functions below you mentioned in issue description are located in iram segment and placed there conditionally by the linker.lf file and do not cause the issues:

uart_hal_read_rxfifo in section .iram0.text
uart_hal_write_txfifo in section .iram0.text

I investigated some uart driver, modbus port functions and other as well as their references to .flash.text segment:
uart_hal_rxfifo_rst @0x4008bbf0 (.iram0.text) -> __assert_func @0x400e04f8 (.flash.text)
uart_hal_write_txfifo @0x4008bcac (.iram0.text) -> __assert_func @0x400e04f8 (.flash.text)
uart_hal_read_rxfifo @0x4008bd24 (.iram0.text) -> __assert_func @0x400e04f8 (.flash.text)

xMBMasterRTUTimerExpired @0x40082a70 (.iram0.text) -> __assert_func @0x400e04f8 (.flash.text)
vTimerGroupIsr @0x40082b80 (.iram0.text) -> __assert_func @0x400e04f8 (.flash.text)
vMBMasterPortTimersDisable @0x40082bb0 (.iram0.text) -> timer_pause @0x400d9fbc (.flash.text)
vMBMasterPortTimersDisable @0x40082bb0 (.iram0.text) -> timer_set_counter_value @0x400d9d9c (.flash.text)
vMBMasterPortTimersDisable @0x40082bb0 (.iram0.text) -> timer_disable_intr @0x400da758 (.flash.text)

The references above are ok and do not cause any issue.
Investigation of the timer handler assembler xMBMasterRTUTimerExpired showed it does not have any reference to flash memory.
However I found the issue with uart_ll_is_tx_idle() symbol, the function is inline in soc but this symbol is located in .flash.test segment as per your elf file.
This function was called from interrupt handler uart.c::uart_rx_intr_handler_default located in IRAM and caused an issue in your application.
Could you please reproduce the issue with official release v4.1-rc? In my current test build the issue you described does not appear for now.
I continue to work with the issue and will update you with new information.

Hi @alisitsyn ,
Thank you for the quick reply.
Indeed my mistake I forgot to mention that we forked the repo.
Also from your answer, I've been misreading the map files, actually I didn't think to check the elf.
So I've tried your suggestion, to build using latest offical RC (v4.1-rc b3b7fcf, is that correct ?) => still the issue in the elf, uart_ll_is_tx_idle is still in .flash.text though it should be inlined....
By the way, I've found this comment on this link => https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/spi_master.html
Please do take care that the optimization level may affect the compiler behavior of inline, or transforming some code into lookup table in the const data, etc.

Could it be a wrong compiler option in the SDK config that optimizes badly this function location ?
Unless I'm wrong, an inlined function name should not appear in the elf, right ?
I'll continue checking compiler options.
Thank you for your feedback.

@simon-thiebaut,

So I've tried your suggestion, to build using latest offical RC (v4.1-rc b3b7fcf, is that correct ?) => still the issue in the elf, uart_ll_is_tx_idle is still in .flash.text though it should be inlined....

Yes, this issue exists in even latest master when optimization for size is selected. The correct commit for v4.1-rc is
b3b7fcf51c91e160b314e15ba54cc671e6f5b37e. The compiler does not inline the functions always and I think it is known aspect of compiler not an issue with the compiler. I verify this against all release versions.

Unless I'm wrong, an inlined function name should not appear in the elf, right ?
Yes, the inlined function should not appear as a symbol in elf.

For quick fix I propose to change the uart_ll_is_tx_idle as below (it could work even without always_inline):
static __attribute__((always_inline)) inline bool uart_ll_is_tx_idle(uart_dev_t *hw)
{
    return ((hw->status.txfifo_cnt == 0) && (hw->status.st_utx_out == 0));
}

In this case it is inlined correctly by both compilers. Let me know if the temporary fix above works for you.
The issue should be resolved reliably to place the function into IRAM conditionally but the same may be happened with other ll functions called from UART handler. I try to find a good way to do it withing the scope of current driver architecture.
The resolution of the issue will take some time to complete workflow. I will inform you about progress.

@alisitsyn thank you for these confirmations, I was going crazy trying to put IRAM everywhere without success...
So far with your fix, I don't face the problem anymore after more than 1 hour (whereas before problem was showing up after roughly 4/5 minutes).
I need to do more test, but this is encouraging.
And I agree with you, function in IRAM shall be always put in RAM, whatever the compiler options are.
I understand this is going to take time to fix it. We've committed this patch in our fork, and run our project validation with it, no worry so. Hopefully this will be enough...
AND Thanks for good finding...

AND Thanks for good support 👍
Shall I close the ticket or will you do it after official fix delivery ?
Thank you again.

@simon-thiebaut,
Good to hear it helps even as temporary solution. Let me know if you have some further results. Please leave the ticket opened, it will be closed automatically once fix is merged.
👍

We recently experienced this issue with both the UART (used for modbus) and the RMT peripheral using IRAM on v4.2. We require both of these peripherals be active during an OTA download i.e flash writes. Our project has not got to state yet where we need to fork the IDF to apply the workarounds mentioned above as we are looking to avoid this as much as possible.
Currently changing the compiler settings to -Og instead of -Os resolves the problem. However, this does result in significantly larger binary images which are downloaded on metered connections and there is currently no support for bindiff updates. Also now not everything will fit inside the IRAM and storing application code in IRAM is useful as it can free up RAM used so that you can run BLE, WIFI and TLS simultaneously. TLDR: -Os solution cascades to other problems
Oh, how I just love how embedded development is full of trade-offs, compromises and random limitations you would never could have foreseen, its what I wake up in the morning for.

We recently experienced this issue with both the UART (used for modbus) and the RMT peripheral using IRAM on v4.2. We require both of these peripherals be active during an OTA download i.e flash writes. Our project has not got to state yet where we need to fork the IDF to apply the workarounds mentioned above as we are looking to avoid this as much as possible.
Currently changing the compiler settings to -Og instead of -Os resolves the problem. However, this does result in significantly larger binary images which are downloaded on metered connections and there is currently no support for bindiff updates. Also now not everything will fit inside the IRAM and storing application code in IRAM is useful as it can free up RAM used so that you can run BLE, WIFI and TLS simultaneously. TLDR: -Os solution cascades to other problems
Oh, how I just love how embedded development is full of trade-offs, compromises and random limitations you would never could have foreseen, its what I wake up in the morning for.

Still present in v4.3-beta-2

Can try to ask about merge but I do not control it. Unfortunately the MR is still not merged.

In the mean time can you share a patch that works with 4.3-beta-2 ?

Yes, sure I can provide the patches:
bugfix_uart_handler_call_inline_func v4.2 patch
bugfix_uart_handler_call_inline_func v4.3 patch
Let me know if you have any issues.

v4.3 fixed by d761226f36c82eca4de8d75502284c7bb07b5b63

@AxelLin Thanks for sharing the updates, fix on release/4.1 is available https://github.com/espressif/esp-idf/commit/a4c72cfa28091e5d89193e58436eb7eb36e65735, feel free to reopen.

Hello ESP32 experts. I have kind a problem, when I initialize I2C driver on core 1 with i2c_driver_install(i2c_port, conf.mode, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, 0); my firmware works, but I sometimes had problem with reading from I2C. When I use i2c_driver_install(i2c_port, conf.mode, I2C_MASTER_RX_BUF_DISABLE, I2C_MASTER_TX_BUF_DISABLE, (ESP_INTR_FLAG_IRAM | ESP_INTR_FLAG_LEVEL3)); I constantly receive Guru Meditation Error: Core  0 panic'ed (Cache disabled but cached memory region accessed). Firmware uses esp-idf version 4.3. With sdk version 4.2.1 it is working without any problem. So are you sure that sdk v4.3 is stable?

@RuslanSpartak
The fix was in uart which is not related to i2c driver.
I think you should create a new issue instead. (and remember to follow the issue template for required information).

@RuslanSpartak,
As an addition to comment above: The current issue is related to UART but your issue is about I2C and looking very similar (attributes in low level functions of i2c driver). I would propose you to open separated issue against I2C driver. This will help us to handle this issue appropriately. Please also provide the log and let us know what kind of compiler optimization level you are using in your project.
Thanks.

I would propose you to open separated issue against I2C driver. This will help us to handle this issue appropriately. Please also provide the log and let us know what kind of compiler optimization level you are using in your project.

It's already reported in https://github.com/espressif/esp-idf/issues/7249

@AxelLin,
Ok, Thank you for update.


Mute state is not restored by snapshot restore

Description
If I create a snapshot (including mute states) and then restores the same speakers using that snapshot (while verifying that the mute states was indeed saved as expected) everything except mute state is restored.
What node/command (topic)/state (payload)
node: Universal
command: group.play.snap
In case of a bug: Are you able to reproduce the error
Yes. See below.
[{"id":"4b4c1b5d.861abc","type":"inject","z":"9b6d0e72.53658","name":"","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":150,"y":880,"wires":[["eda3da6c.58512"]]},{"id":"eda3da6c.58512","type":"change","z":"9b6d0e72.53658","name":"Inputs","rules":[{"t":"set","p":"snapVolumes","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"snapMutestates","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":880,"wires":[["4bffcef7.8e497"]]},{"id":"4bffcef7.8e497","type":"sonos-universal","z":"9b6d0e72.53658","confignode":"5840e176.b33fa8","command":"group.create.snap","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"Create snapshot","x":470,"y":880,"wires":[["575fd7d5.46bfe8"]]},{"id":"575fd7d5.46bfe8","type":"sonos-universal","z":"9b6d0e72.53658","confignode":"5840e176.b33fa8","command":"group.play.snap","state":"","stateType":"str","avoidCheckPlayerAvailability":false,"name":"Play snapshot","x":660,"y":880,"wires":[[]]},{"id":"5840e176.b33fa8","type":"sonos-config","name":"LivingRoom","serialnum":"5C-AA-FD-11-06-E3:A","ipaddress":"<IP_ADDRESS>"}]
Versions and Infrastructure
what system: Raspberry pi, running Home assistant (Linux 5.10.17-v8 aarch64)
node-red-contrib-sonos-plus version: 5.1.1
Node-RED version: 1.3.5
NodeJS version: v14.17.1

Right now I dont have access to my systems - will check it beginning of next week.

Thanks for reporting it.
Yes, it is a bug, will be fixed in 5.2.0 available latest end of this week

Fantastic! Thanks, and thanks for a great component!

5.2.0 is now availalble.
Does ist solve your issue?

Yes! Perfect! Thanks again!


Select styling issues

In SelectBase, the down arrow for the Select is styled with margin of 12px, and the only way I could get it to render properly centered with the text of the select was to set p={1}. Everything else looks bad.

Sorry, I'll do this later this month. However, the issue turned out to be that I didn't have a theme . My expectation was that if I don't put  element, Rebass would create a default one somehow.

The Select component in v2 should be a little more robust in situations like this so closing this out


[Docs] Addition of shield section in README.md

Description
Its a small update the shield section is missing in README.md of meshery.io repository
Expected Behavior
It needs to have a shield section since it provides information to the reader.
Screenshots
Expected :

Actual :

Kindly assign this task to me.

#644
Thats my PR on this issue
@warunicorn19 kindly review it.


Add vm map

Summary
This adds

A task group specific virtual memory structure, and inside it a list of virtual memory mappings. This information is needed at least to make munmap (find info about the vm mapping based on a process specific virtual address).
Hooks for calling mmap and munmap ioctl for drivers which can implement virtual memory mapping for files
An ioctl for MUNMAP, which didn't exist even though MMAP is there.
Add a config flag CONFIG_MM_VM_MAP, which can be selected by other features requiring this

Impact
This is a pre-requisite for implementing posix shm support, which needs mmap, munmap and ftruncate.
Testing
Has been tested with a posix shm interface, which is still under some cleanup work, can proceed on publishing that later on

Now, looking at this myself, I forgot to de-allocate the mappings when the group is removed. I will add that too

can you, @xiaoxiang781216 have a look on this? This is related to earlier discussion in dev mailing list, about need for being able to map virtual memory addresses to posix shared memory mappings (vfs inodes).

There is nothing else than the inode pointer which is usable in UNMAP ioctl. Any other info would be bogus. What is the "contract" you mention?
I can add the gran allocator handle still into vm_map, and remove the separate shm's one. Unfortunately I have time for this PR on next Tuesday at earliest

There is nothing else than the inode pointer which is usable in UNMAP ioctl.

It depends on the driver implementation. For example, both tmpfs/romfs access file->priv in FIOC_MAP ioctl. Yes, tmpfs/romfs doesn't implement FIOC_UNMAP ioctl yet, but if they want to implement FIOC_UNMAP in the future, it will access file->priv field definitely.

Any other info would be bogus. What is the "contract" you mention?

file_operation_s is designed as follow:

file_operation_s::open is the first call, the per file initialization could be done here
Other callback(read/write/ioctl/seek) in file_operation_s can reference the per file private data
file_operation_s::close is the last call, and driver can release the resource allocated in step 1

For open/close in some implementation may be no-op, but isn't always true. @pkarashchenko clean up the first case recently:
https://github.com/apache/incubator-nuttx/pull/6053
mmap need make both implementation happy.

I can add the gran allocator handle still into vm_map, and remove the separate shm's one. Unfortunately I have time for this PR on next Tuesday at earliest

no problem.

There is nothing else than the inode pointer which is usable in UNMAP ioctl.

It depends on the driver implementation. For example, both tmpfs/romfs access file->priv in FIOC_MAP ioctl. Yes, tmpfs/romfs doesn't implement FIOC_UNMAP ioctl yet, but if they want to implement FIOC_UNMAP in the future, it will access file->priv field definitely.

No, it couldn't if the originally mmapped file is already closed. File->priv would be a private pointer from another open call for another file struct.

Any other info would be bogus. What is the "contract" you mention?

file_operation_s is designed as follow:

file_operation_s::open is the first call, the per file initialization could be done here
Other callback(read/write/ioctl/seek) in file_operation_s can reference the per file private data
file_operation_s::close is the last call, and driver can release the resource allocated in step 1

This is true, but only applies to operations on an open file. Munmap can be done even in case the file is unliked, not only closed.

For open/close in some implementation may be no-op, but isn't always true. @pkarashchenko clean up the first case recently:
https://github.com/apache/incubator-nuttx/pull/6053
mmap need make both implementation happy.

Yes, but this is not about open/close being no-op for the driver. The point is that you just can't use file struct in munmap, since the original file struct may not exist any more. This is different in linux where they actually preserve the original file struct via a reference counter.

I can add the gran allocator handle still into vm_map, and remove the separate shm's one. Unfortunately I have time for this PR on next Tuesday at earliest

no problem.

So is the more generic way how I added the allocators into vm_map usable, or do you want to revert back to simpler structure and just have the gran handle for shm in group struct?

Re-based against current master
Changed vm_destroy to unmap any regions left, ensuring that any kernel side allocations made by drivers are also freed when a task group exits.
I disagree on the review requirement of opening another file handle on mmap, and on the requirement of expanding this PR into re-writing rammaps or changing other fs parts which are working. I have now already explained why those things should not be done in this PR, many times.
So I won't be doing those, feel free to close this PR if it is not accepted. I am open to relevant review comments still of course.

@pkarashchenko @masayuki2009 and @Ouss4  could you continue review this PR?

re-based against current master, and fixed syscall defines. tested again on flat and protected builds.

Shall I just close this PR? I don't think that there is interest in this, nor for the shmfs, so no point keeping this hanging around?

Closing, as

the review is already a mess and I can't comprehend any more what to do with this
this has been stale for a long time, and apparently there is no interest in adding group specific vm lists and "munmap" support to nuttx


DEVEXP-444: Setting "rejectUnauthorized" doesn't seem to work with a self-signed certificate

I expect this to work, but can we add a test to verify. That will also help prevent changing it back again.


Debugger is frozen in 0.16

Hello, I installed elm reactor via the npm installer on a Fedora machine. Though Mario.elm from elm-examples directly works OK when started directly, it’s completely frozen in debug mode. Hitting arrow keys has no effect. Resizing the window doesn’t trigger a redraw:

Other examples do work, but hot reloading doesn’t – as @janraasch described in https://github.com/elm-lang/elm-reactor/issues/157#issuecomment-158879715.

I would love to see this getting fixed. Let me know, if you need more details.

@evancz @rtfeldman perhaps elm-lang/elm-platform is a better place to report this?

Doubt it's npm related. reactor is pretty broken in 0.16 unfortunately :x

I’ve tried installing elm-platform from source – but it still doesn’t work. Same symptoms. :disappointed:
@rtfeldman, would you share an insight into your workflow then? http://git.io/elm-live is a pain in serious apps because it loses state across reloads. Watches also seem to be extremely useful. Do you recommend staying with 0.15.1?

@tomekwi We have a non-SPA with Rails 3 on the backend, so basically everything is recompiled on page load. It's more accurate to say "we're working on it" than that "we're happy with it." :smile: We're in the process of migrating to webpack, and will definitely post something if we get that resolved!

Haha, I know this feeling! Good luck then! I can’t wait!

@janraasch @rtfeldman @evancz
I went ahead and updated git.io/elm-live to be independent of elm-reactor.
It isn’t as fancy as elm-reactor (no hot reloading, no time-travel debugger). But it’s supposed to be more flexible. It’s dead easy to do fancy stuff like custom HTML and CSS.
I don’t know about dynamic backends like Rails. Maybe it could connect with those as well – it probably depends on how the frontend and backend are connected.

Will be done a different way in a future release.


Typo in sandboxproc.exe log stream message

Hi there. While doing some debug on ASP.NET Core app non starting, we noticed this tiny typo in Log Stream output:

2017-09-08T00:27:53 EndSection Done executing InsertOrAppendAttribute
2017-09-08T00:27:53 Successful 'D:\home\SiteExtensions\Microsoft.AspNetCore.AzureAppServices.SiteExtension\applicationHost.xdt' site extension transform
2017-09-08T00:27:53 sandboxproc.exe complete successfully. Ellapsed = 355.00 ms

Shouldn't "Ellapsed" be "Elapsed" with one "l"?

Thanks, the typo is fixed and will be deployed by late October.


White transition screen.

I dont know if this is bug or just not implemented (future request)?
But if you use fluid navigator and inside it you want to pass other stacknavigator ->
navigation transition beetween these screens is white.
Simply put:
Navigate from fluidNavigator to Stacknavigator -> whole transition is white -> after transition ends -> resolve new screen and white disappear.  :)

Hi @samuelgjabel! Thanks for reporting the issue. The FluidNavigator is not ment to be used with nested navigation structures where it holds other navigators - only for transitions between screens.


[ISSUE] Import "databricks.sdk" could not be resolved error in VSCode after sdk installation via pip

After installing the databricks sdk using "pip install databricks-sdk" and all went successfully. I pasted one of the example codes to try out. However I am getting an error on the line:
from databricks.sdk import WorkspaceClient
The error says:
Import "databricks.sdk" could not be resolved
For some reasons, VsCode is unable to see the sdk installation.
I am doing this in VSCode
I am trying this in Windows 10 and Python 3.8.5

not an issue. code editor setup issue.

how did this get resolved, I am also getting the same issue , I ran pip install sdk from command line , yet it was saying that databricks.sdk could not be resolved, later I did pip install , and I am getting syntax error


Is it still being updated?

Is it still being updated?

Hi @qcjxberin , yes I'll maintain it. Do you have any specific requirements? Let me know and see if I can help you.

I'm trying to add .NET 5 support at the moment.

There is no specific requirement at present, I am looking for a suitable solution, and I am also using it under .net 5.

Yes .net standard 2.0 is supported in .net 5 by default. If you have any issues please let me know. Thanks.


Move telemetry cleansing into shared process

Follow up from https://github.com/microsoft/vscode/issues/138153
We do a bunch of cleansing operations so that we lower the chances to accidentally leak PII or any other sensible data to telemetry. This currently happens in the renderer process and therefore can impact performance, esp. startup performance. I also don't know how/if we clean telemetry from other processes, like the main process. Since telemetry is send from the shared process we should do the cleansing there so that even mistakes don't impact startup performance

Yeah, I understand that's nothing for November but generally this should be relatively easy, right? Cleaning is done with a bunch of regular expression and if those can only be created with the renderer help it should be easy to send them over to the shared process, right?


Change API Signature to have the callbacks as last args

Thanks for writing up this plugin. That way I don't have to do that myself :)
I wonder why you chose to have the API signature like that?
Wouldn't permissions.hasPermission(permissions.CAMERA, success, error) be more natural and easier to use? When you don't want to use an error callback you just omit the last arg in your call. In your version of the API you always have to specify the error callback and the most important argument of the function, the permission to check, comes as last argument.
What do you think about changing the signature? It would be a non-breaking change even, since we could easily check if the first argument is a function (old API signature) or a string.

I created a PR #3 for that.

Done and thanks for your contribution.


How can I obtain per route downstream statistics?

Title: How can I obtain per route downstream statistics?
Description:
By default I'm getting the downstream_rq_time histogram in /stats/prometheus but it doesn't include any label to identify the route.
Is there any way to include the route as a label to distinguish the latency per route?

I would like to understand if this wasn't added because the feature wasn't requested or because its performance cost.
If its something we want to add out of the box I would like to work on this, in case you think it should be out of the box I would like to implement it for my use case anyway to any hint on where I could introduce this will be appreciated (also any explanation on why I shouldn't be doing this at all if that's your opinion).

Any reason why  access log or tracing won't work for your usecase e.g. to spot e2e latency?

We currently don't have a backend that supports traces so it would be harder to use envoy tracing.
The access log could be useful, it provides the duration and the path but will require more work to parse and export those logs to an opentelemetry grpc receiver (I found this doc but honestly I don't know what is the opentelemetry part here), envoy statistics on the other hand are already provided as prometheus metrics in /stats/prometheus and I can configure a prometheus receiver in my opentelemetry collector so the integration is much simpler.
Do you know if adding the path was considered and discarded or just never requested as a feature?
I'm aware of the performance issue a label with high cardinality can bring to prometheus, besides the fact that won't be useful at all since won't allow us to group by that label, so if the path would be included in the downstream_rq_time we'll have to provide a way to extract the static part, e.g. /books/edit/1 => /books/edit/id

cc @mattklein123 @jmarantz @stevenzzzz might have more context

We already allow per-route stats which are opt-in (it works similar to the virtual cluster feature but on a per-route basis where the route must be named).
We could potentially also opt-in for some downstream stats, but keep in mind that sometimes there is no route depending on where things end up returning/failing, so it would be important to think carefully through what the stats actually mean.
Why can't you use upstream per-route stats and/or virtual clusters?

@mattklein123
I wasn't aware of the virtual_clusters feature, it seems to be what I need but the note says

Virtual clusters are a useful tool, but we do not recommend setting up a virtual cluster for every application endpoint. This is both not easily maintainable and as well the matching and statistics output are not free.

I do want to have metrics per each endpoint in the app, I'm deploying envoy as a sidecar so I would like to have the metric for the sidecar acting as a server and as a client. Besides that many of the paths must be matched using regex to normalize them removing variable path parts, e.g. /books/edit/1 => /books/edit/id (although the regex is simple and backtracking shouldn't be an issue).
Do we have a recommended limit for this? How many endpoints are too much? Is there a way to monitor the cost of such metrics?
Where can I find information about per-route stats which are opt-in?

Do we have a recommended limit for this? How many endpoints are too much? Is there a way to monitor the cost of such metrics?

This is really a matter of your own infra, TSDB provider, etc. You will have to try it out and see. There is no free lunch here.

Where can I find information about per-route stats which are opt-in?

IIRC it was added recently on the route config. There is a way to turn on stats on a per route basis.

https://www.envoyproxy.io/docs/envoy/v1.24.0/api-v3/config/route/v3/route_components.proto.html?highlight=we do recommend setting up stat prefix

@mattklein123 why the per-route feature was added if virtual_clusters was already implemented?
I can't understand in which case I should use one or the other, I'm about to use virtual_clusters but it wasn't an educated choice, I just picked one.

@mattklein123 why the per-route feature was added if virtual_clusters was already implemented?
I can't understand in which case I should use one or the other, I'm about to use virtual_clusters but it wasn't an educated choice, I just picked one.

I can't remember the exact rationale. @ramaraochavali can provide more info.

VirtualClusters are VirtualHost level and supports only header matches where as the stat prefix at route level can help to get stats for various match conditions including path/prefix etc. The route stat prefix works on matched route so no additional matching conditions required like Virtual Clusters


Can we able to run any of the openpilot module in Linux

can we able to run any openpilot module in Linux by fetching or reading the images from in-build laptop Webcam or external camera?
Further, i have Qualcomm 855 board, can i run visiond on thats board? if yes may i know how?

yes, https://github.com/commaai/openpilot/tree/master/tools/webcam
yes, use SNPE for the 855.

Thanks @pd0wm, could you help me run on 855.
I have 855 board with camera, SNPE SDK, please guide me with steps that i have to followed.

Closing as this isn't an issue. The documentation for running on other platforms besides EON/comma two is currently the webcam README linked above.


Pypi not up to date

Hi,
Could you please release the latest version on pypi ? It seems, the last one is 3.12.1.
Thanks in advance

Yes, that seems to be the case. @KristianOellegaard can you create a new PyPi token for the repo and set it as TWINE_PASSWORD. Make sure there are no trailing white spaces. Something must have gone wrong the last time.

ping @KristianOellegaard

Note poetry isnt able to install from tags here
poetry add https://github.com/KristianOellegaard/django-health-check/archive/3.13.3.zip

  ParseVersionError

  Unable to parse "None".

FYI, I released the latest version manually.

The packaging has some bugs.
I found https://github.com/KristianOellegaard/django-health-check/issues/268
Also tests are not in the sdist, which would be ok, except that setuptools-scm also fails when using GitHub tarballs which do include tests.

From https://github.com/KristianOellegaard/django-health-check/runs/1655033942 I see why this issue is still open.
2021-01-06T07:44:03.7864432Z ##[group]Run python -m twine upload dist/*
2021-01-06T07:44:03.7865109Z python -m twine upload dist/*
2021-01-06T07:44:03.7908613Z shell: /bin/bash -e {0}
2021-01-06T07:44:03.7909024Z env:
2021-01-06T07:44:03.7909566Z   pythonLocation: /opt/hostedtoolcache/Python/3.9.1/x64
2021-01-06T07:44:03.7910324Z   LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.1/x64/lib
2021-01-06T07:44:03.7910904Z   TWINE_USERNAME: __token__
2021-01-06T07:44:03.7911330Z   TWINE_PASSWORD:
2021-01-06T07:44:03.7911735Z ##[endgroup]
2021-01-06T07:44:04.2446610Z Uploading distributions to https://upload.pypi.org/legacy/
2021-01-06T07:44:04.2448617Z Uploading django_health_check-3.16.2-py2.py3-none-any.whl
2021-01-06T07:44:04.2449441Z
2021-01-06T07:44:04.4424897Z   0%|          | 0.00/41.4k [00:00<?, ?B/s]
2021-01-06T07:44:04.4429370Z 100%|██████████| 41.4k/41.4k [00:00<00:00, 214kB/s]
2021-01-06T07:44:04.4430252Z NOTE: Try --verbose to see response content.
2021-01-06T07:44:04.4441850Z HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
2021-01-06T07:44:04.4443571Z Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.
2021-01-06T07:44:04.4705703Z ##[error]Process completed with exit code 1.

I guess any PyPI package maintainer can generate a publishing token but only @KristianOellegaard can install it in this repository? Maybe its time to move to a little organization structure?
I see new releases show up regularly on PyPI. Are releases still being published manually or are they being conducted in other CI systems?

@codingjoe updated - sorry missed notification. I have added the secret now but I can't figure out how to re-run the action to release it.

@KristianOellegaard Given that the releases have been published to PyPI by other means, I bet attempting to re-run those actions would fail. Maybe it is better to wait for the next release?
Otherwise maybe publishing a post-release would be appropriate to test the token so this issue can be safely closed now. 3.16.2.post1 according to https://www.python.org/dev/peps/pep-0440/#post-releases ?

Thanks, I tested it, it work: https://github.com/KristianOellegaard/django-health-check/runs/1927527061?check_suite_focus=true


fix: properly retrieve window when clicking DevMenu action

Summary:
This PR fixes the retrieval of RCTKeyWindow when clicking either "Show Perf Monitor" or "Configure bundler". For some reason, the window was nil when we were calling this method in between closing the Dev Menu. Adding 0ms timer executes this code later (next loop) and thanks to this the window is properly retrieved.

Related PR upstream: https://github.com/facebook/react-native/pull/42891


Consider storing state of which extra credit tests are enabled

I think that if I implement an extra credit feature, I'll want those tests enabled every other time I run the test script, especially if later chapters add more tests for old extra credit features (e.g., Ch 7 implements new tests for the goto extra credit from Ch 6).
It would be nice if instead of passing each individual extra credit flag to the script every time I run it, I could run something like
test_compiler --enable-extra-credit goto

That would cause the script to enable the goto tests for all future runs of the script. And then a corresponding --disable-extra-credit flag that would reverse the change.

I like this idea! I think it would be easy enough to store a list of enabled features in an .extra-credit file in the root of the repo.


Update ElphyIO

This PR readds ElphyIO to the standard list of IOs, updates it to be compatible with the current python versions and adds very basic tests. For now the tests are only checking if data objects were create, but do not check the data values loaded. Here I am missing the time for implementation as well as an alternative system to read elphy files for comparison.
@samuelgarcia @apdavison Do you think this is still enough to keep Elphy in the list of supported IOs despite #950 ?
I did not look into #332 yet, as there's no link to the mentioned alternative implementation.

Hello @JuliaSprenger! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file neo/io/elphyio.py:

Line 4232:100: E501 line too long (101 > 99 characters)

In the file neo/test/iotest/test_elphyio.py:

Line 31:1: E305 expected 2 blank lines after class or function definition, found 1
Line 32:20: W292 no newline at end of file


Dont use dn resolver

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report

Merging #167 (d75eede) into master (ec25d2b) will decrease coverage by 16.01%.
The diff coverage is 81.81%.

:exclamation: Current head d75eede differs from pull request most recent head eda5d65. Consider uploading reports for the commit eda5d65 to get more accurate results

@@             Coverage Diff             @@
##           master     #167       +/-   ##
===========================================
- Coverage   53.56%   37.55%   -16.02%
===========================================
  Files         142      139        -3
  Lines       16085    15992       -93
===========================================
- Hits         8616     6005     -2611
- Misses       6979     9595     +2616
+ Partials      490      392       -98

Flag
Coverage Δ

1.14.x
27.60% <ø> (+0.04%)
:arrow_up:

1.15.x
27.60% <ø> (+0.04%)
:arrow_up:

1.16.x
?

1.17.x
37.55% <81.81%> (-16.02%)
:arrow_down:

connection
14.64% <81.81%> (+0.06%)
:arrow_up:

discovery
13.80% <81.81%> (+0.06%)
:arrow_up:

e2e
22.13% <81.81%> (-24.64%)
:arrow_down:

integration
22.13% <81.81%> (-24.64%)
:arrow_down:

macOS-latest
?

ratelimiter
16.29% <81.81%> (+0.06%)
:arrow_up:

scripting
16.69% <81.81%> (+0.06%)
:arrow_up:

table
?

ubuntu-latest
37.55% <81.81%> (-16.12%)
:arrow_down:

unit
27.60% <ø> (+0.04%)
:arrow_up:

windows-latest
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

config/config.go
84.61% <76.47%> (-4.28%)
:arrow_down:

internal/conn/conn.go
64.83% <100.00%> (-11.00%)
:arrow_down:

trace/scheme_gtrace.go
0.00% <0.00%> (-100.00%)
:arrow_down:

internal/balancer/list/list.go
0.00% <0.00%> (-90.00%)
:arrow_down:

internal/repeater/repeat.go
0.00% <0.00%> (-88.58%)
:arrow_down:

internal/deadline/context.go
0.00% <0.00%> (-80.00%)
:arrow_down:

scheme/config/config.go
12.50% <0.00%> (-79.17%)
:arrow_down:

internal/table/statement.go
0.00% <0.00%> (-75.00%)
:arrow_down:

log/table.go
0.68% <0.00%> (-72.83%)
:arrow_down:

internal/cluster/context.go
28.57% <0.00%> (-71.43%)
:arrow_down:

... and 55 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec25d2b...eda5d65. Read the comment docs.


Make loaders public

Fixes #32.

Also made PostcardAssetSaver public for the same reason

Please add doc comments to the new public items.

On it

Done!

Oh wait, I need PostcardAssetSaver to be constructable, because LoadTransformAndSave takes a value. I'll impl Default for it


link stops working if multiline

This markdown works for me:
This is a single line with a [link](http://google.com)
But this markdown does not:
This is a single line with a [link](http://google.com) but now that it is longer it does not.
The issue seems to happen once the line wraps. The formatting changes to shrink from the normal paragraph spacing to more condensed text (which I don't want either) and the link still shows the blue highlight but clicking on it does not do anything anymore.
If I remove the link, the formatting goes back to the normal larger line spacing. So something is happening if there is both a link and text that wraps to more than one line. How can we fix this / get links to work if they are within a paragraph of text?

Hi @lukemadera can you confirm if you're still experiencing this issue with the latest version of flutter and flutter_markdown?
If you are, kindly provide a minimal complete reproducible code sample
Thank you

Thanks @danagbemava-nc I haven't worked on that project for about 6 months now but if I get back to it I'll try!

@lukemadera Kindly let me know whenever you're able to.

I can confirm both links are highlighted and if you wanna open the link you need to call url_launcher under onTapLink

minimal code sample
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import '../shared/markdown_demo_widget.dart';

// ignore_for_file: public_member_api_docs

const String _data = '''
# Minimal Markdown Test
---
This is a simple Markdown test. Provide a text string with Markdown tags
to the Markdown widget and it will display the formatted output in a scrollable
widget.

This is a single line with a [link](http://google.com)

This is a single line with a [link](http://google.com) but now that it is longer it does not.

## Section 1
Maecenas eget **arcu egestas**, mollis ex vitae, posuere magna. Nunc eget
 aliquam tortor. Vestibulum porta sodales efficitur. Mauris interdum turpis
 eget est condimentum, vitae porttitor diam ornare.

### Subsection A
Sed et massa finibus, blandit massa vel, vulputate velit. Vestibulum vitae
venenatis libero. ***Curabitur sem lectus, feugiat eu justo in, eleifend
accumsan ante.*** Sed a fermentum elit. Curabitur sodales metus id mi ornare,
in ullamcorper magna congue.
''';

const String _notes = """
# Minimal Markdown Demo
---

## Overview

The simplest use case that illustrates how to make use of the
flutter_markdown package is to include a Markdown widget in a widget tree
and supply it with a character string of text containing Markdown formatting
syntax. Here is a simple Flutter app that creates a Markdown widget that
formats and displays the text in the string _markdownData. The resulting
Flutter app demonstrates the use of headers, rules, and emphasis text from
plain text Markdown syntax.

## Usage

The code sample below demonstrates a simple Flutter app with a Markdown widget.

import 'package:flutter/material.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
const String _markdownData = """
Minimal Markdown Test

This is a simple Markdown test. Provide a text string with Markdown tags
to the Markdown widget and it will display the formatted output in a
scrollable widget.
Section 1
Maecenas eget arcu egestas, mollis ex vitae, posuere magna. Nunc eget
aliquam tortor. Vestibulum porta sodales efficitur. Mauris interdum turpis
eget est condimentum, vitae porttitor diam ornare.
Subsection A
Sed et massa finibus, blandit massa vel, vulputate velit. Vestibulum vitae
venenatis libero. Curabitur sem lectus, feugiat eu justo in, eleifend
accumsan ante. Sed a fermentum elit. Curabitur sodales metus id mi
ornare, in ullamcorper magna congue.
""";
void main() {
runApp(
MaterialApp(
title: "Markdown Demo",
home: Scaffold(
appBar: AppBar(
title: const Text('Simple Markdown Demo'),
),
body: SafeArea(
child: Markdown(
data: _markdownData,
),
),
),
),
);
}
""";

class MinimalMarkdownDemo extends StatelessWidget
    implements MarkdownDemoWidget {
  const MinimalMarkdownDemo({Key? key}) : super(key: key);

  static const String _title = 'Minimal Markdown Demo';

  @override
  String get title => MinimalMarkdownDemo._title;

  @override
  String get description => 'A minimal example of how to use the Markdown '
      'widget in a Flutter app.';

  @override
  Future<String> get data => Future<String>.value(_data);

  @override
  Future<String> get notes => Future<String>.value(_notes);

  @override
  Widget build(BuildContext context) {
    return  MarkdownBody(
      data: _data,
  onTapLink: (text, href, title) {
    print(href);
  },
      styleSheet: MarkdownStyleSheet.fromTheme(Theme.of(context)).copyWith(
        blockquote: const TextStyle(color: Colors.red, fontSize: 32),
        blockquotePadding: const EdgeInsets.all(100),
      ),

    );
  }
}

Closing, as this isn't an issue with flutter_markdown  itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Remove meaningless statement override in LaunchEngine

Why are the changes needed?

By default, the statement is opType, remove the meaningless statement override in LaunchEngine.
The statement value: "LAUNCH_ENGINE" => "LaunchEngine"
How was this patch tested?
Pass existing UT.

Codecov Report

Merging #3077 (c9b3aa3) into master (ce72a50) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##             master    #3077      +/-   ##
============================================
+ Coverage     51.31%   51.32%   +0.01%
  Complexity        6        6
============================================
  Files           458      458
  Lines         25375    25377       +2
  Branches       3540     3541       +1
============================================
+ Hits          13020    13024       +4
+ Misses        11114    11111       -3
- Partials       1241     1242       +1

Impacted Files
Coverage Δ

...ala/org/apache/kyuubi/operation/LaunchEngine.scala
86.36% <ø> (-0.60%)
:arrow_down:

...apache/kyuubi/engine/JpsApplicationOperation.scala
79.41% <50.00%> (-4.46%)
:arrow_down:

...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala
78.00% <0.00%> (-4.00%)
:arrow_down:

...g/apache/kyuubi/operation/BatchJobSubmission.scala
77.91% <0.00%> (ø)

...yuubi/server/metadata/jdbc/JDBCMetadataStore.scala
89.96% <0.00%> (+0.69%)
:arrow_up:

...ache/kyuubi/operation/KyuubiOperationManager.scala
82.19% <0.00%> (+1.36%)
:arrow_up:

.../org/apache/kyuubi/operation/KyuubiOperation.scala
69.01% <0.00%> (+1.40%)
:arrow_up:

.../org/apache/kyuubi/session/KyuubiSessionImpl.scala
77.27% <0.00%> (+2.27%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0857786...c9b3aa3. Read the comment docs.

thanks, merged to master


[CAPI] Add comments for tizen privileges

Add commnets for privileges which might be required in case of saving the model
to a file.
Self evaluation:

Build test: [x]Passed [ ]Failed [ ]Skipped
Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #431. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.


An error occurred in MPI_Init_thread when running sqlcoder

https://huggingface.co/defog/sqlcoder2
Can sqlcoder2 (based on starcoder) be run directly? I ran the code according to starcoder's example, but the following error message appeared:
python3 ../run.py --engine_dir sqlcoder_outputs_tp1 --tokenizer_dir /home/admin/code/sqlcoder2  --input_text "how many students in the school？"---max_output_len 200 --no_add_special_tokens
[TensorRT-LLM][WARNING] Parameter version cannot be read from json:
[TensorRT-LLM][WARNING] [json.exception.out_of_range.403] key 'version' not found
[TensorRT-LLM][WARNING] Parameter pipeline_parallel cannot be read from json:
[TensorRT-LLM][WARNING] [json.exception.out_of_range.403] key 'pipeline_parallel' not found
[TensorRT-LLM][WARNING] Parameter mlp_hidden_size cannot be read from json:
[TensorRT-LLM][WARNING] [json.exception.out_of_range.403] key 'mlp_hidden_size' not found
[TensorRT-LLM][WARNING] [json.exception.type_error.302] type must be number, but is null
[TensorRT-LLM][WARNING] Optional value for parameter max_num_tokens will not be set.
[TensorRT-LLM][INFO] Initializing MPI with thread mode 1
*** An error occurred in MPI_Init_thread
*** on a NULL communicator
*** MPI_ERRORS_ARE_FATAL (processes in this communicator will now abort,
***    and potentially your MPI job)
[localhost.localdomain:204388] Local abort before MPI_INIT completed completed successfully, but am not able to aggregate error messages, and not able to guarantee that all other processes were killed!

Please follow the issue template to file issue, thank you for cooperation.

Close this one.


Web component variant

Looks like this project/pattern could be easily ported to Polymer web components, which also have component states and life-cycle event handlers, props etc. How about that?
Recently Polymer now supports ES2015 where you can define a Polymer component as a regular javascript class, very similar to a React component. All these component frameworks in the end converge to similar patterns and architecture :)

Sounds cool. Can you get me some links/docs about defining a Polymer component as a JavaScript class?

Try searching Polymer ES2015 recipe or look for polymer starter kit plus ;)
Also a recent talk at Google Polymer Conference, Amsterdam by Eric Bidel covering this.

Polymer element: Lifecycle and callbacks
https://www.polymer-project.org/1.0/docs/devguide/registering-elements.html
You can see a class example here:
https://github.com/kristianmandrup/polymer-starter-kit-plus/blob/master/app/elements/my-greeting/my-greeting.html
    class MyGreeting {
      beforeRegister() {
        this.is = 'my-greeting';
        this.properties = {
          greeting: {
            type: String,
            value: 'Welcome!',
            notify: true
          }
        };
      }
    }

    Polymer(MyGreeting);

Cool. I'll dig into it later :)


Require click on option to select not Working

Describe the bug
With 'Require click on option to select' checked the radial is displayed, but disappears when the hotkey is released.  Tried on all 4 menu items.
To Reproduce
Steps to reproduce the behavior:

Do 'Ensure 'Require click on option to select' is checked...'
Then do 'use hotkey to display radial in center or on mouse...'
Release hot key
Radial disappears without a radial segment being clicked on

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System configuration (please fill in):

OS: [e.g. Windows 10]
GPU: [e.g. GTX1080]
Chainloading, if any [e.g. arcdps -> GW2Radial -> GW2Hook]
I used GW2-UOAOM-v1.4.3-1 to set up all but arcdps uploader, d912pxy, GW2Radial (d3d9), libimgui, SelectRenderer

Additional context
First time using GW2Radial - may be doing something wrong.

OS: Win 10 Professional
GPU: NVIDIA GeGorce GTX 1060 6GB


autosomal recessive cutis laxa type 2, classic type (MONDO:0009054), superclasses

Follow on from https://github.com/monarch-initiative/mondo/issues/3332
It seems odd that
autosomal recessive cutis laxa type 2, classic type (MONDO:0009054)
is a disorder of glycosylation.
It has 3 glycosylation parentages:
is_a congenital disorder of glycosylation with neurological involvement
is_a congenital disorder of glycosylation-related bone disorder
is_a congenital disorder of glycosylation with skin involvement
is this classification correct?
(it seems odd because the vacuolar ATPase isn't really related to glycosylation pathway- I looked through the list of phenotypes and I could not see anything mentioning glycosylation defects, although  the phenotypes "cutis laxis" is sometimes  due to glycosylation defects)

Thanks @ValWood.
Reviewing this class, I think we can exclude several parents on this term:
exclude superclassOf:

[ ] 'congenital disorder of glycosylation with neurological involvement'
[ ] 'congenital disorder of glycosylation with skin involvement'
[ ] 'congenital disorder of glycosylation-related bone disorder'
[ ] 'metabolic disease with epilepsy'
[ ] 'syndromic neurometabolic disease with non-X-linked intellectual disability'

it seems like this has already been addressed, these terms are no longer parents. Closing.


[DO NOT MERGE] Testing GitHub Comment task

No issues found in Microsoft.Bot.Builder.dll
No issues found in Microsoft.Bot.Builder.AI.Luis.dll
No issues found in Microsoft.Bot.Builder.AI.QnA.dll
No issues found in Microsoft.Bot.Builder.ApplicationInsights.dll
No issues found in Microsoft.Bot.Builder.Azure.dll
No issues found in Microsoft.Bot.Builder.Dialogs.dll
No issues found in Microsoft.Bot.Builder.TemplateManager.dll
No issues found in Microsoft.Bot.Configuration.dll
No issues found in Microsoft.Bot.Connector.dll
No issues found in Microsoft.Bot.Schema.dll

No issues found in Microsoft.Bot.Builder.dll
No issues found in Microsoft.Bot.Schema.dll


WIP JAMES-2586 PostgresMailboxAnnotationDAO and Mapper

Just started last week on it... Not much done yet

new PR https://github.com/apache/james-project/pull/1822

Let me close this then.


How to run function?

Hello,
firstly I want to thank you for your efforts.
Back to topic:
Is it possible to evaluate following script:
function myFunction() { alert(\"Hello! I am an alert box!\");} ?
I defined the function "alert" via
  engine.SetGlobalFunction("alert", new Func<string, int>((p) =>
          {
              MessageBox.Show(p);
              return 1;
          }));

Executing the expression alert(\"Hello World\"); works fine.
But when trying to evaluate the function the result is "undefined".
Is it possible to fix this somehow or extract the content of each function and executing then one by one?
Thanks in advance

Okay got it:
   var engine = new Jurassic.ScriptEngine();
            engine.SetGlobalFunction("alert", new Func<string, int>((p) =>
            {
                Console.WriteLine(p);
                return 1;
            }));

            Console.WriteLine(engine.Evaluate("function myFunction() { alert(\"Hello! I am an alert box!\");}"));

            Console.WriteLine(engine.CallGlobalFunction("myFunction"));

Glad to hear it's working :-)


FirebaseApp has not been initialized properly.

W/System.err: java.io.FileNotFoundException:/storage/emulated/0/opendatakit/default/config/assets/google-services.json (No such file or directory)
W/System.err:     at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:200)
at java.io.FileInputStream.(FileInputStream.java:150)
at org.odk.odknotifications.Activities.MainActivity.loadJSONFromAsset(MainActivity.java:134)
at org.odk.odknotifications.Activities.MainActivity.readConfigFile(MainActivity.java:457)
at org.odk.odknotifications.Activities.MainActivity.requestStoragePermission(MainActivity.java:494)
at org.odk.odknotifications.Activities.MainActivity.onCreate(MainActivity.java:97)

It couldn't find google-services.json because the server you used wasn't configured by skunkworks-parrot.
@DreamyPhobic Do you want to work on this issue? Maybe provide an error dialog when the necessary file is missing.

Yeah sure...

I was trying hard to setup skun


[Question] Auto Install dependency app

Hi,
Will it be possible to install a dependency app automatically ?
As I have an app which will give some functionalities commonly used by others, I want to prevent installation Errors by detecting if the app which gives the dependencies is well installed, by auto-download it if it isn't yet.
Is a feature like that possible in a cloud perspective ?

This is already the implemented system behavior if you install apps from AppSource.


Phonetic search demo issue

I am trying the phonetic search demo but it does not seem to recognize words. The keyphrase, digits and weather demos seem to work reasonably. To start the phonetic search demo, I say "phones" in the menu and then I say something simple like "hello world" but it outputs text such as "SIL T EH  Y OW". Is there something I am doing wrong or is the model not setup properly or is this feature still in the works?

You can share raw files and logcat output to get help on this issue.

I am unable to attach the raw files but I have attached the log since the time i said "phones"
log.txt

You can share raw file on Google Drive and give here a link.

I have shared the files here:
https://drive.google.com/open?id=0B9dqUt7kF6fRTkhqYm5tRVRjSHM


Schema created with 'createUniqueFieldSchema' stops working if added .optional()

// components/form.ts
import { createTsForm, createUniqueFieldSchema } from '@ts-react/form'
import { z } from 'zod'

import { NumberField } from './NumberField'
import { TextField } from './TextField'

export const StringSchema = createUniqueFieldSchema(z.string(), 'string')
export const NumberSchema = createUniqueFieldSchema(z.number(), 'number')

const mapping = [
  [StringSchema, TextField],
  [NumberSchema, NumberField],
] as const

export const Form = createTsForm(mapping)

// pages/index.tsx
import { z } from 'zod'

import { Form, NumberSchema, StringSchema } from '../components/form'

const schema = z.object({
  name: StringSchema.optional(), // if .optional is added to a schema it stops working
  age: NumberSchema,
})

export function Home() {
  return (
    <Form
      schema={schema}
      onSubmit={(v) => {
        console.log(v)
      }}
      formProps={{
        className: 'flex flex-col gap-4 px-4 max-w-5xl lg:grid lg:grid-cols-2',
      }}
    />
  )
}

Are you sure you're on the latest version 1.1.3?
This was fixed recently and is working fine on my end.

Gonna close b/c I wasn't able to reproduce any issue with your code on the latest version. I added a test case to test for this going forward.
Reopen or leave a comment w/ reproduction if you're still having an issue after upgrading to the latest 1.1.3.
Thanks

I have the same issue working with v1.2.0... I will add a code sandbox that reproduces the error.
Code sandbox that reproduces the error with minimal setup.
https://codesandbox.io/embed/react-ts-form-optional-error-3oz8lk?fontsize=14&hidenavigation=1&theme=dark

Code example, just in case.
const MAX_FILE_SIZE =<PHONE_NUMBER>000;

export const FileSchema = createUniqueFieldSchema(
  z
    .any()
    .refine((value) => !!value && !!value.file, "Upload a file is required.")
    .refine(
      (value) => value?.file?.size <= MAX_FILE_SIZE,
      `Max file size is 5MB.`
    ),
  "FileSchema"
);

const FileSchemaComponent = () => <div>{`FileSchema :)`}</div>;

// create the mapping
const mapping = [[FileSchema, FileSchemaComponent]] as const; // 👈 `as const` is necessary

// A typesafe React component
const MyForm = createTsForm(mapping);

// Creates Schema
const schema = z.object({
  file: FileSchema.optional() // if .optional is added to a schema it stops working
  // fileWithDescript: FileSchema.optional().description('Label // Description') // if .optional is added to a schema it stops working
});


MeshViewer: Slider without parent

open more than one mesh stay in 2D mode, switch the view orientation if needed.
-> a widget without parent will appear with a slider to move through the slices.

https://media.giphy.com/media/12NUbkX6p4xOO4/giphy.gif

I think I have found a sol.  I have published it on my fork.

It is not working for me

For me it works but I don't know exactly why ? How I came to this solution ? I have seen that more sliders than expected are instantiated and this after a call to updateWidgets.
In order to understand exactly what is happening I have done more investigation yesterday, and I have noticed that there might have also some issues with nullptr test. So I'm still investigating. Did you recompile medInria ?  :)

Make should be enough for this kind of modififcations no?

The problem appears at commit SHA e40075a44fa0c in file vtkDataMeshInteractor.cpp
I did some changes that created this bug (hiding the slicing parameter in 3D view).
Deep down I knew I was the progenitor of this atrocity... I'll put it down, for good.


wifi: Unable to connect to EAP-TTLS-MSCHAPv2 and EAP-PEAP-MSCHAPv2 using nrf7002dk

Describe the bug
We're currently testing Wi-Fi connectivity with enterprise methods using FreeRADIUS as an authentication server and the wifi shell sample to connect (on a nrf7002dk). We are on the master branch of Zephyr, commit
We also have trouble connecting via EAP-TTLS-MSCHAPv2 and EAP-PEAP-MSCHAPv2.
To Reproduce

1. Generate a fresh set of certificates on freeRADIUS
The CA and the certificates that we're using were generated on the freeRADIUS server, using the provided make commands. We are using freeRADIUS v3.2.6. The steps are:

Modify ca.cnf, server.cnf and client.cnf files
Generate .pem/.crt/.key files with make ca, make server and make client
Copy the ca.pem, client.crt and client.key to zephyr/samples/net/wifi/test_certs.

build and flash with:
west build -b nrf7002dk/nrf5340/cpuapp -- -DEXTRA_CONF_FILE=overlay-enterprise.conf
west flash

Attempt to connect:
# EAP-TTLS-MSCHAPv2
wifi connect -s "MikroTikChateau-WLAN-2" -c 108 -k 14 -I "user123" -P "password123"

# EAP-PEAP-MSCHAPv2
wifi connect -s "MikroTikChateau-WLAN-2" -c 108 -k 12 -I "user123" -P "password123"

Te connection request fails:
Connection request failed (1)

Expected behavior
We would expect the connection to be successful, since we can connect from a Ubuntu PC just fine, using the following:

Impact
Showstopper. We would expect this to work.
Logs and console output
/
Environment (please complete the following information):

OS: Ubuntu 22.04
Zephyr master branch- commit 28796076d84056d085e5a4ebf213dafbfe56202a

Additional context
/

@MaochenWang1 @fengming-ye  can you please take a look at this?

Do you enable these?
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y CONFIG_WIFI_NM_WPA_SUPPLICANT_EAPOL=y CONFIG_EAP_TLS=y CONFIG_EAP_PEAP=y CONFIG_EAP_TTLS=y CONFIG_EAP_MSCHAPV2=y

@MaochenWang1  FYI this was done on nRF7002 but we haven't tried it ourselves :), so, if you can confirm that the procedure is correct and it works on RW612 then I can give it a shot on NRF70 and see if something is amiss.

@TjazVracko can you please share the WPA supplicant debug logs? CONFIG_WIFI_NM_WPA_SUPPLICANT_LOG_LEVEL_DBG=y

FYI @Rex-Chen-NXP

@MaochenWang1, the following are enabled by default:
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ALT=y
CONFIG_WIFI_NM_WPA_SUPPLICANT_CRYPTO_ENTERPRISE=y
CONFIG_WIFI_NM_WPA_SUPPLICANT_EAPOL=y
CONFIG_EAP_TLS=y

which is sufficient for a successful TLS auth.

When we enabled CONFIG_EAP_TTLS=y we encountered the following error:
in function `eap_ttls_phase2_request_chap':
/home/tibor/Work/my-workspace/modules/lib/hostap/src/eap_peer/eap_ttls.c:810: undefined reference to `chap_md5'

After that, we enabled CONFIG_EAP_MSCHAPV2=y, and the code compiled successfully. We can confirm that  TTLS authentication also went successfully.

Currently, we are still investigating how to authenticate using EAP-PEAP-MSCHAPv2. The authentication process cycles infinitely in approx. one minute intervals, the RADIUS server does not report any errors, and the WiFi shell repeatedly indicates a "Connected" state.  However, when running the wifi status command, we see:
Status: successful
==================
State: SCANNING

We will try again with logging enabled and share soon.

Just for clarity, @TiborSovilj is my coworker who is testing this :)

@krish2718 Should I open a new issue for this?

No need, we don't need bugs for each issue, its discretionary.

But I can not say if this may hint at a bigger problem and that the whole CMakeLists.txt should be checked again (each specific CONFIG_EAP_* must add all of its dependencies.

TTLS and PEAP are newly added and much testing hasn't been done, your fix LGTM.

FYI this was done on nRF7002 but we haven't tried it ourselves :), so, if you can confirm that the procedure is correct and it works on RW612 then I can give it a shot on NRF70 and see if something is amiss.

Yes, in progress. Will update the result.

Currently, we are still investigating how to authenticate using EAP-PEAP-MSCHAPv2. The authentication process cycles infinitely in approx. one minute intervals, the RADIUS server does not report any errors, and the WiFi shell repeatedly indicates a "Connected" state. However, when running the wifi status command, we see:

Status: successful
==================
State: SCANNING
We will try again with logging enabled and share soon.

Please share WPA supplicant debug logs as requested.

Hi @All both sap and sta test base on 2 RW612 boards, cmds show as below.
【EAP_TLS】:
WPA2:
date set 2024-10-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever
WPA3 suite B:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1 -S 1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1 -S 2
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever -S 2
【PEAPv0-MSCHAPv2】:
WPA2:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I nxp -P wireless
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I nxp -P wireless
WPA3 suite B:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I nxp -P wireless  -S 1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I nxp -P wireless  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I nxp -P wireless  -S 2
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I nxp -P wireless  -S 2
【EAP-PEAP-GTC】:
WPA2:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever -a client1 -I nxp -P wireless
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I nxp -P wireless
WPA3 suite B:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever  -a client1 -I nxp -P wireless  -S 1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I nxp -P wireless  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever -a client1 -I nxp -P wireless  -S 2
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I nxp -P wireless  -S 2
【EAP-TTLS-MSCHAPv2】:
WPA2:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I nxp -P wireless
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I nxp -P wireless
WPA3 suite B:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I nxp -P wireless  -S 1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I nxp -P wireless  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I nxp -P wireless  -S 2
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I nxp -P wireless  -S 2
【EAP-PEAP-TLS】:
WPA2:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever -a client1 -I nxp -P wireless
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I nxp -P wireless
WPA3 suite B:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever -a client1 -I nxp -P wireless  -S 1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I nxp -P wireless  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever  -a client1 -I nxp -P wireless  -S 2
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I nxp -P wireless  -S 2
【EAP_TLS_SHA256】:
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B8
wifi ap enable -s EapNet_AP -c 149 -k 16 -w 2 -K whatever -I client1
date set 2024-09-27 00:00:00
nxp_wifi set-mac 00:50:43:02:FE:B9
wifi connect -s EapNet_AP -c 149 -k 16 -w 2 -a client1 -K whatever

Hi all, both sap and sta test base on 2 boards.
【EAP_TLS】:
WPA2:
date set 2024-10-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever
WPA3 suite B:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1 -S 1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 7 -w 2 -K whatever -I client1 -S 2
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 7 -w 2 -a client1 -K whatever -S 2
【PEAPv0-MSCHAPv2】:
WPA2:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I user -P pswd
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I user -P pswd
WPA3 suite B:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I user -P pswd  -S 1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I user -P pswd  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 12 -w 2 -K whatever -V 0  -a client1 -I user -P pswd  -S 2
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 12 -w 2 -a client1 -K whatever -V 0 -I user -P pswd  -S 2
【EAP-PEAP-GTC】:
WPA2:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever -a client1 -I user -P pswd
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I user -P pswd
WPA3 suite B:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever  -a client1 -I user -P pswd  -S 1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I user -P pswd  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 13 -w 2 -K whatever -a client1 -I user -P pswd  -S 2
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 13 -w 2 -a client1 -K whatever -I user -P pswd  -S 2
【EAP-TTLS-MSCHAPv2】:
WPA2:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I user -P pswd
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I user -P pswd
WPA3 suite B:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I user -P pswd  -S 1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I user -P pswd  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 14 -w 2 -K whatever  -a client1 -I user -P pswd  -S 2
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 14 -w 2 -a client1 -K whatever -I user -P pswd  -S 2
【EAP-PEAP-TLS】:
WPA2:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever -a client1 -I user -P pswd
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I user -P pswd
WPA3 suite B:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever -a client1 -I user -P pswd  -S 1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I user -P pswd  -S 1
WPA3 suite B-192:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 15 -w 2 -K whatever  -a client1 -I user -P pswd  -S 2
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 15 -w 2 -a client1 --key1-pwd whatever  --key2-pwd whatever -I user -P pswd  -S 2
【EAP_TLS_SHA256】:
date set 2024-09-27 00:00:00
wifi ap enable -s EapNet_AP -c 149 -k 16 -w 2 -K whatever -I client1
date set 2024-09-27 00:00:00
wifi connect -s EapNet_AP -c 149 -k 16 -w 2 -a client1 -K whatever

@krish2718 PR is here: https://github.com/zephyrproject-rtos/zephyr/pull/82309

@TjazVracko Thanks for the PR, with that is the connection working for you? or are you still seeing the issue above? If yes, please do share WPA supplicant debug logs.

@krish2718  @MaochenWang1
For the EAP-PEAP-MSCHAPv2 method:
uart:~$ wifi connect -s MikroTikChateau-WLAN-2 -c 108 -k 12 -a user-tls -K sanri
 -I user123 -P password123
Connection requested
--- 267 messages dropped ---
[00:09:07.391,326] <dbg> wpa_supp: wpa_printf_impl: argv[1]: 0
[00:09:07.392,059] <dbg> wpa_supp: wpa_printf_impl: wlan0: Control interface command 'SELECT_NETWORK 0'
[00:09:07.392,211] <dbg> wpa_supp: wpa_printf_impl: CTRL_IFACE: SELECT_NETWORK id=0
[00:09:07.392,333] <dbg> wpa_supp: wpa_printf_impl: Fast associate: Old scan results
[00:09:07.392,517] <dbg> wpa_supp: wpa_printf_impl: wlan0: Setting scan request: 0.000000 sec
--- 55 messages dropped ---
[00:09:07.392,944] <dbg> wpa_supp: wpa_printf_impl: wlan0: State: DISCONNECTED -> SCANNING
--- 14 messages dropped ---
[00:09:07.393,096] <dbg> wpa_supp: wpa_printf_impl: Scan SSID - hexdump_ascii(len=22):
[00:09:07.393,127] <dbg> wpa_supp: _wpa_hexdump_ascii:
                                   4d 69 6b 72 6f 54 69 6b  43 68 61 74 65 61 75 2d |MikroTik Chateau-
                                   57 4c 41 4e 2d 32                                |WLAN-2
[00:09:07.393,310] <dbg> wpa_supp: wpa_printf_impl: wlan0: Include wildcard SSID in the scan request
--- 27 messages dropped ---
[00:09:07.393,768] <dbg> wpa_supp: wpa_printf_impl: wlan0: Add radio work 'scan'@0x2003b638
[00:09:07.394,012] <dbg> wpa_supp: wpa_printf_impl: wlan0: First radio work item in the queue - schedule start immediately
[00:09:07.473,480] <dbg> wpa_supp: wpa_printf_impl: RRM: No RRM in network
[00:09:07.487,426] <dbg> wpa_supp: wpa_printf_impl: SME: Association Request IEs - hexdump(len=45): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 d
[00:09:07.508,605] <dbg> wpa_supp: wpa_printf_impl: EAPOL: SUPP_BE entering state IDLE
[00:09:07.508,697] <dbg> wpa_supp: wpa_printf_impl: EAP: EAP entering state INITIALIZE
[00:09:07.508,789] <dbg> wpa_supp: wpa_printf_impl: EAP: EAP entering state IDLE
[00:09:07.509,033] <dbg> wpa_supp: wpa_printf_impl: wlan0: Setting authentication timeout: 10 sec 0 usec
[00:09:07.509,216] <dbg> wpa_supp: wpa_printf_impl: wlan0: Cancelling scan request
[00:09:07.509,429] <inf> wpa_supp: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
[00:09:07.509,918] <dbg> wpa_supp: wpa_printf_impl: Received len: 33, msg_len:33 - Associated with 78:9a:18:86:7a:36->END
[00:09:07.510,162] <dbg> wpa_supp: wpa_printf_impl: Received len: 40, msg_len:40 - CTRL-EVENT-SUBNET-STATUS-UPDATE status=0->END
[00:09:07.510,375] <dbg> wpa_supp: wpa_printf_impl: Event not supported: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
--- 19 messages dropped ---
[00:09:08.505,157] <dbg> wpa_supp: wpa_printf_impl: EAP: EAP entering state SEND_RESPONSE
--- 36 messages dropped ---
[00:09:08.505,249] <dbg> wpa_supp: wpa_printf_impl: EAP: EAP entering state IDLE
[00:09:08.505,371] <dbg> wpa_supp: wpa_printf_impl: EAPOL: SUPP_BE entering state RESPONSE
[00:09:08.505,432] <dbg> wpa_supp: wpa_printf_impl: EAPOL: txSuppRsp
[00:09:08.505,584] <dbg> wpa_supp: wpa_printf_impl: TX EAPOL: dst=78:9a:18:86:7a:36
[00:09:08.505,950] <dbg> wpa_supp: wpa_printf_impl: TX EAPOL - hexdump(len=17): 01 00 00 0d 02 00 00 0d 01 75 73 65 72 2d 74 6c 73
[00:09:08.506,774] <dbg> wpa_supp: wpa_printf_impl: EAPOL: SUPP_BE entering state RECEIVE
[00:09:08.580,780] <dbg> wpa_supp: wpa_printf_impl: Event not supported: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
[00:09:08.581,054] <dbg> wpa_supp: wpa_printf_impl: Received len: 70, msg_len:70 - CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='D
[00:09:08.581,268] <dbg> wpa_supp: wpa_printf_impl: Event not supported: CTRL-EVENT-EAP-STATUS status='accept proposed method' parameter='PEAP'
[00:09:08.581,542] <dbg> wpa_supp: wpa_printf_impl: Received len: 60, msg_len:60 - CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected->END
[00:09:08.581,756] <dbg> wpa_supp: wpa_printf_impl: Event not supported: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
[00:09:08.582,000] <dbg> wpa_supp: wpa_printf_impl: Received len: 48, msg_len:48 - CTRL-EVENT-EAP-FAILURE EAP authentication failed->END
[00:09:08.582,183] <dbg> wpa_supp: wpa_printf_impl: Event not supported: CTRL-EVENT-EAP-FAILURE EAP authentication failed
[00:09:09.509,246] <dbg> wpa_supp: wpa_printf_impl: EAPOL: startWhen --> 0
Connected
--- 16 messages dropped ---
[00:09:10.591,522] <inf> wpa_supp: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MikroTikChateau-WLAN-2" auth_failures=2 duration=20 reason=CONN_FD
--- 27 messages dropped ---
[00:09:10.591,857] <dbg> wpa_supp: wpa_printf_impl: wlan0: Consecutive connection failures: 5 --> request scan in 10000 ms
[00:09:10.592,193] <dbg> wpa_supp: wpa_printf_impl: wlan0: Ignore new scan request for 10.000000 sec since an earlier request is scheduled to trigger
[00:09:10.592,376] <dbg> wpa_supp: wpa_printf_impl: wlan0: WPA: Clear old PMK and PTK
[00:09:10.602,447] <dbg> wpa_supp: wpa_printf_impl: Received len: 48, msg_len:48 - Authentication with 78:9a:18:86:7a:36 timed out.->END
[00:09:10.602,722] <dbg> wpa_supp: wpa_printf_impl: Received len: 76, msg_len:76 - CTRL-EVENT-DISCONNECTED bssid=78:9a:18:86:7a:36 reason=3 locally_D
--- 3 messages dropped ---
[00:09:10.603,088] <dbg> wpa_supp: wpa_printf_impl: Received len: 111, msg_len:111 - CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MikroTikChateau-WLAN-2D
[00:09:10.603,576] <dbg> wpa_supp: wpa_printf_impl: Received len: 111, msg_len:111 - CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="MikroTikChateau-WLAN-2D
--- 11 messages dropped ---
[00:09:10.687,896] <dbg> wpa_supp: wpa_printf_impl: wlan0: Add radio work 'scan'@0x2003b638
[00:09:10.688,140] <dbg> wpa_supp: wpa_printf_impl: wlan0: First radio work item in the queue - schedule start immediately
[00:09:10.688,629] <dbg> wpa_supp: wpa_printf_impl: wlan0: Starting radio work 'scan'@0x2003b638 after 0.000428 second wait
[00:09:10.756,072] <dbg> wpa_supp: wpa_printf_impl: wlan0: BSS: Start scan result update 28
[00:09:10.756,256] <dbg> wpa_supp: wpa_printf_impl: BSS: last_scan_res_used=1/32
[00:09:10.756,439] <dbg> wpa_supp: wpa_printf_impl: wlan0: New scan results available (own=1 ext=0)
[00:09:10.756,866] <dbg> wpa_supp: wpa_printf_impl: wlan0: Radio work 'scan'@0x2003b638 done in 0.068237 seconds
[00:09:10.757,141] <dbg> wpa_supp: wpa_printf_impl: wlan0: radio_work_free('scan'@0x2003b638): num_active_works --> 0
[00:09:10.757,446] <dbg> wpa_supp: wpa_printf_impl: wlan0: Postpone network selection by 20 seconds since all networks are disabled
[00:09:10.757,873] <dbg> wpa_supp: wpa_printf_impl: Received len: 24, msg_len:24 - CTRL-EVENT-SCAN-RESULTS ->END
[00:09:11.509,704] <dbg> wpa_supp: wpa_printf_impl: EAPOL: disable timer tick

With the addition of -w and -V 0 the logs reduce drastically
uart:~$ wifi connect -s MikroTikChateau-WLAN-2 -c 108 -k 12 -w 2 -a user-tls -K
sanri -V 0 -I user123 -P password123
Connection requested
--- 266 messages dropped ---
[00:21:56.407,257] <dbg> wpa_supp: wpa_printf_impl: argv[0]: select_network
[00:21:56.407,348] <dbg> wpa_supp: wpa_printf_impl: argv[1]: 0
[00:21:56.408,081] <dbg> wpa_supp: wpa_printf_impl: wlan0: Control interface command 'SELECT_NETWORK 0'
[00:21:56.408,233] <dbg> wpa_supp: wpa_printf_impl: CTRL_IFACE: SELECT_NETWORK id=0
[00:21:56.408,416] <dbg> wpa_supp: wpa_printf_impl: wlan0: Setting scan request: 0.000000 sec
--- 22 messages dropped ---
[00:21:56.408,874] <dbg> wpa_supp: wpa_printf_impl: wlan0: State: DISCONNECTED -> SCANNING
[00:21:56.408,996] <dbg> wpa_supp: wpa_printf_impl: Scan SSID - hexdump_ascii(len=22):
[00:21:56.409,057] <dbg> wpa_supp: _wpa_hexdump_ascii:
                                   4d 69 6b 72 6f 54 69 6b  43 68 61 74 65 61 75 2d |MikroTik Chateau-
                                   57 4c 41 4e 2d 32                                |WLAN-2
[00:21:56.409,240] <dbg> wpa_supp: wpa_printf_impl: wlan0: Include wildcard SSID in the scan request
[00:21:56.409,698] <dbg> wpa_supp: wpa_printf_impl: wlan0: Add radio work 'scan'@0x2003ae38
[00:21:56.409,942] <dbg> wpa_supp: wpa_printf_impl: wlan0: First radio work item in the queue - schedule start immediately
[00:21:56.482,971] <dbg> wpa_supp: wpa_printf_impl: wlan0: 0: 78:9a:18:86:7a:36 ssid='MikroTikChateau-WLAN-2' wpa_ie_len=0 rsn_ie_len=20 caps=0x431
[00:21:56.483,367] <dbg> wpa_supp: wpa_printf_impl: wlan0:    skip RSN IE - no mgmt frame protection
[00:21:56.483,612] <dbg> wpa_supp: wpa_printf_impl: wlan0:    skip - MFP Required but network not MFP Capable
[00:21:56.483,764] <dbg> wpa_supp: wpa_printf_impl: wlan0: No suitable network found
[00:21:56.484,008] <dbg> wpa_supp: wpa_printf_impl: wlan0: Setting scan request: 5.000000 sec
[00:21:56.484,527] <dbg> wpa_supp: wpa_printf_impl: Received len: 40, msg_len:40 - CTRL-EVENT-BSS-ADDED 1 78:9a:18:86:7a:36->END
[00:21:56.484,863] <dbg> wpa_supp: wpa_printf_impl: Received len: 24, msg_len:24 - CTRL-EVENT-SCAN-RESULTS ->END
[00:21:56.485,168] <dbg> wpa_supp: wpa_printf_impl: Received len: 29, msg_len:29 - CTRL-EVENT-NETWORK-NOT-FOUND ->END

@krish2718  @MaochenWang1
I've uploaded 2 log files for EAP-PEAP_MSCHAPv2 tests.
mschap_logs.txt is based on a wifi connect without -V 0 and -w 2 flags.
mschap_logs_xtra_flags.txt is based on a wifi connect with -V 0 and -w 2 flags.
mschapv2_logs.txt
mschapv2_logs_xtra_flags.txt

@rado17 @sachinthegreen @bama-nordic

TiborSovilj

Hi, TiborSovilj, I have a simple check of the logs from you, and also try the cmds you shared base on RW612 boards, summary from my side:
A. For the [mschapv2_logs.txt], below logs observed, the default configured version as 1,  I think you miss the -V 0 option.
uart:~$ [00:00:59.440,124]  wpa_supp: wpa_printf_impl: EAP-PEAP: Start (server ver=0, own ver=1)
uart:~$ [00:00:59.440,216]  wpa_supp: EAP-PEAP: Failed to select forced PEAP version 1
B. For the [mschapv2_logs_xtra_flags.txt], ,below logs observed,  scan result not matched, I think you should remove the -w 2 option.
uart:~$ [00:01:28.502,563]  wpa_supp: wpa_printf_impl: wlan0:    skip RSN IE - no mgmt frame protection
uart:~$ [00:01:28.502,746]  wpa_supp: wpa_printf_impl: wlan0:    skip - MFP Required but network not MFP Capable
uart:~$ [00:01:28.503,082]  wpa_supp: wpa_printf_impl: wlan0: No suitable network found
Could you try the cmds shared from me few days ago in this issue ticket?
Or you can also try with the below cmd which add -V 0 option based on you shared the cmd for [mschapv2_logs.txt] :
wifi connect -s "MikroTikChateau-WLAN-2" -c 108 -k 12 -a user-tls -K san  -V 0

Hi @krish2718
Should I raise PR, add all the CMDs I shared in this issue ticket to doc/connectivity/networking/api/wifi.rst?

Hi @krish2718 Should I raise PR, add all the CMDs I shared in this issue ticket as demos to doc/connectivity/networking/api/wifi.rst?

We have the main command with an example, IMHO that would suffice.

@Rex-Chen-NXP @krish2718 @TjazVracko
Sorry for the delayed reply,
It turns out that minimal working combination of flags for the EAP-PEAP-MSCHAPv2 is:
wifi connect -s "MikroTikChateau-WLAN-2" -k 12 -I "user123" -P "password123" -V 0

i.e., with -V 0, but without -w 2.
Adding the -a and -K flags made no difference when we attempted to connect, i.e. the authentication was successful regardless.
Thank you for your input.

@TiborSovilj @TjazVracko  is this now working fine?

@krish2718
Here are the logs of the successful attempt on our network:
mschapv2__new.txt
How do we determine the combination of flags required for any given network?
What information about the network do we require, and how does that map to the flags?

How do we determine the combination of flags required for any given network?
What information about the network do we require, and how does that map to the flags?

I don't understand, can you please elaborate on flags?
If you are asking how does the client know the EAP type, then at Wi-Fi level it isn't possible, the scan can only display that the network in 802.1x (EAP), and then it's up to the supplicant and the AAA server to negotiate a particular method by means on NAK.
In Zephyr we only support a single authentication mechanism as it's only an enumeration, but we could add something like EAP_ALL where supplicant enabled all methods and starts with highest and depending on the network AAA server NAK can select one. But this comes at the extra cost of memory as we enable all methods. If this is what you are after, I would suggest to create an enhancement request in Wi-Fi project.

How do we determine the combination of flags required for any given network?
What information about the network do we require, and how does that map to the flags?

I don't understand, can you please elaborate on flags?

Looking at previous replies, I guess by flags you mean the various shell command line options. In that case there isn't a defined rule set, the command line options should be compatible with the network settings (Authenticator/AP, AAA server). E.g., -w 2 means STA is expecting MFP to be enabled by the AP but if it's not it won't connect. And similarly the -V would need to match the PEAP version being used by the network.

@krish2718 Thank you. That makes sense.
So currently, a connection attempt by the device has to match the network and AAA server settings exactly.
If, for example, we only know that the network is EAP-PEAP-MSCHAPv2, we could try all of the combinations of settings until we successfully connect?

Something like EAP_ALL would be very useful. Could it work so that it iterates only over the enabled methods and checks with the AAA server if any of them are supported?

If, for example, we only know that the network is EAP-PEAP-MSCHAPv2, we could try all of the combinations of settings until we successfully connect?

If user configures EAP-PEAP-MSCHAPv2  supplicant will only try that and nothing else.

Something like EAP_ALL would be very useful. Could it work so that it iterates only over the enabled methods and checks with the AAA server if any of them are supported?

Yes, EAP_ALL is useful but need to see how to handle the credentials, we would need all possible credentials from the user for which again he needs knowledge of network (from network admin), which kind of make its moot as security also can also be known with the credentials. But if we take phase1, phase2 certs and passphrases we could then selectively pick based on security method, we can check how supplicant behaves and replicate that.
@MaochenWang1 @Rex-Chen-NXP @jukkar WDYT?

If, for example, we only know that the network is EAP-PEAP-MSCHAPv2, we could try all of the combinations of settings until we successfully connect?
What combinations of settings do you mean?

Hi @TiborSovilj
A. How do we determine the combination of flags required for any given network?
----I guess you want to know how to input the parameters by shell to configure the connection. As @krish2718 explained early( the command line options should be compatible with the network settings), network admin should know the details, for example ssid, EAP type, psk, etc. Then can configure it by shell correctly.
B. What information about the network do we require, and how does that map to the flags?
a. What information about the network do we require
----This question is same as above A.
b. how does that map to the flags?
----shell usage provide simple description.

@Rex-Chen-NXP @MaochenWang1 @krish2718
Thank you for all the answers. I think we have all the knowledge we need now.
We were missing knowledge about the EAP version and MFP.
Since everything seems to work, this issue can be closed.