royfengsss opened a new pull request, #9408:
URL: https://github.com/apache/nuttx/pull/9408

   ## Summary
   This PR fixes the build issue uder SoftAP only (not co-existance) situation.
   1. Add a `softap` config
   2. fix the link error with `esp32-devkitc:softap` config
   ```
   LD: nuttx 
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):(.literal.esp_wifi_softap_txpower+0x0):
 unde
   fined reference to `esp_wifi_sta_txpower'
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):(.literal.esp_wifi_softap_channel+0x0):
 unde
   fined reference to `esp_wifi_sta_channel'
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):(.literal.esp_wifi_softap_country+0x0):
 unde
   fined reference to `esp_wifi_sta_country'
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):
 in function `esp_wifi_softap_txpower':
   esp32_wifi_adapter.c:(.text.esp_wifi_softap_txpower+0x8): undefined 
reference to `esp_wifi_sta_txpower'
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):
 in function `esp_wifi_softap_channel':
   esp32_wifi_adapter.c:(.text.esp_wifi_softap_channel+0x8): undefined 
reference to `esp_wifi_sta_channel'
   xtensa-esp32-elf-ld: 
/home/u0228848401/workdir/contribution/royfengsss/nuttx/staging/libarch.a(esp32_wifi_adapter.o):
 in function `esp_wifi_softap_country':
   esp32_wifi_adapter.c:(.text.esp_wifi_softap_country+0x8): undefined 
reference to `esp_wifi_sta_country'
   ```
   3. Fixes the build warning  with `esp32-devkitc:softap` config
   ```
   CC:  chip/esp32_wifi_adapter.c chip/esp32_wifi_adapter.c:4015:12: warning: 
'esp_wifi_cipher_trans' defined but not used [-Wunused-function]
    static int esp_wifi_cipher_trans(uint32_t wifi_cipher)
               ^~~~~~~~~~~~~~~~~~~~~
   chip/esp32_wifi_adapter.c:3969:12: warning: 'esp_wifi_auth_trans' defined 
but not used [-Wunused-function]
    static int esp_wifi_auth_trans(uint32_t wifi_auth)
               ^~~~~~~~~~~~~~~~~~~
   ```
   
   ## Impact
   SoftAP mode build issue fix. No impact to station mode or co-existance mode.
   
   ## Testing
   with `esp32-devkitc:softap` configured and build. The error has been fixed.
   


-- 
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