Skip to content

Vectorize some netsim, bluetooth and wifi assemble_cve flags#1614

Merged
jemoreira merged 3 commits intogoogle:mainfrom
jemoreira:swcar
Sep 9, 2025
Merged

Vectorize some netsim, bluetooth and wifi assemble_cve flags#1614
jemoreira merged 3 commits intogoogle:mainfrom
jemoreira:swcar

Conversation

@jemoreira
Copy link
Copy Markdown
Member

@jemoreira jemoreira commented Sep 5, 2025

The commits in this PR are cherrypicks of:

  • ag/I68aad092c36fea5ef1d74597f2eafccf28e1c97e
  • ag/Icc9f4f7b00dc3df87c810edd2565d2f71ea2af95
  • ag/If851c1bde6e8a81e4bdb6f7fffbe43696e22265b

The flag is overloaded to mean whether a particular device has a wifi
card and whether wmediumd and other host side utilities should run. It
needs to be vectorized because some targets turn the feature off (auto)
via config, but may share an environment with devices that do use it
(phone).

The (vectorized) --enable_wifi flag now only means that a device has a
wifi card. The host side utilities are enabled when at least one device
has a wifi card. The name enable_wifi might not be the most appropriate
for this functionality, but it's kept for backwards compatibility.

Equivalent to ag/I68aad092c36fea5ef1d74597f2eafccf28e1c97e

Bug=b/441907863
The flag now means whether a particular device has a bluetooth
implementation that relies on the host (netsimd or rootcanal).

The old code enabled the host bluetooth functionality even when the flag
value was false if netsim_bt was enabled. This behavior is maintained
after this change.

Equivalent to ag/Icc9f4f7b00dc3df87c810edd2565d2f71ea2af95

Bug=b/441907863
@jemoreira jemoreira requested review from Databean and ser-io September 5, 2025 17:58
@jemoreira jemoreira enabled auto-merge September 5, 2025 17:59
@jemoreira jemoreira added the kokoro:force-run Trigger a presubmit build unconditionally. label Sep 5, 2025
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:force-run Trigger a presubmit build unconditionally. label Sep 5, 2025
@Databean Databean added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Sep 5, 2025
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Sep 5, 2025
@Databean
Copy link
Copy Markdown
Member

Databean commented Sep 5, 2025

ag/Ice407eb8f3d47a9974ddac861384aca973258890 was reverted in ag/Ia249214153d423daa0a209dc601888d2ccdfc371 to fix b/443309669

Copy link
Copy Markdown
Member

@Databean Databean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ag/Ice407eb8f3d47a9974ddac861384aca973258890 was reverted in ag/Ia249214153d423daa0a209dc601888d2ccdfc371 to fix b/443309669

@jemoreira jemoreira disabled auto-merge September 5, 2025 23:12
Except netsim_args, which is environment specific.

Netsim flags determine whether a particular device requires netsim for
bt or uwb. The netsim process is started if at least one device requires
it.

Equivalent to ag/If851c1bde6e8a81e4bdb6f7fffbe43696e22265b

Bug=b/441907863
@jemoreira
Copy link
Copy Markdown
Member Author

ag/Ice407eb8f3d47a9974ddac861384aca973258890 was reverted in ag/Ia249214153d423daa0a209dc601888d2ccdfc371 to fix b/443309669

Fixed

@jemoreira jemoreira requested a review from Databean September 5, 2025 23:55
@jemoreira jemoreira added this pull request to the merge queue Sep 9, 2025
Merged via the queue into google:main with commit 951354a Sep 9, 2025
21 checks passed
@jemoreira jemoreira deleted the swcar branch September 9, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants