Merge "Address ANAPIC feedback for Supplicant V3 and Vendor HAL V2." into main
This commit is contained in:
commit
882d7079d1
17 changed files with 50 additions and 51 deletions
|
@ -42,8 +42,8 @@ parcelable RttCapabilities {
|
|||
android.hardware.wifi.RttPreamble preambleSupport;
|
||||
android.hardware.wifi.RttBw bwSupport;
|
||||
byte mcVersion;
|
||||
android.hardware.wifi.RttPreamble azPreambleSupport;
|
||||
android.hardware.wifi.RttBw azBwSupport;
|
||||
int azPreambleSupport;
|
||||
int azBwSupport;
|
||||
boolean ntbInitiatorSupported;
|
||||
boolean ntbResponderSupported;
|
||||
}
|
||||
|
|
|
@ -38,8 +38,8 @@ parcelable TwtCapabilities {
|
|||
boolean isTwtResponderSupported;
|
||||
boolean isBroadcastTwtSupported;
|
||||
boolean isFlexibleTwtScheduleSupported;
|
||||
int minWakeDurationMicros;
|
||||
int maxWakeDurationMicros;
|
||||
long minWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
int minWakeDurationUs;
|
||||
int maxWakeDurationUs;
|
||||
long minWakeIntervalUs;
|
||||
long maxWakeIntervalUs;
|
||||
}
|
||||
|
|
|
@ -35,8 +35,8 @@ package android.hardware.wifi;
|
|||
@VintfStability
|
||||
parcelable TwtRequest {
|
||||
int mloLinkId;
|
||||
int minWakeDurationMicros;
|
||||
int maxWakeDurationMicros;
|
||||
long minWakeIntervalMicros;
|
||||
long maxWakeIntervalMicros;
|
||||
int minWakeDurationUs;
|
||||
int maxWakeDurationUs;
|
||||
long minWakeIntervalUs;
|
||||
long maxWakeIntervalUs;
|
||||
}
|
||||
|
|
|
@ -36,8 +36,8 @@ package android.hardware.wifi;
|
|||
parcelable TwtSession {
|
||||
int sessionId;
|
||||
int mloLinkId;
|
||||
int wakeDurationMicros;
|
||||
long wakeIntervalMicros;
|
||||
int wakeDurationUs;
|
||||
long wakeIntervalUs;
|
||||
android.hardware.wifi.TwtSession.TwtNegotiationType negotiationType;
|
||||
boolean isTriggerEnabled;
|
||||
boolean isAnnounced;
|
||||
|
|
|
@ -38,6 +38,6 @@ parcelable TwtSessionStats {
|
|||
int avgRxPktCount;
|
||||
int avgTxPktSize;
|
||||
int avgRxPktSize;
|
||||
int avgEospDurationMicros;
|
||||
int avgEospDurationUs;
|
||||
int eospCount;
|
||||
}
|
||||
|
|
|
@ -64,12 +64,12 @@ parcelable RttCapabilities {
|
|||
* Bit mask indicating what preamble is supported by IEEE 802.11az initiator.
|
||||
* Combination of |RttPreamble| values.
|
||||
*/
|
||||
RttPreamble azPreambleSupport;
|
||||
int azPreambleSupport;
|
||||
/**
|
||||
* Bit mask indicating what BW is supported by IEEE 802.11az initiator.
|
||||
* Combination of |RttBw| values.
|
||||
*/
|
||||
RttBw azBwSupport;
|
||||
int azBwSupport;
|
||||
/**
|
||||
* Whether the initiator supports IEEE 802.11az Non-Trigger-based (non-TB) measurement.
|
||||
*/
|
||||
|
|
|
@ -40,17 +40,17 @@ parcelable TwtCapabilities {
|
|||
/**
|
||||
* Minimum TWT wake duration in microseconds.
|
||||
*/
|
||||
int minWakeDurationMicros;
|
||||
int minWakeDurationUs;
|
||||
/**
|
||||
* Maximum TWT wake duration in microseconds.
|
||||
*/
|
||||
int maxWakeDurationMicros;
|
||||
int maxWakeDurationUs;
|
||||
/**
|
||||
* Minimum TWT wake interval in microseconds.
|
||||
*/
|
||||
long minWakeIntervalMicros;
|
||||
long minWakeIntervalUs;
|
||||
/**
|
||||
* Maximum TWT wake interval in microseconds.
|
||||
*/
|
||||
long maxWakeIntervalMicros;
|
||||
long maxWakeIntervalUs;
|
||||
}
|
||||
|
|
|
@ -28,17 +28,17 @@ parcelable TwtRequest {
|
|||
/**
|
||||
* Minimum TWT wake duration in microseconds.
|
||||
*/
|
||||
int minWakeDurationMicros;
|
||||
int minWakeDurationUs;
|
||||
/**
|
||||
* Maximum TWT wake duration in microseconds.
|
||||
*/
|
||||
int maxWakeDurationMicros;
|
||||
int maxWakeDurationUs;
|
||||
/**
|
||||
* Minimum TWT wake interval in microseconds.
|
||||
*/
|
||||
long minWakeIntervalMicros;
|
||||
long minWakeIntervalUs;
|
||||
/**
|
||||
* Maximum TWT wake interval in microseconds.
|
||||
*/
|
||||
long maxWakeIntervalMicros;
|
||||
long maxWakeIntervalUs;
|
||||
}
|
||||
|
|
|
@ -41,12 +41,12 @@ parcelable TwtSession {
|
|||
/**
|
||||
* TWT service period in microseconds.
|
||||
*/
|
||||
int wakeDurationMicros;
|
||||
int wakeDurationUs;
|
||||
|
||||
/**
|
||||
* Time interval in microseconds between two successive TWT service periods.
|
||||
*/
|
||||
long wakeIntervalMicros;
|
||||
long wakeIntervalUs;
|
||||
|
||||
/**
|
||||
* TWT negotiation type.
|
||||
|
|
|
@ -44,7 +44,7 @@ parcelable TwtSessionStats {
|
|||
/**
|
||||
* Average End of Service period in microseconds.
|
||||
*/
|
||||
int avgEospDurationMicros;
|
||||
int avgEospDurationUs;
|
||||
|
||||
/**
|
||||
* Count of early terminations.
|
||||
|
|
|
@ -2886,8 +2886,8 @@ bool convertLegacyRttCapabilitiesToAidl(
|
|||
aidl_capabilities->bwSupport = convertLegacyRttBwBitmapToAidl(legacy_capabilities.bw_support);
|
||||
aidl_capabilities->mcVersion = legacy_capabilities.mc_version;
|
||||
// Initialize 11az parameters to default
|
||||
aidl_capabilities->azPreambleSupport = RttPreamble::INVALID;
|
||||
aidl_capabilities->azBwSupport = RttBw::BW_UNSPECIFIED;
|
||||
aidl_capabilities->azPreambleSupport = (int)RttPreamble::INVALID;
|
||||
aidl_capabilities->azBwSupport = (int)RttBw::BW_UNSPECIFIED;
|
||||
aidl_capabilities->ntbInitiatorSupported = false;
|
||||
aidl_capabilities->ntbResponderSupported = false;
|
||||
return true;
|
||||
|
@ -2912,9 +2912,9 @@ bool convertLegacyRttCapabilitiesV3ToAidl(
|
|||
convertLegacyRttBwBitmapToAidl(legacy_capabilities_v3.rtt_capab.bw_support);
|
||||
aidl_capabilities->mcVersion = legacy_capabilities_v3.rtt_capab.mc_version;
|
||||
aidl_capabilities->azPreambleSupport =
|
||||
convertLegacyRttPreambleBitmapToAidl(legacy_capabilities_v3.az_preamble_support);
|
||||
(int)convertLegacyRttPreambleBitmapToAidl(legacy_capabilities_v3.az_preamble_support);
|
||||
aidl_capabilities->azBwSupport =
|
||||
convertLegacyRttBwBitmapToAidl(legacy_capabilities_v3.az_bw_support);
|
||||
(int)convertLegacyRttBwBitmapToAidl(legacy_capabilities_v3.az_bw_support);
|
||||
aidl_capabilities->ntbInitiatorSupported = legacy_capabilities_v3.ntb_initiator_supported;
|
||||
aidl_capabilities->ntbResponderSupported = legacy_capabilities_v3.ntb_responder_supported;
|
||||
return true;
|
||||
|
@ -3587,13 +3587,13 @@ bool convertTwtCapabilitiesToAidl(legacy_hal::wifi_twt_capabilities legacy_twt_c
|
|||
if (legacy_twt_capabs.min_wake_duration_micros > legacy_twt_capabs.max_wake_duration_micros) {
|
||||
return false;
|
||||
}
|
||||
aidl_twt_capabs->minWakeDurationMicros = legacy_twt_capabs.min_wake_duration_micros;
|
||||
aidl_twt_capabs->maxWakeDurationMicros = legacy_twt_capabs.max_wake_duration_micros;
|
||||
aidl_twt_capabs->minWakeDurationUs = legacy_twt_capabs.min_wake_duration_micros;
|
||||
aidl_twt_capabs->maxWakeDurationUs = legacy_twt_capabs.max_wake_duration_micros;
|
||||
if (legacy_twt_capabs.min_wake_interval_micros > legacy_twt_capabs.max_wake_interval_micros) {
|
||||
return false;
|
||||
}
|
||||
aidl_twt_capabs->minWakeIntervalMicros = legacy_twt_capabs.min_wake_interval_micros;
|
||||
aidl_twt_capabs->maxWakeIntervalMicros = legacy_twt_capabs.max_wake_interval_micros;
|
||||
aidl_twt_capabs->minWakeIntervalUs = legacy_twt_capabs.min_wake_interval_micros;
|
||||
aidl_twt_capabs->maxWakeIntervalUs = legacy_twt_capabs.max_wake_interval_micros;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3603,16 +3603,16 @@ bool convertAidlTwtRequestToLegacy(const TwtRequest aidl_twt_request,
|
|||
return false;
|
||||
}
|
||||
legacy_twt_request->mlo_link_id = aidl_twt_request.mloLinkId;
|
||||
if (aidl_twt_request.minWakeDurationMicros > aidl_twt_request.maxWakeDurationMicros) {
|
||||
if (aidl_twt_request.minWakeDurationUs > aidl_twt_request.maxWakeDurationUs) {
|
||||
return false;
|
||||
}
|
||||
legacy_twt_request->min_wake_duration_micros = aidl_twt_request.minWakeDurationMicros;
|
||||
legacy_twt_request->max_wake_duration_micros = aidl_twt_request.maxWakeDurationMicros;
|
||||
if (aidl_twt_request.minWakeIntervalMicros > aidl_twt_request.maxWakeIntervalMicros) {
|
||||
legacy_twt_request->min_wake_duration_micros = aidl_twt_request.minWakeDurationUs;
|
||||
legacy_twt_request->max_wake_duration_micros = aidl_twt_request.maxWakeDurationUs;
|
||||
if (aidl_twt_request.minWakeIntervalUs > aidl_twt_request.maxWakeIntervalUs) {
|
||||
return false;
|
||||
}
|
||||
legacy_twt_request->min_wake_interval_micros = aidl_twt_request.minWakeIntervalMicros;
|
||||
legacy_twt_request->max_wake_interval_micros = aidl_twt_request.maxWakeIntervalMicros;
|
||||
legacy_twt_request->min_wake_interval_micros = aidl_twt_request.minWakeIntervalUs;
|
||||
legacy_twt_request->max_wake_interval_micros = aidl_twt_request.maxWakeIntervalUs;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3664,8 +3664,8 @@ bool convertLegacyHalTwtSessionToAidl(legacy_hal::wifi_twt_session twt_session,
|
|||
|
||||
aidl_twt_session->sessionId = twt_session.session_id;
|
||||
aidl_twt_session->mloLinkId = twt_session.mlo_link_id;
|
||||
aidl_twt_session->wakeDurationMicros = twt_session.wake_duration_micros;
|
||||
aidl_twt_session->wakeIntervalMicros = twt_session.wake_interval_micros;
|
||||
aidl_twt_session->wakeDurationUs = twt_session.wake_duration_micros;
|
||||
aidl_twt_session->wakeIntervalUs = twt_session.wake_interval_micros;
|
||||
switch (twt_session.negotiation_type) {
|
||||
case WIFI_TWT_NEGO_TYPE_INDIVIDUAL:
|
||||
aidl_twt_session->negotiationType = TwtSession::TwtNegotiationType::INDIVIDUAL;
|
||||
|
@ -3696,7 +3696,7 @@ bool convertLegacyHalTwtSessionStatsToAidl(legacy_hal::wifi_twt_session_stats tw
|
|||
aidl_twt_stats->avgRxPktCount = twt_stats.avg_pkt_num_rx;
|
||||
aidl_twt_stats->avgTxPktSize = twt_stats.avg_tx_pkt_size;
|
||||
aidl_twt_stats->avgRxPktSize = twt_stats.avg_rx_pkt_size;
|
||||
aidl_twt_stats->avgEospDurationMicros = twt_stats.avg_eosp_dur_us;
|
||||
aidl_twt_stats->avgEospDurationUs = twt_stats.avg_eosp_dur_us;
|
||||
aidl_twt_stats->eospCount = twt_stats.eosp_count;
|
||||
|
||||
return true;
|
||||
|
|
|
@ -35,7 +35,7 @@ package android.hardware.wifi.supplicant;
|
|||
@VintfStability
|
||||
interface ISupplicantP2pIfaceCallback {
|
||||
/**
|
||||
* @deprecated This callback is deprecated from AIDL v2, newer HAL should call onDeviceFoundWithParams.
|
||||
* @deprecated This callback is deprecated from AIDL v3, newer HAL should call onDeviceFoundWithParams.
|
||||
*/
|
||||
oneway void onDeviceFound(in byte[] srcAddress, in byte[] p2pDeviceAddress, in byte[] primaryDeviceType, in String deviceName, in android.hardware.wifi.supplicant.WpsConfigMethods configMethods, in byte deviceCapabilities, in android.hardware.wifi.supplicant.P2pGroupCapabilityMask groupCapabilities, in byte[] wfdDeviceInfo);
|
||||
oneway void onDeviceLost(in byte[] p2pDeviceAddress);
|
||||
|
|
|
@ -54,7 +54,7 @@ interface ISupplicantStaIfaceCallback {
|
|||
oneway void onExtRadioWorkTimeout(in int id);
|
||||
oneway void onHs20DeauthImminentNotice(in byte[] bssid, in int reasonCode, in int reAuthDelayInSec, in String url);
|
||||
/**
|
||||
* @deprecated No longer in use.
|
||||
* @deprecated This callback is deprecated from AIDL v3.
|
||||
*/
|
||||
oneway void onHs20IconQueryDone(in byte[] bssid, in String fileName, in byte[] data);
|
||||
oneway void onHs20SubscriptionRemediation(in byte[] bssid, in android.hardware.wifi.supplicant.OsuMethod osuMethod, in String url);
|
||||
|
|
|
@ -37,7 +37,7 @@ parcelable P2pProvisionDiscoveryCompletedEventParams {
|
|||
byte[6] p2pDeviceAddress;
|
||||
boolean isRequest;
|
||||
android.hardware.wifi.supplicant.P2pProvDiscStatusCode status;
|
||||
android.hardware.wifi.supplicant.WpsConfigMethods configMethods;
|
||||
int configMethods;
|
||||
String generatedPin;
|
||||
String groupInterfaceName;
|
||||
@nullable android.hardware.wifi.common.OuiKeyedData[] vendorData;
|
||||
|
|
|
@ -40,7 +40,7 @@ oneway interface ISupplicantP2pIfaceCallback {
|
|||
/**
|
||||
* Used to indicate that a P2P device has been found.
|
||||
* <p>
|
||||
* @deprecated This callback is deprecated from AIDL v2, newer HAL should call
|
||||
* @deprecated This callback is deprecated from AIDL v3, newer HAL should call
|
||||
* onDeviceFoundWithParams.
|
||||
*
|
||||
* @param srcAddress MAC address of the device found. This must either
|
||||
|
|
|
@ -198,7 +198,7 @@ oneway interface ISupplicantStaIfaceCallback {
|
|||
/**
|
||||
* Used to indicate the result of Hotspot 2.0 Icon query.
|
||||
*
|
||||
* @deprecated No longer in use.
|
||||
* @deprecated This callback is deprecated from AIDL v3.
|
||||
*
|
||||
* @param bssid BSSID of the access point.
|
||||
* @param fileName Name of the file that was requested.
|
||||
|
|
|
@ -18,7 +18,6 @@ package android.hardware.wifi.supplicant;
|
|||
|
||||
import android.hardware.wifi.common.OuiKeyedData;
|
||||
import android.hardware.wifi.supplicant.P2pProvDiscStatusCode;
|
||||
import android.hardware.wifi.supplicant.WpsConfigMethods;
|
||||
|
||||
/**
|
||||
* Parameters passed as a part of P2P provision discovery frame notification.
|
||||
|
@ -34,8 +33,8 @@ parcelable P2pProvisionDiscoveryCompletedEventParams {
|
|||
boolean isRequest;
|
||||
/** Status of the provision discovery */
|
||||
P2pProvDiscStatusCode status;
|
||||
/** Mask of WPS configuration methods supported */
|
||||
WpsConfigMethods configMethods;
|
||||
/** Mask of |WpsConfigMethods| indicating the supported methods */
|
||||
int configMethods;
|
||||
/** 8-digit pin generated */
|
||||
String generatedPin;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue