ISupplicant.aidl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * WPA Supplicant - binder interface for wpa_supplicant daemon
  3. * Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
  4. * Copyright (c) 2004-2016, Roshan Pius <rpius@google.com>
  5. *
  6. * This software may be distributed under the terms of the BSD license.
  7. * See README for more details.
  8. */
  9. package fi.w1.wpa_supplicant;
  10. import android.os.PersistableBundle;
  11. import fi.w1.wpa_supplicant.IIface;
  12. /**
  13. * Interface exposed by the wpa_supplicant binder service registered
  14. * with the service manager with name: fi.w1.wpa_supplicant.
  15. */
  16. interface ISupplicant {
  17. /* Error values returned by the service to RPC method calls. */
  18. const int ERROR_INVALID_ARGS = 1;
  19. const int ERROR_UNKNOWN = 2;
  20. const int ERROR_IFACE_EXISTS = 3;
  21. const int ERROR_IFACE_UNKNOWN = 4;
  22. /**
  23. * Registers a wireless interface in wpa_supplicant.
  24. *
  25. * @param args A dictionary with arguments used to add the interface to
  26. * wpa_supplicant.
  27. * The dictionary may contain the following entries:
  28. * Ifname(String) Name of the network interface to control, e.g.,
  29. * wlan0.
  30. * BridgeIfname(String) Name of the bridge interface to control, e.g.,
  31. * br0.
  32. * Driver(String) Driver name which the interface uses, e.g., nl80211.
  33. * ConfigFile(String) Configuration file path.
  34. *
  35. * @return Binder object representing the interface.
  36. */
  37. IIface CreateInterface(in PersistableBundle args);
  38. /**
  39. * Deregisters a wireless interface from wpa_supplicant.
  40. *
  41. * @param ifname Name of the network interface, e.g., wlan0
  42. */
  43. void RemoveInterface(in @utf8InCpp String ifname);
  44. /**
  45. * Gets a binder object for the interface corresponding to ifname
  46. * which wpa_supplicant already controls.
  47. *
  48. * @param ifname Name of the network interface, e.g., wlan0
  49. *
  50. * @return Binder object representing the interface.
  51. */
  52. IIface GetInterface(in @utf8InCpp String ifname);
  53. }