mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4863 from Archcady/RTWInf
Optimize memory usage of wifi scan for REALTEK_RTW8195AMpull/4935/head
commit
96074417b2
|
@ -73,9 +73,7 @@ static rtw_result_t scan_result_handler( rtw_scan_handler_result_t* malloced_sca
|
||||||
}
|
}
|
||||||
ap.rssi = record->signal_strength;
|
ap.rssi = record->signal_strength;
|
||||||
ap.channel = record->channel;
|
ap.channel = record->channel;
|
||||||
WiFiAccessPoint *accesspoint = new WiFiAccessPoint(ap);
|
scan_handler->ap_details[scan_handler->ap_num] = WiFiAccessPoint(ap);
|
||||||
memcpy(&scan_handler->ap_details[scan_handler->ap_num], accesspoint, sizeof(WiFiAccessPoint));
|
|
||||||
delete[] accesspoint;
|
|
||||||
}
|
}
|
||||||
scan_handler->ap_num++;
|
scan_handler->ap_num++;
|
||||||
} else{
|
} else{
|
||||||
|
|
Loading…
Reference in New Issue