Merge "Inform p2p framework about the channel change event"

This commit is contained in:
Sunil Ravi
2022-01-13 01:23:19 +00:00
committed by Android (Google) Code Review
3 changed files with 13 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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> {