Loading wifi/supplicant/1.4/ISupplicantStaIfaceCallback.hal +100 −0 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ import @1.0::ISupplicantStaIfaceCallback.AnqpData; import @1.0::ISupplicantStaIfaceCallback.Hs20AnqpData; import @1.3::ISupplicantStaIfaceCallback; import @1.0::ISupplicantStaIfaceCallback.State; import @1.0::ISupplicantStaIfaceCallback.StatusCode; import @1.0::Bssid; import @1.0::Ssid; /** * Callback Interface exposed by the supplicant service Loading @@ -31,6 +33,19 @@ import @1.0::Bssid; * corresponding |ISupplicantStaIface.registerCallback_1_4| method. */ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback { /** * MBO spec v1.2, 4.2.4 Table 14: MBO Association disallowed reason code attribute * values. */ enum MboAssocDisallowedReasonCode : uint8_t { RESERVED = 0, UNSPECIFIED = 1, MAX_NUM_STA_ASSOCIATED = 2, AIR_INTERFACE_OVERLOADED = 3, AUTH_SERVER_OVERLOADED = 4, INSUFFICIENT_RSSI = 5, }; /** * ANQP data for IEEE Std 802.11-2016. * The format of the data within these elements follows the IEEE Loading @@ -48,6 +63,83 @@ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback vec<uint8_t> venueUrl; }; /** * OceRssiBasedAssocRejectAttr is extracted from (Re-)Association response * frame from an OCE AP to indicate that the AP has rejected the * (Re-)Association request on the basis of insufficient RSSI. * Refer OCE spec v1.0 section 4.2.2 Table 7. */ struct OceRssiBasedAssocRejectAttr { /* * Delta RSSI - The difference in dB between the minimum RSSI at which * the AP would accept a (Re-)Association request from the STA before * Retry Delay expires and the AP's measurement of the RSSI at which the * (Re-)Association request was received. */ uint32_t deltaRssi; /* * Retry Delay - The time period in seconds for which the AP will not * accept any subsequent (Re-)Association requests from the STA, unless * the received RSSI has improved by Delta RSSI. */ uint32_t retryDelayS; }; /** * Association Rejection related information. */ struct AssociationRejectionData { /** * SSID of the AP that rejected the association. */ Ssid ssid; /** * BSSID of the AP that rejected the association. */ Bssid bssid; /* * 802.11 code to indicate the reject reason. * Refer to section 8.4.1.9 of IEEE 802.11 spec. */ StatusCode statusCode; /* * Flag to indicate that failure is due to timeout rather than * explicit rejection response from the AP. */ bool timedOut; /** * Flag to indicate that MboAssocDisallowedReasonCode is present * in the (Re-)Association response frame. */ bool isMboAssocDisallowedReasonCodePresent; /** * mboAssocDisallowedReason is extracted from MBO association disallowed attribute * in (Re-)Association response frame to indicate that the AP is not accepting new * associations. * Refer MBO spec v1.2 section 4.2.4 Table 13 for the details of reason code. * The value is undefined if isMboAssocDisallowedReasonCodePresent is false. */ MboAssocDisallowedReasonCode mboAssocDisallowedReason; /** * Flag to indicate that OceRssiBasedAssocRejectAttr is present * in the (Re-)Association response frame. */ bool isOceRssiBasedAssocRejectAttrPresent; /* * OCE RSSI-based (Re-)Association rejection attribute. * The contents are undefined if isOceRssiBasedAssocRejectAttrPresent is false. */ OceRssiBasedAssocRejectAttr oceRssiBasedAssocRejectData; }; /** * Used to indicate a Hotspot 2.0 terms and conditions acceptance is requested from the user * before allowing the device to get internet access. Loading @@ -68,4 +160,12 @@ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback * All the fields in this struct must be empty if the query failed. */ oneway onAnqpQueryDone_1_4(Bssid bssid, AnqpData data, Hs20AnqpData hs20Data); /** * Used to indicate an association rejection received from the AP * to which the connection is being attempted. * * @param assocRejectData Association Rejection related information. */ oneway onAssociationRejected_1_4(AssociationRejectionData assocRejectData); }; wifi/supplicant/1.4/vts/functional/supplicant_sta_iface_hidl_test.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,11 @@ class IfaceCallback : public ISupplicantStaIfaceCallback { override { return Void(); } Return<void> onAssociationRejected_1_4( const ISupplicantStaIfaceCallback::AssociationRejectionData& /* data */) override { return Void(); } }; /* Loading Loading
wifi/supplicant/1.4/ISupplicantStaIfaceCallback.hal +100 −0 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ import @1.0::ISupplicantStaIfaceCallback.AnqpData; import @1.0::ISupplicantStaIfaceCallback.Hs20AnqpData; import @1.3::ISupplicantStaIfaceCallback; import @1.0::ISupplicantStaIfaceCallback.State; import @1.0::ISupplicantStaIfaceCallback.StatusCode; import @1.0::Bssid; import @1.0::Ssid; /** * Callback Interface exposed by the supplicant service Loading @@ -31,6 +33,19 @@ import @1.0::Bssid; * corresponding |ISupplicantStaIface.registerCallback_1_4| method. */ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback { /** * MBO spec v1.2, 4.2.4 Table 14: MBO Association disallowed reason code attribute * values. */ enum MboAssocDisallowedReasonCode : uint8_t { RESERVED = 0, UNSPECIFIED = 1, MAX_NUM_STA_ASSOCIATED = 2, AIR_INTERFACE_OVERLOADED = 3, AUTH_SERVER_OVERLOADED = 4, INSUFFICIENT_RSSI = 5, }; /** * ANQP data for IEEE Std 802.11-2016. * The format of the data within these elements follows the IEEE Loading @@ -48,6 +63,83 @@ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback vec<uint8_t> venueUrl; }; /** * OceRssiBasedAssocRejectAttr is extracted from (Re-)Association response * frame from an OCE AP to indicate that the AP has rejected the * (Re-)Association request on the basis of insufficient RSSI. * Refer OCE spec v1.0 section 4.2.2 Table 7. */ struct OceRssiBasedAssocRejectAttr { /* * Delta RSSI - The difference in dB between the minimum RSSI at which * the AP would accept a (Re-)Association request from the STA before * Retry Delay expires and the AP's measurement of the RSSI at which the * (Re-)Association request was received. */ uint32_t deltaRssi; /* * Retry Delay - The time period in seconds for which the AP will not * accept any subsequent (Re-)Association requests from the STA, unless * the received RSSI has improved by Delta RSSI. */ uint32_t retryDelayS; }; /** * Association Rejection related information. */ struct AssociationRejectionData { /** * SSID of the AP that rejected the association. */ Ssid ssid; /** * BSSID of the AP that rejected the association. */ Bssid bssid; /* * 802.11 code to indicate the reject reason. * Refer to section 8.4.1.9 of IEEE 802.11 spec. */ StatusCode statusCode; /* * Flag to indicate that failure is due to timeout rather than * explicit rejection response from the AP. */ bool timedOut; /** * Flag to indicate that MboAssocDisallowedReasonCode is present * in the (Re-)Association response frame. */ bool isMboAssocDisallowedReasonCodePresent; /** * mboAssocDisallowedReason is extracted from MBO association disallowed attribute * in (Re-)Association response frame to indicate that the AP is not accepting new * associations. * Refer MBO spec v1.2 section 4.2.4 Table 13 for the details of reason code. * The value is undefined if isMboAssocDisallowedReasonCodePresent is false. */ MboAssocDisallowedReasonCode mboAssocDisallowedReason; /** * Flag to indicate that OceRssiBasedAssocRejectAttr is present * in the (Re-)Association response frame. */ bool isOceRssiBasedAssocRejectAttrPresent; /* * OCE RSSI-based (Re-)Association rejection attribute. * The contents are undefined if isOceRssiBasedAssocRejectAttrPresent is false. */ OceRssiBasedAssocRejectAttr oceRssiBasedAssocRejectData; }; /** * Used to indicate a Hotspot 2.0 terms and conditions acceptance is requested from the user * before allowing the device to get internet access. Loading @@ -68,4 +160,12 @@ interface ISupplicantStaIfaceCallback extends @1.3::ISupplicantStaIfaceCallback * All the fields in this struct must be empty if the query failed. */ oneway onAnqpQueryDone_1_4(Bssid bssid, AnqpData data, Hs20AnqpData hs20Data); /** * Used to indicate an association rejection received from the AP * to which the connection is being attempted. * * @param assocRejectData Association Rejection related information. */ oneway onAssociationRejected_1_4(AssociationRejectionData assocRejectData); };
wifi/supplicant/1.4/vts/functional/supplicant_sta_iface_hidl_test.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -232,6 +232,11 @@ class IfaceCallback : public ISupplicantStaIfaceCallback { override { return Void(); } Return<void> onAssociationRejected_1_4( const ISupplicantStaIfaceCallback::AssociationRejectionData& /* data */) override { return Void(); } }; /* Loading