dbus_new.h 16 KB

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