dbus_new.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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. #else /* CONFIG_CTRL_IFACE_DBUS_NEW */
  222. static inline int wpas_dbus_register_interface(struct wpa_supplicant *wpa_s)
  223. {
  224. return 0;
  225. }
  226. static inline int wpas_dbus_unregister_interface(struct wpa_supplicant *wpa_s)
  227. {
  228. return 0;
  229. }
  230. #define wpas_dbus_signal_state_changed(w, n, o) do { } while (0)
  231. static inline void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
  232. enum wpas_dbus_prop property)
  233. {
  234. }
  235. static inline void wpas_dbus_bss_signal_prop_changed(
  236. struct wpa_supplicant *wpa_s, enum wpas_dbus_bss_prop property,
  237. unsigned int id)
  238. {
  239. }
  240. static inline void wpas_dbus_signal_network_enabled_changed(
  241. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
  242. {
  243. }
  244. static inline void wpas_dbus_signal_network_selected(
  245. struct wpa_supplicant *wpa_s, int id)
  246. {
  247. }
  248. static inline void wpas_dbus_signal_network_request(
  249. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  250. enum wpa_ctrl_req_type rtype, const char *default_txt)
  251. {
  252. }
  253. static inline void wpas_dbus_signal_scan_done(struct wpa_supplicant *wpa_s,
  254. int success)
  255. {
  256. }
  257. static inline void wpas_dbus_signal_wps_cred(struct wpa_supplicant *wpa_s,
  258. const struct wps_credential *cred)
  259. {
  260. }
  261. static inline void wpas_dbus_signal_wps_event_m2d(struct wpa_supplicant *wpa_s,
  262. struct wps_event_m2d *m2d)
  263. {
  264. }
  265. static inline void wpas_dbus_signal_wps_event_fail(
  266. struct wpa_supplicant *wpa_s, struct wps_event_fail *fail)
  267. {
  268. }
  269. static inline void wpas_dbus_signal_wps_event_success(
  270. struct wpa_supplicant *wpa_s)
  271. {
  272. }
  273. static inline void wpas_dbus_signal_wps_event_pbc_overlap(
  274. struct wpa_supplicant *wpa_s)
  275. {
  276. }
  277. static inline int wpas_dbus_register_network(struct wpa_supplicant *wpa_s,
  278. struct wpa_ssid *ssid)
  279. {
  280. return 0;
  281. }
  282. static inline int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s,
  283. int nid)
  284. {
  285. return 0;
  286. }
  287. static inline int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
  288. u8 bssid[ETH_ALEN], unsigned int id)
  289. {
  290. return 0;
  291. }
  292. static inline int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
  293. u8 bssid[ETH_ALEN], unsigned int id)
  294. {
  295. return 0;
  296. }
  297. static inline void wpas_dbus_signal_blob_added(struct wpa_supplicant *wpa_s,
  298. const char *name)
  299. {
  300. }
  301. static inline void wpas_dbus_signal_blob_removed(struct wpa_supplicant *wpa_s,
  302. const char *name)
  303. {
  304. }
  305. static inline void wpas_dbus_signal_debug_level_changed(
  306. struct wpa_global *global)
  307. {
  308. }
  309. static inline void wpas_dbus_signal_debug_timestamp_changed(
  310. struct wpa_global *global)
  311. {
  312. }
  313. static inline void wpas_dbus_signal_debug_show_keys_changed(
  314. struct wpa_global *global)
  315. {
  316. }
  317. static inline int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s,
  318. const u8 *dev_addr)
  319. {
  320. return 0;
  321. }
  322. static inline int wpas_dbus_unregister_peer(struct wpa_supplicant *wpa_s,
  323. const u8 *dev_addr)
  324. {
  325. return 0;
  326. }
  327. static inline void
  328. wpas_dbus_signal_peer_groups_changed(struct wpa_supplicant *wpa_s,
  329. const u8 *dev_addr)
  330. {
  331. }
  332. static inline void
  333. wpas_dbus_signal_p2p_group_removed(struct wpa_supplicant *wpa_s,
  334. const char *role)
  335. {
  336. }
  337. static inline void
  338. wpas_dbus_signal_p2p_provision_discovery(struct wpa_supplicant *wpa_s,
  339. const u8 *dev_addr, int request,
  340. enum p2p_prov_disc_status status,
  341. u16 config_methods,
  342. unsigned int generated_pin)
  343. {
  344. }
  345. static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s,
  346. const u8 *src,
  347. u16 dev_passwd_id,
  348. u8 go_intent)
  349. {
  350. }
  351. static inline void
  352. wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s,
  353. int client, int persistent,
  354. const u8 *ip)
  355. {
  356. }
  357. static inline void
  358. wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s,
  359. const char *reason)
  360. {
  361. }
  362. static inline void
  363. wpas_dbus_register_p2p_group(struct wpa_supplicant *wpa_s,
  364. struct wpa_ssid *ssid)
  365. {
  366. }
  367. static inline int wpas_dbus_register_persistent_group(
  368. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
  369. {
  370. return 0;
  371. }
  372. static inline int wpas_dbus_unregister_persistent_group(
  373. struct wpa_supplicant *wpa_s, int nid)
  374. {
  375. return 0;
  376. }
  377. static inline void
  378. wpas_dbus_signal_p2p_go_neg_resp(struct wpa_supplicant *wpa_s,
  379. struct p2p_go_neg_results *res)
  380. {
  381. }
  382. static inline void
  383. wpas_dbus_unregister_p2p_group(struct wpa_supplicant *wpa_s,
  384. const struct wpa_ssid *ssid)
  385. {
  386. }
  387. static inline void wpas_dbus_signal_p2p_invitation_result(
  388. struct wpa_supplicant *wpa_s, int status,
  389. const u8 *bssid)
  390. {
  391. }
  392. static inline void
  393. wpas_dbus_register_p2p_groupmember(struct wpa_supplicant *wpa_s,
  394. const u8 *p2p_if_addr)
  395. {
  396. }
  397. static inline void
  398. wpas_dbus_signal_p2p_sd_request(struct wpa_supplicant *wpa_s, int freq,
  399. const u8 *sa, u8 dialog_token, u16 update_indic,
  400. const u8 *tlvs, size_t tlvs_len)
  401. {
  402. }
  403. static inline void
  404. wpas_dbus_signal_p2p_sd_response(struct wpa_supplicant *wpa_s,
  405. const u8 *sa, u16 update_indic,
  406. const u8 *tlvs, size_t tlvs_len)
  407. {
  408. }
  409. static inline void
  410. wpas_dbus_unregister_p2p_groupmember(struct wpa_supplicant *wpa_s,
  411. const u8 *p2p_if_addr)
  412. {
  413. }
  414. static inline void
  415. wpas_dbus_signal_p2p_peer_joined(struct wpa_supplicant *wpa_s,
  416. const u8 *member)
  417. {
  418. }
  419. static inline void
  420. wpas_dbus_signal_p2p_find_stopped(struct wpa_supplicant *wpa_s)
  421. {
  422. }
  423. static inline void
  424. wpas_dbus_signal_peer_device_found(struct wpa_supplicant *wpa_s,
  425. const u8 *dev_addr)
  426. {
  427. }
  428. static inline void
  429. wpas_dbus_signal_peer_device_lost(struct wpa_supplicant *wpa_s,
  430. const u8 *dev_addr)
  431. {
  432. }
  433. static inline void
  434. wpas_dbus_signal_p2p_peer_disconnected(struct wpa_supplicant *wpa_s,
  435. const u8 *member)
  436. {
  437. }
  438. static inline void
  439. wpas_dbus_signal_p2p_wps_failed(struct wpa_supplicant *wpa_s,
  440. struct wps_event_fail *fail)
  441. {
  442. }
  443. static inline void wpas_dbus_signal_certification(struct wpa_supplicant *wpa_s,
  444. int depth,
  445. const char *subject,
  446. const char *altsubject[],
  447. int num_altsubject,
  448. const char *cert_hash,
  449. const struct wpabuf *cert)
  450. {
  451. }
  452. static inline void wpas_dbus_signal_preq(struct wpa_supplicant *wpa_s,
  453. const u8 *addr, const u8 *dst,
  454. const u8 *bssid,
  455. const u8 *ie, size_t ie_len,
  456. u32 ssi_signal)
  457. {
  458. }
  459. static inline void wpas_dbus_signal_eap_status(struct wpa_supplicant *wpa_s,
  460. const char *status,
  461. const char *parameter)
  462. {
  463. }
  464. static inline
  465. void wpas_dbus_signal_sta_authorized(struct wpa_supplicant *wpa_s,
  466. const u8 *sta)
  467. {
  468. }
  469. static inline
  470. void wpas_dbus_signal_sta_deauthorized(struct wpa_supplicant *wpa_s,
  471. const u8 *sta)
  472. {
  473. }
  474. static inline
  475. void wpas_dbus_signal_p2p_invitation_received(struct wpa_supplicant *wpa_s,
  476. const u8 *sa, const u8 *dev_addr,
  477. const u8 *bssid, int id,
  478. int op_freq)
  479. {
  480. }
  481. static inline
  482. void wpas_dbus_signal_mesh_group_started(struct wpa_supplicant *wpa_s,
  483. struct wpa_ssid *ssid)
  484. {
  485. }
  486. static inline
  487. void wpas_dbus_signal_mesh_group_removed(struct wpa_supplicant *wpa_s,
  488. const u8 *meshid, u8 meshid_len,
  489. int reason)
  490. {
  491. }
  492. #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
  493. #endif /* CTRL_IFACE_DBUS_H_NEW */