Are you trying to get the list of associated stations' mac addresses? wifi_softap_get_station_info, will give you the associated stations IP and mac addresses.
These are from the SDK docs:
Examples 1 (Getting MAC and IP information):
struct station_info * station = wifi_softap_get_station_info();
struct station_info * next_station;
while(station) {
os_printf("bssid : MACSTR, ip : IPSTR/n", MAC2STR(station->bssid), IP2STR(&station->ip));
next_station = STAILQ_NEXT(station, next);
os_free(station); // Free it directly
station = next_station;
}
Examples 2 (Getting MAC and IP information):
struct station_info * station = wifi_softap_get_station_info();
while(station){
os_printf("bssid : MACSTR, ip : IPSTR/n", MAC2STR(station->bssid), IP2STR(&station->ip));
station = STAILQ_NEXT(station, next);
}
wifi_softap_free_station_info(); // Free it by calling functions