Found 2 other functions taking a
wifi_sta_list_t
argument:
Get STAs associated with soft-AP @attention SSC only API
Get IP information for stations connected to the Wi-Fi AP interface @warning This API works only for the default Wi-Fi AP interface, i.e. esp-netif with key="WIFI_AP_DEF"