linguini1 opened a new issue, #19254:
URL: https://github.com/apache/nuttx/issues/19254

   ### Description / Steps to reproduce the issue
   
   The `raspberrypi-pico-w:telnet` configuration fails to connect to a network 
configured via the `wapi` utility, and a `wapi` scan results in a kernel panic.
   
   Full logs:
   ```console
   ABCE
   telnetd [6:100]
   
   NuttShell (NSH) NuttX-13.0.0
   nsh> ls
   /:
    dev/
    proc/
   nsh> ls /dev
   /dev:
    console
    null
    telnet
    ttyS0
    zero
   nsh> ifup wlan0
   ifup wlan0...OK
   nsh> ifconfig
   lo   Link encap:Local Loopback at RUNNING mtu 1518
        inet addr:127.0.0.1 DRaddr:127.0.0.1 Mask:255.0.0.0
   
   wlan0        Link encap:Ethernet HWaddr d8:3a:dd:fe:2f:c6 at UP mtu 576
        inet addr:0.0.0.0 DRaddr:10.0.0.1 Mask:255.255.255.0
   
   nsh> wapi essid wlan0 myssid 1
   nsh> wapi psk wlan0 mypasswd 3
   nsh> ifup wlan0
   ifup wlan0...OK
   nsh> renew wlan0
   ERROR: netlib_obtain_ipv4addr() failed
   nsh> help
   help usage:  help [-v] [<cmd>]
   
       .           cp          expr        mkdir       rm          true        
       [           cmp         false       mkrd        rmdir       truncate    
       ?           dirname     fdinfo      mount       set         uname       
       alias       date        free        mv          kill        umount      
       unalias     df          help        nslookup    pkill       unset       
       arp         dmesg       hexdump     pidof       sleep       uptime      
       basename    echo        ifconfig    printf      usleep      watch       
       break       env         ifdown      ps          source      xd          
       cat         exec        ifup        pwd         test        wait        
       cd          exit        ls          reboot      time        
   
   Builtin Apps:
       dd           getprime     nsh          ping         sh           telnetd 
     
       dumpstack    hello        ostest       renew        telnet       wapi    
     
   nsh> renew wlan0
   ERROR: netlib_obtain_ipv4addr() failed
   nsh> wapi  escan
   Usage:
        wapi show         <ifname>
        wapi scan         <ifname>
        wapi pscan        <ifname>
        wapi scan_results <ifname>
        wapi ip           <ifname> <IP address>
        wapi mask         <ifname> <mask>
        wapi freq         <ifname> <frequency>  <index/flag>
        wapi essid        <ifname> <essid>      <index/flag>
        wapi psk          <ifname> <passphrase> <index/flag> [wpa]
        wapi disconnect   <ifname>
        wapi mode         <ifname>              <index/mode>
        wapi ap           <ifname>              <MAC address>
        wapi bitrate      <ifname> <bitrate>    <index/flag>
        wapi txpower      <ifname> <txpower>    <index/flag>
        wapi country      <ifname> <country code>
        wapi sense        <ifname>
        wapi pta_prio     <ifname>  <index/flag>
        wapi power_save   <ifname>  <on|off>
        wapi help
   
   Frequency Flags:
        [0] WAPI_FREQ_AUTO
        [1] WAPI_FREQ_FIXED
   
   ESSID Flags:
        [0] WAPI_ESSID_OFF
        [1] WAPI_ESSID_ON
        [2] WAPI_ESSID_DELAY_ON
   
   Passphrase algorithm Flags:
        [0] WPA_ALG_NONE
        [1] WPA_ALG_WEP
        [2] WPA_ALG_TKIP
        [3] WPA_ALG_CCMP
   
   Passphrase WPA version:
        [0] WPA_VER_NONE
        [1] WPA_VER_1
        [2] WPA_VER_2
        [3] WPA_VER_3
   
   Operating Modes:
        [0] WAPI_MODE_AUTO
        [1] WAPI_MODE_ADHOC
        [2] WAPI_MODE_MANAGED
        [3] WAPI_MODE_MASTER
        [4] WAPI_MODE_REPEAT
        [5] WAPI_MODE_SECOND
        [6] WAPI_MODE_MONITOR
        [7] WAPI_MODE_MESH
   
   Bitrate Flags:
        [0] WAPI_BITRATE_AUTO
        [1] WAPI_BITRATE_FIXED
   
   TX power Flags:
        [0] WAPI_TXPOWER_DBM
        [1] WAPI_TXPOWER_MWATT
        [2] WAPI_TXPOWER_RELATIVE
   
   pta prio Flags:
        [0] WAPI_PTA_PRIORITY_COEX_MAXIMIZED
        [1] WAPI_PTA_PRIORITY_COEX_HIGH
        [2] WAPI_PTA_PRIORITY_BALANCED
        [3] WAPI_PTA_PRIORITY_WLAN_HIGHD
        [4] WAPI_PTA_PRIORITY_WLAN_MAXIMIZED
   nsh> wapi scan wlan0
   [ 5] dump_assert_info: Current Version: NuttX  13.0.0 2c18ee90cd Jun 30 2026 
11:03:25 arm
   [ 5] dump_assert_info: Assertion failed panic: at file: :0 task: 
bcmf-gspi-thread process: Kernel 0x10021db5
   [ 5] up_dump_register: R0: 00000178 R1: 2000e07a R2: 2000e07a  R3: 00000178
   [ 5] up_dump_register: R4: 000001aa R5: 00000000 R6: 2000e020  FP: 2001f228
   [ 5] up_dump_register: R8: 00000000 SB: 00000000 SL: 00000000 R11: 00000000
   [ 5] up_dump_register: IP: 00000000 SP: 2001f228 LR: 10022bf3  PC: 10022c08
   [ 5] up_dump_register: xPSR: 21000000 PRIMASK: 00000000 CONTROL: 00000000
   [ 5] up_dump_register: EXC_RETURN: fffffffd
   [ 5] dump_stackinfo: User Stack:
   [ 5] dump_stackinfo:   base: 0x2001eb48
   [ 5] dump_stackinfo:   size: 00001984
   [ 5] dump_stackinfo:     sp: 0x2001f228
   [ 5] stack_dump: 0x2001f208: 00000178 2000e07a 2000e07a 00000178 00000000 
10022bf3 10022c08 21000000
   [ 5] stack_dump: 0x2001f228: 2001dad0 00000008 00000000 00000001 00000000 
00000000 00000000 10007200
   [ 5] stack_dump: 0x2001f248: 00220809 50200020 2000e07a 2001db30 00620829 
2000e062 00000000 2000e020
   [ 5] stack_dump: 0x2001f268: 2001f270 10023e39 2001db30 000001c6 00000001 
00000000 2000e020 2001dea8
   [ 5] stack_dump: 0x2001f288: 2001f298 10022333 000001d8 2000e04c 2001f2a8 
2000e04d 2001db30 2000e04c
   [ 5] stack_dump: 0x2001f2a8: 4001610c 2001dad0 1000a2e1 2001dea8 2001f2c8 
10021e4d 00000002 2001f2dc
   [ 5] stack_dump: 0x2001f2c8: 00000000 0003b128 2001db30 00000000 00000000 
00202020 00000002 00000002
   [ 5] stack_dump: 0x2001f2e8: 10021db5 00000000 2001f2f8 1000328b 00000000 
00000000 00000000 00000000
   [ 5] stack_dump: 0x2001f308: 00000000 00000000 00000000 00000000 00000000 
00000000 00000000 00000000
   [ 5] sched_dumpstack: backtrace| 5: 0x10029e46 0x10020622 0x10006f18 
0x100026ee 0x10000e88 0x10002228 0x10000a86 0x10022c06
   [ 5] sched_dumpstack: backtrace| 5: 0x10022bf0 0x10023e36 0x10022330 
0x10021e4a 0x10003288
   [ 5] dump_tasks:    PID GROUP PRI POLICY   TYPE    NPX STATE   EVENT      
SIGMASK          STACKBASE  STACKSIZE      USED   FILLED    COMMAND
   [ 5] dump_tasks:   ----   --- --- -------- ------- --- ------- ---------- 
---------------- 0x20000fd8      2048       984    48.0%    irq
   [ 5] dump_task:       0     0   0 FIFO     Kthread -   Ready              
0000000000000000 0x2001b6b8      1000       512    51.2%    Idle_Task
   [ 5] dump_task:       1     0 224 RR       Kthread -   Waiting Semaphore  
0000000000000000 0x2001c030      1976       264    13.3%    hpwork 0x200001e0 
0x20000230
   [ 5] dump_task:       2     0 100 RR       Kthread -   Waiting Semaphore  
0000000000000000 0x2001c918      1976       264    13.3%    lpwork 0x20000170 
0x200001c0
   [ 5] dump_task:       4     4 100 RR       Task    -   Waiting Semaphore  
0000000000000000 0x2001e328      2000      1376    68.8%    nsh_main
   [ 5] dump_task:       5     0 224 RR       Kthread -   Running            
0000000000000000 0x2001eb48      1984       592    29.8%    bcmf-gspi-thread 
0x2001db30
   [ 5] dump_task:       6     6 100 RR       Task    -   Waiting Semaphore  
0000000000000000 0x2001f5f8      2008       592    29.4%    telnetd
   [ 5] dump_task:      12    12 100 RR       Task    -   Waiting Signal     
0000000000000000 0x200200f0      1992      1232    61.8%    wapi scan wlan0
   [ 5] sched_dumpstack: backtrace| 0: 0x10009acc 0x100020a0 0x10000224 
0x17fffffe
   [ 5] sched_dumpstack: backtrace| 1: 0x10020794 0x10004f56 0x1000710a 
0x10007164 0x100034fa 0x10003288
   [ 5] sched_dumpstack: backtrace| 2: 0x10020794 0x10004f56 0x1000710a 
0x10007164 0x100034fa 0x10003288
   [ 5] sched_dumpstack: backtrace| 4: 0x10020794 0x10004f56 0x1000710a 
0x10020594 0x100205a2 0x1000eb64 0x1000c61e 0x1000d3aa
   [ 5] sched_dumpstack: backtrace| 4: 0x1000d462 0x1000b4de 0x1000b3bc 
0x1000b380 0x10006fac 0x10003294
   [ 5] sched_dumpstack: backtrace| 5: 0x10029e46 0x10020622 0x10006f18 
0x100023a8 0x100029d0 0x1000276c 0x10000e88 0x10002228
   [ 5] sched_dumpstack: backtrace| 5: 0x10000a86 0x10022c06 0x10022bf0 
0x10023e36 0x10022330 0x10021e4a 0x10003288
   [ 5] sched_dumpstack: backtrace| 6: 0x10020794 0x10004f56 0x1000710a 
0x10016dd0 0x1003439e 0x1003321a 0x10036164 0x100365e8
   [ 5] sched_dumpstack: backtrace| 6: 0x10032c54 0x1003055e 0x10006fac 
0x10003294
   [ 5] sched_dumpstack: backtrace|12: 0x1006e4ce 0x10004f56 0x1006e356 
0x100274a0 0x100301a6 0x1003024a 0x100304e4 0x10006fac
   [ 5] sched_dumpstack: backtrace|12: 0x10003294
   ```
   
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Linux 7.0.13-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 23 Jun 2026 11:14:21 +0000 
x86_64 GNU/Linux
   
   ### NuttX Version
   
   nuttx-13.0.0-RC0
   
   ### Issue Architecture
   
   [Arch: arm]
   
   ### Issue Area
   
   [Area: Networking]
   
   ### Host information
   
   _No response_
   
   ### Verification
   
   - [x] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to