[RTT2] Fix build failure with new MacAddress

Responder was using the new MacAddress before its finalization.
Fix reference to a (now removed) constructor.

Bug: 65014962
Test: unit tests & integration tests
Change-Id: I4d0fd32454c1362129e03deada2d6e6a253e2590
This commit is contained in:
Etan Cohen
2017-12-04 10:22:58 -08:00
parent efb758420d
commit fe43d359ef

View File

@@ -248,7 +248,10 @@ public class ResponderConfig implements Parcelable {
* Point (AP), which can be obtained from {@link android.net.wifi.WifiManager#getScanResults()}.
*/
public static ResponderConfig fromScanResult(ScanResult scanResult) {
byte[] macAddress = new MacAddress(scanResult.BSSID).toByteArray();
byte[] macAddress = null;
if (scanResult.BSSID != null) {
macAddress = MacAddress.byteAddrFromStringAddr(scanResult.BSSID);
}
int responderType = RESPONDER_AP;
boolean supports80211mc = scanResult.is80211mcResponder();
int channelWidth = translcateScanResultChannelWidth(scanResult.channelWidth);