Change to use copy assignment operator for RTWInterface::scan

pull/4863/head
Yuguo Zou 2017-08-10 17:36:05 +08:00
parent f24a40906a
commit 215a7906d3
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ static rtw_result_t scan_result_handler( rtw_scan_handler_result_t* malloced_sca
}
ap.rssi = record->signal_strength;
ap.channel = record->channel;
new (&scan_handler->ap_details[scan_handler->ap_num]) WiFiAccessPoint(ap);
scan_handler->ap_details[scan_handler->ap_num] = WiFiAccessPoint(ap);
}
scan_handler->ap_num++;
} else{