dbus_new.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. /*
  2. * WPA Supplicant / dbus-based control interface
  3. * Copyright (c) 2006, Dan Williams <dcbw@redhat.com> and Red Hat, Inc.
  4. * Copyright (c) 2009-2010, Witold Sowa <witold.sowa@gmail.com>
  5. *
  6. * This software may be distributed under the terms of the BSD license.
  7. * See README for more details.
  8. */
  9. #ifndef CTRL_IFACE_DBUS_NEW_H
  10. #define CTRL_IFACE_DBUS_NEW_H
  11. #include "common/defs.h"
  12. #include "p2p/p2p.h"
  13. struct wpa_global;
  14. struct wpa_supplicant;
  15. struct wpa_ssid;
  16. struct wps_event_m2d;
  17. struct wps_event_fail;
  18. struct wps_credential;
  19. enum wpas_dbus_prop {
  20. WPAS_DBUS_PROP_AP_SCAN,
  21. WPAS_DBUS_PROP_PMF,
  22. WPAS_DBUS_PROP_SCANNING,
  23. WPAS_DBUS_PROP_STATE,
  24. WPAS_DBUS_PROP_CURRENT_BSS,
  25. WPAS_DBUS_PROP_CURRENT_NETWORK,
  26. WPAS_DBUS_PROP_CURRENT_AUTH_MODE,
  27. WPAS_DBUS_PROP_BSSS,
  28. WPAS_DBUS_PROP_DISCONNECT_REASON,
  29. WPAS_DBUS_PROP_ASSOC_STATUS_CODE,
  30. };
  31. enum wpas_dbus_bss_prop {
  32. WPAS_DBUS_BSS_PROP_SIGNAL,
  33. WPAS_DBUS_BSS_PROP_FREQ,
  34. WPAS_DBUS_BSS_PROP_MODE,
  35. WPAS_DBUS_BSS_PROP_PRIVACY,
  36. WPAS_DBUS_BSS_PROP_RATES,
  37. WPAS_DBUS_BSS_PROP_WPA,
  38. WPAS_DBUS_BSS_PROP_RSN,
  39. WPAS_DBUS_BSS_PROP_WPS,
  40. WPAS_DBUS_BSS_PROP_IES,
  41. WPAS_DBUS_BSS_PROP_AGE,
  42. };
  43. #define WPAS_DBUS_OBJECT_PATH_MAX 150
  44. #define WPAS_DBUS_NEW_SERVICE "fi.w1.wpa_supplicant1"
  45. #define WPAS_DBUS_NEW_PATH "/fi/w1/wpa_supplicant1"
  46. #define WPAS_DBUS_NEW_INTERFACE "fi.w1.wpa_supplicant1"
  47. #define WPAS_DBUS_NEW_PATH_INTERFACES WPAS_DBUS_NEW_PATH "/Interfaces"
  48. #define WPAS_DBUS_NEW_IFACE_INTERFACE WPAS_DBUS_NEW_INTERFACE ".Interface"
  49. #define WPAS_DBUS_NEW_IFACE_WPS WPAS_DBUS_NEW_IFACE_INTERFACE ".WPS"
  50. #define WPAS_DBUS_NEW_NETWORKS_PART "Networks"
  51. #define WPAS_DBUS_NEW_IFACE_NETWORK WPAS_DBUS_NEW_INTERFACE ".Network"
  52. #define WPAS_DBUS_NEW_BSSIDS_PART "BSSs"
  53. #define WPAS_DBUS_NEW_IFACE_BSS WPAS_DBUS_NEW_INTERFACE ".BSS"
  54. #define WPAS_DBUS_NEW_IFACE_P2PDEVICE \
  55. WPAS_DBUS_NEW_IFACE_INTERFACE ".P2PDevice"
  56. #define WPAS_DBUS_NEW_IFACE_MESH WPAS_DBUS_NEW_IFACE_INTERFACE ".Mesh"
  57. /*
  58. * Groups correspond to P2P groups where this device is a GO (owner)
  59. */
  60. #define WPAS_DBUS_NEW_P2P_GROUPS_PART "Groups"
  61. #define WPAS_DBUS_NEW_IFACE_P2P_GROUP WPAS_DBUS_NEW_INTERFACE ".Group"
  62. /*
  63. * Different dbus object for persistent groups so they do not get confused
  64. * with regular (configured) network objects.
  65. */
  66. #define WPAS_DBUS_NEW_PERSISTENT_GROUPS_PART "PersistentGroups"
  67. #define WPAS_DBUS_NEW_IFACE_PERSISTENT_GROUP \
  68. WPAS_DBUS_NEW_INTERFACE ".PersistentGroup"
  69. #define WPAS_DBUS_NEW_P2P_PEERS_PART "Peers"
  70. #define WPAS_DBUS_NEW_IFACE_P2P_PEER WPAS_DBUS_NEW_INTERFACE ".Peer"
  71. /* Top-level Errors */
  72. #define WPAS_DBUS_ERROR_UNKNOWN_ERROR \
  73. WPAS_DBUS_NEW_INTERFACE ".UnknownError"
  74. #define WPAS_DBUS_ERROR_INVALID_ARGS \
  75. WPAS_DBUS_NEW_INTERFACE ".InvalidArgs"
  76. #define WPAS_DBUS_ERROR_IFACE_EXISTS \
  77. WPAS_DBUS_NEW_INTERFACE ".InterfaceExists"
  78. #define WPAS_DBUS_ERROR_IFACE_DISABLED \
  79. WPAS_DBUS_NEW_INTERFACE ".InterfaceDisabled"
  80. #define WPAS_DBUS_ERROR_IFACE_UNKNOWN \
  81. WPAS_DBUS_NEW_INTERFACE ".InterfaceUnknown"
  82. #define WPAS_DBUS_ERROR_NOT_CONNECTED \
  83. WPAS_DBUS_NEW_INTERFACE ".NotConnected"
  84. #define WPAS_DBUS_ERROR_NETWORK_UNKNOWN \
  85. WPAS_DBUS_NEW_INTERFACE ".NetworkUnknown"
  86. #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNAVAILABLE \
  87. WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnavailable"
  88. #define WPAS_DBUS_ERROR_CONNECT_CHANNEL_UNSUPPORTED \
  89. WPAS_DBUS_NEW_INTERFACE ".ConnectChannelUnsupported"
  90. #define WPAS_DBUS_ERROR_CONNECT_UNSPECIFIED_ERROR \
  91. WPAS_DBUS_NEW_INTERFACE ".ConnectUnspecifiedError"
  92. #define WPAS_DBUS_ERROR_BLOB_EXISTS \
  93. WPAS_DBUS_NEW_INTERFACE ".BlobExists"
  94. #define WPAS_DBUS_ERROR_BLOB_UNKNOWN \
  95. WPAS_DBUS_NEW_INTERFACE ".BlobUnknown"
  96. #define WPAS_DBUS_ERROR_SUBSCRIPTION_IN_USE \
  97. WPAS_DBUS_NEW_INTERFACE ".SubscriptionInUse"
  98. #define WPAS_DBUS_ERROR_NO_SUBSCRIPTION \
  99. WPAS_DBUS_NEW_INTERFACE ".NoSubscription"
  100. #define WPAS_DBUS_ERROR_SUBSCRIPTION_EPERM \
  101. WPAS_DBUS_NEW_INTERFACE ".SubscriptionNotYou"
  102. /* Interface-level errors */
  103. #define WPAS_DBUS_ERROR_IFACE_SCAN_ERROR \
  104. WPAS_DBUS_NEW_IFACE_INTERFACE ".ScanError"
  105. void wpas_dbus_subscribe_noc(struct wpas_dbus_priv *priv);
  106. void wpas_dbus_unsubscribe_noc(struct wpas_dbus_priv *priv);
  107. #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  108. int wpas_dbus_ctrl_iface_init(struct wpas_dbus_priv *priv);
  109. void wpas_dbus_ctrl_iface_deinit(struct wpas_dbus_priv *iface);
  110. int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s);
  111. int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s);
  112. void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
  113. enum wpas_dbus_prop property);
  114. void wpas_dbus_bss_signal_prop_changed(struct wpa_supplicant *wpa_s,
  115. enum wpas_dbus_bss_prop property,
  116. unsigned int id);
  117. void wpas_dbus_signal_network_enabled_changed(struct wpa_supplicant *wpa_s,
  118. struct wpa_ssid *ssid);
  119. void wpas_dbus_signal_network_selected(struct wpa_supplicant *wpa_s, int id);
  120. void wpas_dbus_signal_network_request(struct wpa_supplicant *wpa_s,
  121. struct wpa_ssid *ssid,
  122. enum wpa_ctrl_req_type rtype,
  123. const char *default_text);
  124. void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s, int success);
  125. void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
  126. const struct wps_credential *cred);
  127. void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
  128. struct wps_event_m2d *m2d);
  129. void wpas_dbus_signal_wps_event_fail(struct wpa_supplicant *wpa_s,
  130. struct wps_event_fail *fail);
  131. void wpas_dbus_signal_wps_event_success(struct wpa_supplicant *wpa_s);
  132. void wpas_dbus_signal_wps_event_pbc_overlap(struct wpa_supplicant *wpa_s);
  133. int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
  134. struct wpa_ssid *ssid);
  135. int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid);
  136. int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
  137. u8 bssid[ETH_ALEN], unsigned int id);
  138. int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
  139. u8 bssid[ETH_ALEN], unsigned int id);
  140. void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
  141. const char *name);
  142. void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
  143. const char *name);
  144. void wpas_dbus_signal_debug_level_changed(struct wpa_global *global);
  145. void wpas_dbus_signal_debug_timestamp_changed(struct wpa_global *global);
  146. void wpas_dbus_signal_debug_show_keys_changed(struct wpa_global *global);
  147. int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr);
  148. void wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s);
  149. void wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
  150. const u8 *dev_addr);
  151. int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
  152. const u8 *dev_addr);
  153. void wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
  154. const u8 *dev_addr);
  155. void wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
  156. const u8 *dev_addr);
  157. void wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
  158. const char *role);
  159. void wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
  160. const u8 *dev_addr, int request,
  161. enum p2p_prov_disc_status status,
  162. u16 config_methods,
  163. unsigned int generated_pin);
  164. void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
  165. const u8 *src, u16 dev_passwd_id,
  166. u8 go_intent);
  167. void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
  168. int client, int persistent,
  169. const u8 *ip);
  170. void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
  171. const char *reason);
  172. void wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
  173. struct wpa_ssid *ssid);
  174. void wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
  175. struct p2p_go_neg_results *res);
  176. void wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
  177. const struct wpa_ssid *ssid);
  178. int wpas_dbus_register_persistent_group(struct wpa_supplicant *wpa_s,
  179. struct wpa_ssid *ssid);
  180. int wpas_dbus_unregister_persistent_group(struct wpa_supplicant *wpa_s,
  181. int nid);
  182. void wpas_dbus_signal_p2p_invitation_result(struct wpa_supplicant *wpa_s,
  183. int status, const u8 *bssid);
  184. void wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
  185. const u8 *member);
  186. void wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s,
  187. int freq, const u8 *sa, u8 dialog_token,
  188. u16 update_indic, const u8 *tlvs,
  189. size_t tlvs_len);
  190. void wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
  191. const u8 *sa, u16 update_indic,
  192. const u8 *tlvs, size_t tlvs_len);
  193. void wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
  194. const u8 *member);
  195. void wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
  196. struct wps_event_fail *fail);
  197. void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
  198. int depth, const char *subject,
  199. const char *altsubject[],
  200. int num_altsubject,
  201. const char *cert_hash,
  202. const struct wpabuf *cert);
  203. void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
  204. const u8 *addr, const u8 *dst, const u8 *bssid,
  205. const u8 *ie, size_t ie_len, u32 ssi_signal);
  206. void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
  207. const char *status, const char *parameter);
  208. void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
  209. const u8 *sta);
  210. void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
  211. const u8 *sta);
  212. void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
  213. const u8 *sa, const u8 *dev_addr,
  214. const u8 *bssid, int id,
  215. int op_freq);
  216. void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
  217. struct wpa_ssid *ssid);
  218. void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
  219. const u8 *meshid, u8 meshid_len,
  220. int reason);
  221. void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
  222. const u8 *peer_addr);
  223. void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
  224. const u8 *peer_addr, int reason);
  225. #else /* CONFIG_CTRL_IFACE_DBUS_NEW */
  226. static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
  227. {
  228. return 0;
  229. }
  230. static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
  231. {
  232. return 0;
  233. }
  234. #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
  235. static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
  236. enum wpas_dbus_prop property)
  237. {
  238. }
  239. static inline void wpas_dbus_bss_signal_prop_changed(
  240. struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property,
  241. unsigned int id)
  242. {
  243. }
  244. static inline void wpas_dbus_signal_network_enabled_changed(
  245. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
  246. {
  247. }
  248. static inline void wpas_dbus_signal_network_selected(
  249. struct wpa_supplicant *wpa_s, int id)
  250. {
  251. }
  252. static inline void wpas_dbus_signal_network_request(
  253. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  254. enum wpa_ctrl_req_type rtype, const char *default_txt)
  255. {
  256. }
  257. static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s,
  258. int success)
  259. {
  260. }
  261. static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
  262. const struct wps_credential *cred)
  263. {
  264. }
  265. static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
  266. struct wps_event_m2d *m2d)
  267. {
  268. }
  269. static inline void wpas_dbus_signal_wps_event_fail(
  270. struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
  271. {
  272. }
  273. static inline void wpas_dbus_signal_wps_event_success(
  274. struct wpa_supplicant *wpa_s)
  275. {
  276. }
  277. static inline void wpas_dbus_signal_wps_event_pbc_overlap(
  278. struct wpa_supplicant *wpa_s)
  279. {
  280. }
  281. static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
  282. struct wpa_ssid *ssid)
  283. {
  284. return 0;
  285. }
  286. static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s,
  287. int nid)
  288. {
  289. return 0;
  290. }
  291. static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
  292. u8 bssid[ETH_ALEN], unsigned int id)
  293. {
  294. return 0;
  295. }
  296. static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
  297. u8 bssid[ETH_ALEN], unsigned int id)
  298. {
  299. return 0;
  300. }
  301. static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
  302. const char *name)
  303. {
  304. }
  305. static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
  306. const char *name)
  307. {
  308. }
  309. static inline void wpas_dbus_signal_debug_level_changed(
  310. struct wpa_global *global)
  311. {
  312. }
  313. static inline void wpas_dbus_signal_debug_timestamp_changed(
  314. struct wpa_global *global)
  315. {
  316. }
  317. static inline void wpas_dbus_signal_debug_show_keys_changed(
  318. struct wpa_global *global)
  319. {
  320. }
  321. static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s,
  322. const u8 *dev_addr)
  323. {
  324. return 0;
  325. }
  326. static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
  327. const u8 *dev_addr)
  328. {
  329. return 0;
  330. }
  331. static inline void
  332. wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
  333. const u8 *dev_addr)
  334. {
  335. }
  336. static inline void
  337. wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
  338. const char *role)
  339. {
  340. }
  341. static inline void
  342. wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
  343. const u8 *dev_addr, int request,
  344. enum p2p_prov_disc_status status,
  345. u16 config_methods,
  346. unsigned int generated_pin)
  347. {
  348. }
  349. static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
  350. const u8 *src,
  351. u16 dev_passwd_id,
  352. u8 go_intent)
  353. {
  354. }
  355. static inline void
  356. wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
  357. int client, int persistent,
  358. const u8 *ip)
  359. {
  360. }
  361. static inline void
  362. wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
  363. const char *reason)
  364. {
  365. }
  366. static inline void
  367. wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
  368. struct wpa_ssid *ssid)
  369. {
  370. }
  371. static inline int wpas_dbus_register_persistent_group(
  372. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
  373. {
  374. return 0;
  375. }
  376. static inline int wpas_dbus_unregister_persistent_group(
  377. struct wpa_supplicant *wpa_s, int nid)
  378. {
  379. return 0;
  380. }
  381. static inline void
  382. wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
  383. struct p2p_go_neg_results *res)
  384. {
  385. }
  386. static inline void
  387. wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
  388. const struct wpa_ssid *ssid)
  389. {
  390. }
  391. static inline void wpas_dbus_signal_p2p_invitation_result(
  392. struct wpa_supplicant *wpa_s, int status,
  393. const u8 *bssid)
  394. {
  395. }
  396. static inline void
  397. wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
  398. const u8 *p2p_if_addr)
  399. {
  400. }
  401. static inline void
  402. wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq,
  403. const u8 *sa, u8 dialog_token, u16 update_indic,
  404. const u8 *tlvs, size_t tlvs_len)
  405. {
  406. }
  407. static inline void
  408. wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
  409. const u8 *sa, u16 update_indic,
  410. const u8 *tlvs, size_t tlvs_len)
  411. {
  412. }
  413. static inline void
  414. wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
  415. const u8 *p2p_if_addr)
  416. {
  417. }
  418. static inline void
  419. wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
  420. const u8 *member)
  421. {
  422. }
  423. static inline void
  424. wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s)
  425. {
  426. }
  427. static inline void
  428. wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
  429. const u8 *dev_addr)
  430. {
  431. }
  432. static inline void
  433. wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
  434. const u8 *dev_addr)
  435. {
  436. }
  437. static inline void
  438. wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
  439. const u8 *member)
  440. {
  441. }
  442. static inline void
  443. wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
  444. struct wps_event_fail *fail)
  445. {
  446. }
  447. static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
  448. int depth,
  449. const char *subject,
  450. const char *altsubject[],
  451. int num_altsubject,
  452. const char *cert_hash,
  453. const struct wpabuf *cert)
  454. {
  455. }
  456. static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
  457. const u8 *addr, const u8 *dst,
  458. const u8 *bssid,
  459. const u8 *ie, size_t ie_len,
  460. u32 ssi_signal)
  461. {
  462. }
  463. static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
  464. const char *status,
  465. const char *parameter)
  466. {
  467. }
  468. static inline
  469. void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
  470. const u8 *sta)
  471. {
  472. }
  473. static inline
  474. void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
  475. const u8 *sta)
  476. {
  477. }
  478. static inline
  479. void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
  480. const u8 *sa, const u8 *dev_addr,
  481. const u8 *bssid, int id,
  482. int op_freq)
  483. {
  484. }
  485. static inline
  486. void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
  487. struct wpa_ssid *ssid)
  488. {
  489. }
  490. static inline
  491. void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
  492. const u8 *meshid, u8 meshid_len,
  493. int reason)
  494. {
  495. }
  496. static inline
  497. void wpas_dbus_signal_mesh_peer_connected(struct wpa_supplicant *wpa_s,
  498. const u8 *peer_addr)
  499. {
  500. }
  501. static inline
  502. void wpas_dbus_signal_mesh_peer_disconnected(struct wpa_supplicant *wpa_s,
  503. const u8 *peer_addr, int reason)
  504. {
  505. }
  506. #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
  507. #endif /* CTRL_IFACE_DBUS_H_NEW */