mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Inform p2p framework about the channel change event"
This commit is contained in:
@@ -50,4 +50,5 @@ interface ISupplicantP2pIfaceCallback {
|
||||
oneway void onServiceDiscoveryResponse(in byte[] srcAddress, in char updateIndicator, in byte[] tlvs);
|
||||
oneway void onStaAuthorized(in byte[] srcAddress, in byte[] p2pDeviceAddress);
|
||||
oneway void onStaDeauthorized(in byte[] srcAddress, in byte[] p2pDeviceAddress);
|
||||
oneway void onGroupFrequencyChanged(in String groupIfname, in int frequency);
|
||||
}
|
||||
|
||||
@@ -205,4 +205,12 @@ interface ISupplicantP2pIfaceCallback {
|
||||
* @param p2pDeviceAddress P2P device address.
|
||||
*/
|
||||
oneway void onStaDeauthorized(in byte[] srcAddress, in byte[] p2pDeviceAddress);
|
||||
|
||||
/**
|
||||
* Used to indicate that operating frequency has changed for this P2P group interface.
|
||||
*
|
||||
* @param groupIfName Interface name of the group. (For ex: p2p-p2p0-1)
|
||||
* @param frequency New operating frequency in MHz.
|
||||
*/
|
||||
oneway void onGroupFrequencyChanged(in String groupIfname, in int frequency);
|
||||
}
|
||||
|
||||
@@ -159,6 +159,10 @@ class SupplicantP2pIfaceCallback : public BnSupplicantP2pIfaceCallback {
|
||||
const std::vector<uint8_t>& /* p2pDeviceAddress */) override {
|
||||
return ndk::ScopedAStatus::ok();
|
||||
}
|
||||
::ndk::ScopedAStatus onGroupFrequencyChanged(const std::string& /* groupIfname */,
|
||||
int32_t /* frequency */) override {
|
||||
return ndk::ScopedAStatus::ok();
|
||||
}
|
||||
};
|
||||
|
||||
class SupplicantP2pIfaceAidlTest : public testing::TestWithParam<std::string> {
|
||||
|
||||
Reference in New Issue
Block a user