Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55651432 authored by Sunil Ravi's avatar Sunil Ravi
Browse files

wifi: Send channel change event to framework

Added a new StaIfaceCallback method to indicate that
the operating frequency of the BSS is changed
due to channel switch announcement from the AP.

Bug: 195617184
Test: Manually triggered channel switch through peer AP hostapd command
      and verified the new frequency in STA logs.
Change-Id: I9dd59d7c5d4ddc5f3443f8b6786cfea9beec4f3c
parent 8f0958eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ interface ISupplicantStaIfaceCallback {
  oneway void onMloLinksInfoChanged(in android.hardware.wifi.supplicant.ISupplicantStaIfaceCallback.MloLinkInfoChangeReason reason);
  oneway void onDppConfigReceived(in android.hardware.wifi.supplicant.DppConfigurationData configData);
  oneway void onDppConnectionStatusResultSent(in android.hardware.wifi.supplicant.DppStatusErrorCode code);
  oneway void onBssFrequencyChanged(in int frequencyMhz);
  @Backing(type="int") @VintfStability
  enum MloLinkInfoChangeReason {
    TID_TO_LINK_MAP = 0,
+9 −0
Original line number Diff line number Diff line
@@ -384,4 +384,13 @@ oneway interface ISupplicantStaIfaceCallback {
     * Indicates that DPP connection status result frame is sent.
     */
    void onDppConnectionStatusResultSent(in DppStatusErrorCode code);

    /**
     * Used to indicate that the operating frequency has changed for this BSS.
     * This event is triggered when STA switches the channel due to channel
     * switch announcement from the connected access point.
     *
     * @param frequencyMhz New operating frequency in MHz.
     */
    void onBssFrequencyChanged(in int frequencyMhz);
}
+3 −0
Original line number Diff line number Diff line
@@ -227,6 +227,9 @@ class SupplicantStaIfaceCallback : public BnSupplicantStaIfaceCallback {
            ::aidl::android::hardware::wifi::supplicant::DppStatusErrorCode /* code */) override {
        return ndk::ScopedAStatus::ok();
    }
    ::ndk::ScopedAStatus onBssFrequencyChanged(int32_t /* frequencyMhz */) override {
        return ndk::ScopedAStatus::ok();
    }
};

class SupplicantStaIfaceAidlTest : public testing::TestWithParam<std::string> {