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

Commit e2218d7b authored by Lynn Yeh's avatar Lynn Yeh Committed by Android (Google) Code Review
Browse files

Merge changes from topic "cherrypicker-L74500030002769125:N35700030046036139" into 24D1-dev

* changes:
  Adapt CheckApfIsSupported for VSR-15 compatibility
  Update APF VTS for VSR-14 compliance
parents b38b87f7 bc4498f3
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -176,14 +176,18 @@ TEST_P(WifiStaIfaceAidlTest, CheckApfIsSupported) {
        }
        StaApfPacketFilterCapabilities apf_caps = {};
        EXPECT_TRUE(wifi_sta_iface_->getApfPacketFilterCapabilities(&apf_caps).isOk());
    } else {
        return;
    }

    EXPECT_TRUE(isFeatureSupported(IWifiStaIface::FeatureSetMask::APF));
    StaApfPacketFilterCapabilities apf_caps = {};
    EXPECT_TRUE(wifi_sta_iface_->getApfPacketFilterCapabilities(&apf_caps).isOk());
        // The APF version must be 4 and the usable memory must be at least
        // 1024 bytes.
        EXPECT_EQ(apf_caps.version, 4);
    EXPECT_GE(apf_caps.version, 4);
    // Based on VSR-14 the usable memory must be at least 1024 bytes.
    EXPECT_GE(apf_caps.maxLength, 1024);
    if (vendor_api_level >= __ANDROID_API_V__) {
        // Based on VSR-15 the usable memory must be at least 2000 bytes.
        EXPECT_GE(apf_caps.maxLength, 2000);
    }
}