Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim/posix: Add the host_system interface used to execute the host command #10325

Merged
merged 1 commit into from Aug 21, 2023

Conversation

liqinhuixm
Copy link
Contributor

Summary

Encapsulate the host system/popen interface to host_system.

Impact

We can use the host_system interface to execute the host command.

Testing

  • Execute the ls, do not receive the return result of the ls command.
    ret = host_system(NULL, 0, "%s", "ls");
  • Execute the ls, receive the return result of the ls command with a buffer of length buf_size.
    ret = host_system(buf, buf_size, "%s", "ls");

…mand

Encapsulate the host system/popen interface to host_system.

Signed-off-by: liqinhui <liqinhui@xiaomi.com>
Copy link
Contributor

@yamt yamt left a comment

Choose a reason for hiding this comment

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

what's the expected user of this?

@xiaoxiang781216
Copy link
Contributor

xiaoxiang781216 commented Aug 21, 2023

what's the expected user of this?

sim wifi simulation need call wpa supplicant through host_system.

@yamt
Copy link
Contributor

yamt commented Aug 21, 2023

what's the expected user of this?

sim wifi simulation need call wpa supplicant through host_system.

is it for device drivers?

@xiaoxiang781216
Copy link
Contributor

what's the expected user of this?

sim wifi simulation need call wpa supplicant through host_system.

is it for device drivers?

yes, net wifi driver will call host_system("wpaxxx") to interact with host's WiFi.

@yamt
Copy link
Contributor

yamt commented Aug 21, 2023

what's the expected user of this?

sim wifi simulation need call wpa supplicant through host_system.

is it for device drivers?

yes, net wifi driver will call host_system("wpaxxx") to interact with host's WiFi.

ok. it makes sense.

@xiaoxiang781216 xiaoxiang781216 merged commit 0d39246 into apache:master Aug 21, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to done in Release Notes - 12.3.0 Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants