shill: wimax: Handle vanishing RPC devices promptly.

As soon as an RPC device vanishes, destroy its proxy, fail any
associated services and disable the device. This ensures that we won't
try to explicitly call Disable on the non-existent RPC device and
prevents any race between the RPC device disappearing and then
appearing shortly thereafter -- shill will create a new WiMax device
for the new device instance. Disabling the device also clears the live
network set and updates the provider state.

Also, promote basic WiMAX create/destroy logging to the INFO level.

BUG=chrome-os-partner:9832
TEST=unit tests

Change-Id: Ib4467f2f6c9dfb58c8b73173923b0bd9535dbb61
Reviewed-on: https://gerrit.chromium.org/gerrit/24379
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Reviewed-by: Ben Chan <benchan@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
6 files changed
tree: 696a4dc2967adb562d60c214e1bcde4580fb7c48
  1. dbus_bindings/
  2. doc/
  3. .gitignore
  4. accessor_interface.h
  5. adaptor_interfaces.h
  6. async_connection.cc
  7. async_connection.h
  8. async_connection_unittest.cc
  9. byte_string.cc
  10. byte_string.h
  11. byte_string_unittest.cc
  12. callbacks.h
  13. cellular.cc
  14. cellular.h
  15. cellular_capability.cc
  16. cellular_capability.h
  17. cellular_capability_cdma.cc
  18. cellular_capability_cdma.h
  19. cellular_capability_cdma_unittest.cc
  20. cellular_capability_classic.cc
  21. cellular_capability_classic.h
  22. cellular_capability_classic_unittest.cc
  23. cellular_capability_gsm.cc
  24. cellular_capability_gsm.h
  25. cellular_capability_gsm_unittest.cc
  26. cellular_capability_universal.cc
  27. cellular_capability_universal.h
  28. cellular_capability_universal_unittest.cc
  29. cellular_error.cc
  30. cellular_error.h
  31. cellular_service.cc
  32. cellular_service.h
  33. cellular_service_unittest.cc
  34. cellular_unittest.cc
  35. connection.cc
  36. connection.h
  37. connection_unittest.cc
  38. control_interface.h
  39. crypto_des_cbc.cc
  40. crypto_des_cbc.h
  41. crypto_des_cbc_unittest.cc
  42. crypto_interface.h
  43. crypto_provider.cc
  44. crypto_provider.h
  45. crypto_provider_unittest.cc
  46. crypto_rot47.cc
  47. crypto_rot47.h
  48. crypto_rot47_unittest.cc
  49. dbus_adaptor.cc
  50. dbus_adaptor.h
  51. dbus_adaptor_unittest.cc
  52. dbus_control.cc
  53. dbus_control.h
  54. dbus_objectmanager_proxy.cc
  55. dbus_objectmanager_proxy.h
  56. dbus_objectmanager_proxy_interface.h
  57. dbus_properties.cc
  58. dbus_properties.h
  59. dbus_properties_proxy.cc
  60. dbus_properties_proxy.h
  61. dbus_properties_proxy_interface.h
  62. dbus_properties_unittest.cc
  63. dbus_property_matchers.h
  64. default_profile.cc
  65. default_profile.h
  66. default_profile_unittest.cc
  67. device.cc
  68. device.h
  69. device_dbus_adaptor.cc
  70. device_dbus_adaptor.h
  71. device_info.cc
  72. device_info.h
  73. device_info_unittest.cc
  74. device_stub.h
  75. device_unittest.cc
  76. dhcp_config.cc
  77. dhcp_config.h
  78. dhcp_config_unittest.cc
  79. dhcp_provider.cc
  80. dhcp_provider.h
  81. dhcp_provider_unittest.cc
  82. dhcp_proxy_interface.h
  83. dhcpcd_proxy.cc
  84. dhcpcd_proxy.h
  85. dns_client.cc
  86. dns_client.h
  87. dns_client_unittest.cc
  88. endpoint.cc
  89. endpoint.h
  90. ephemeral_profile.cc
  91. ephemeral_profile.h
  92. error.cc
  93. error.h
  94. error_unittest.cc
  95. ethernet.cc
  96. ethernet.h
  97. ethernet_service.cc
  98. ethernet_service.h
  99. event_dispatcher.cc
  100. event_dispatcher.h
  101. glib.cc
  102. glib.h
  103. glib_io_input_handler.cc
  104. glib_io_input_handler.h
  105. glib_io_ready_handler.cc
  106. glib_io_ready_handler.h
  107. HACKING
  108. hook_table.cc
  109. hook_table.h
  110. hook_table_unittest.cc
  111. http_proxy.cc
  112. http_proxy.h
  113. http_proxy_unittest.cc
  114. http_request.cc
  115. http_request.h
  116. http_request_unittest.cc
  117. http_url.cc
  118. http_url.h
  119. http_url_unittest.cc
  120. ieee80211.h
  121. io_handler.h
  122. ip_address.cc
  123. ip_address.h
  124. ip_address_unittest.cc
  125. ipconfig.cc
  126. ipconfig.h
  127. ipconfig_dbus_adaptor.cc
  128. ipconfig_dbus_adaptor.h
  129. ipconfig_unittest.cc
  130. key_file_store.cc
  131. key_file_store.h
  132. key_file_store_unittest.cc
  133. key_value_store.cc
  134. key_value_store.h
  135. key_value_store_matcher.h
  136. key_value_store_unittest.cc
  137. l2tp_ipsec_driver.cc
  138. l2tp_ipsec_driver.h
  139. l2tp_ipsec_driver_unittest.cc
  140. LICENSE
  141. Makefile
  142. manager.cc
  143. manager.h
  144. manager_dbus_adaptor.cc
  145. manager_dbus_adaptor.h
  146. manager_unittest.cc
  147. metrics.cc
  148. metrics.h
  149. metrics_unittest.cc
  150. minijail.cc
  151. minijail.h
  152. mm1_modem_modem3gpp_proxy.cc
  153. mm1_modem_modem3gpp_proxy.h
  154. mm1_modem_modem3gpp_proxy_interface.h
  155. mm1_modem_modemcdma_proxy.cc
  156. mm1_modem_modemcdma_proxy.h
  157. mm1_modem_modemcdma_proxy_interface.h
  158. mm1_modem_proxy.cc
  159. mm1_modem_proxy.h
  160. mm1_modem_proxy_interface.h
  161. mm1_modem_simple_proxy.cc
  162. mm1_modem_simple_proxy.h
  163. mm1_modem_simple_proxy_interface.h
  164. mm1_sim_proxy.cc
  165. mm1_sim_proxy.h
  166. mm1_sim_proxy_interface.h
  167. mock_adaptors.cc
  168. mock_adaptors.h
  169. mock_ares.cc
  170. mock_ares.h
  171. mock_async_connection.cc
  172. mock_async_connection.h
  173. mock_cellular.cc
  174. mock_cellular.h
  175. mock_cellular_service.cc
  176. mock_cellular_service.h
  177. mock_connection.cc
  178. mock_connection.h
  179. mock_control.cc
  180. mock_control.h
  181. mock_dbus_objectmanager_proxy.cc
  182. mock_dbus_objectmanager_proxy.h
  183. mock_dbus_properties_proxy.cc
  184. mock_dbus_properties_proxy.h
  185. mock_device.cc
  186. mock_device.h
  187. mock_device_info.cc
  188. mock_device_info.h
  189. mock_dhcp_config.cc
  190. mock_dhcp_config.h
  191. mock_dhcp_provider.cc
  192. mock_dhcp_provider.h
  193. mock_dhcp_proxy.cc
  194. mock_dhcp_proxy.h
  195. mock_dns_client.cc
  196. mock_dns_client.h
  197. mock_event_dispatcher.cc
  198. mock_event_dispatcher.h
  199. mock_glib.cc
  200. mock_glib.h
  201. mock_http_request.cc
  202. mock_http_request.h
  203. mock_ipconfig.cc
  204. mock_ipconfig.h
  205. mock_log.cc
  206. mock_log.h
  207. mock_log_unittest.cc
  208. mock_manager.cc
  209. mock_manager.h
  210. mock_metrics.cc
  211. mock_metrics.h
  212. mock_minijail.cc
  213. mock_minijail.h
  214. mock_mm1_modem_modem3gpp_proxy.cc
  215. mock_mm1_modem_modem3gpp_proxy.h
  216. mock_mm1_modem_modemcdma_proxy.cc
  217. mock_mm1_modem_modemcdma_proxy.h
  218. mock_mm1_modem_proxy.cc
  219. mock_mm1_modem_proxy.h
  220. mock_mm1_modem_simple_proxy.cc
  221. mock_mm1_modem_simple_proxy.h
  222. mock_mm1_sim_proxy.cc
  223. mock_mm1_sim_proxy.h
  224. mock_modem.cc
  225. mock_modem.h
  226. mock_modem_cdma_proxy.cc
  227. mock_modem_cdma_proxy.h
  228. mock_modem_gsm_card_proxy.cc
  229. mock_modem_gsm_card_proxy.h
  230. mock_modem_gsm_network_proxy.cc
  231. mock_modem_gsm_network_proxy.h
  232. mock_modem_info.cc
  233. mock_modem_info.h
  234. mock_modem_manager_proxy.cc
  235. mock_modem_manager_proxy.h
  236. mock_modem_proxy.cc
  237. mock_modem_proxy.h
  238. mock_modem_simple_proxy.cc
  239. mock_modem_simple_proxy.h
  240. mock_nss.cc
  241. mock_nss.h
  242. mock_openvpn_driver.cc
  243. mock_openvpn_driver.h
  244. mock_openvpn_management_server.cc
  245. mock_openvpn_management_server.h
  246. mock_portal_detector.cc
  247. mock_portal_detector.h
  248. mock_power_manager.cc
  249. mock_power_manager.h
  250. mock_power_manager_proxy.cc
  251. mock_power_manager_proxy.h
  252. mock_profile.cc
  253. mock_profile.h
  254. mock_property_store.cc
  255. mock_property_store.h
  256. mock_proxy_factory.cc
  257. mock_proxy_factory.h
  258. mock_resolver.cc
  259. mock_resolver.h
  260. mock_routing_table.cc
  261. mock_routing_table.h
  262. mock_rtnl_handler.cc
  263. mock_rtnl_handler.h
  264. mock_service.cc
  265. mock_service.h
  266. mock_sockets.cc
  267. mock_sockets.h
  268. mock_store.cc
  269. mock_store.h
  270. mock_supplicant_bss_proxy.cc
  271. mock_supplicant_bss_proxy.h
  272. mock_supplicant_interface_proxy.cc
  273. mock_supplicant_interface_proxy.h
  274. mock_supplicant_process_proxy.cc
  275. mock_supplicant_process_proxy.h
  276. mock_time.cc
  277. mock_time.h
  278. mock_vpn.cc
  279. mock_vpn.h
  280. mock_vpn_driver.cc
  281. mock_vpn_driver.h
  282. mock_vpn_provider.cc
  283. mock_vpn_provider.h
  284. mock_vpn_service.cc
  285. mock_vpn_service.h
  286. mock_wifi.cc
  287. mock_wifi.h
  288. mock_wifi_service.cc
  289. mock_wifi_service.h
  290. mock_wimax.cc
  291. mock_wimax.h
  292. mock_wimax_device_proxy.cc
  293. mock_wimax_device_proxy.h
  294. mock_wimax_manager_proxy.cc
  295. mock_wimax_manager_proxy.h
  296. mock_wimax_network_proxy.cc
  297. mock_wimax_network_proxy.h
  298. mock_wimax_provider.cc
  299. mock_wimax_provider.h
  300. mock_wimax_service.cc
  301. mock_wimax_service.h
  302. modem.cc
  303. modem.h
  304. modem_1.cc
  305. modem_1_unittest.cc
  306. modem_cdma_proxy.cc
  307. modem_cdma_proxy.h
  308. modem_cdma_proxy_interface.h
  309. modem_classic.cc
  310. modem_gsm_card_proxy.cc
  311. modem_gsm_card_proxy.h
  312. modem_gsm_card_proxy_interface.h
  313. modem_gsm_network_proxy.cc
  314. modem_gsm_network_proxy.h
  315. modem_gsm_network_proxy_interface.h
  316. modem_info.cc
  317. modem_info.h
  318. modem_info_unittest.cc
  319. modem_manager.cc
  320. modem_manager.h
  321. modem_manager_proxy.cc
  322. modem_manager_proxy.h
  323. modem_manager_proxy_interface.h
  324. modem_manager_unittest.cc
  325. modem_proxy.cc
  326. modem_proxy.h
  327. modem_proxy_interface.h
  328. modem_simple_proxy.cc
  329. modem_simple_proxy.h
  330. modem_simple_proxy_interface.h
  331. modem_unittest.cc
  332. nice_mock_control.cc
  333. nice_mock_control.h
  334. nss.cc
  335. nss.h
  336. nss_unittest.cc
  337. openvpn_driver.cc
  338. openvpn_driver.h
  339. openvpn_driver_unittest.cc
  340. openvpn_management_server.cc
  341. openvpn_management_server.h
  342. openvpn_management_server_unittest.cc
  343. portal_detector.cc
  344. portal_detector.h
  345. portal_detector_unittest.cc
  346. power_manager.cc
  347. power_manager.h
  348. power_manager_proxy.cc
  349. power_manager_proxy.h
  350. power_manager_proxy_interface.h
  351. power_manager_unittest.cc
  352. profile.cc
  353. profile.h
  354. profile_dbus_adaptor.cc
  355. profile_dbus_adaptor.h
  356. profile_dbus_property_exporter.cc
  357. profile_dbus_property_exporter.h
  358. profile_dbus_property_exporter_unittest.cc
  359. profile_unittest.cc
  360. property_accessor.h
  361. property_accessor_unittest.cc
  362. property_iterator.h
  363. property_store.cc
  364. property_store.h
  365. property_store_inspector.cc
  366. property_store_inspector.h
  367. property_store_unittest.cc
  368. property_store_unittest.h
  369. provider_db_unittest.bfd
  370. proxy_factory.cc
  371. proxy_factory.h
  372. refptr_types.h
  373. resolver.cc
  374. resolver.h
  375. resolver_unittest.cc
  376. routing_table.cc
  377. routing_table.h
  378. routing_table_entry.h
  379. routing_table_unittest.cc
  380. rpc_task.cc
  381. rpc_task.h
  382. rpc_task_dbus_adaptor.cc
  383. rpc_task_dbus_adaptor.h
  384. rpc_task_unittest.cc
  385. rtnl_handler.cc
  386. rtnl_handler.h
  387. rtnl_handler_unittest.cc
  388. rtnl_listener.cc
  389. rtnl_listener.h
  390. rtnl_listener_unittest.cc
  391. rtnl_message.cc
  392. rtnl_message.h
  393. rtnl_message_unittest.cc
  394. scope_logger.cc
  395. scope_logger.h
  396. scope_logger_unittest.cc
  397. service.cc
  398. service.h
  399. service_dbus_adaptor.cc
  400. service_dbus_adaptor.h
  401. service_sorter.h
  402. service_under_test.cc
  403. service_under_test.h
  404. service_unittest.cc
  405. shill.conf
  406. shill_ares.cc
  407. shill_ares.h
  408. shill_config.cc
  409. shill_config.h
  410. shill_daemon.cc
  411. shill_daemon.h
  412. shill_main.cc
  413. shill_test_config.cc
  414. shill_test_config.h
  415. shill_time.cc
  416. shill_time.h
  417. shill_unittest.cc
  418. sockets.cc
  419. sockets.h
  420. static_ip_parameters.cc
  421. static_ip_parameters.h
  422. static_ip_parameters_unittest.cc
  423. store_interface.h
  424. supplicant_bss_proxy.cc
  425. supplicant_bss_proxy.h
  426. supplicant_bss_proxy_interface.h
  427. supplicant_interface_proxy.cc
  428. supplicant_interface_proxy.h
  429. supplicant_interface_proxy_interface.h
  430. supplicant_process_proxy.cc
  431. supplicant_process_proxy.h
  432. supplicant_process_proxy_interface.h
  433. technology.cc
  434. technology.h
  435. technology_unittest.cc
  436. TESTING
  437. testrunner.cc
  438. virtio_ethernet.cc
  439. virtio_ethernet.h
  440. vpn.cc
  441. vpn.h
  442. vpn_driver.cc
  443. vpn_driver.h
  444. vpn_driver_unittest.cc
  445. vpn_provider.cc
  446. vpn_provider.h
  447. vpn_provider_unittest.cc
  448. vpn_service.cc
  449. vpn_service.h
  450. vpn_service_unittest.cc
  451. vpn_unittest.cc
  452. wifi.cc
  453. wifi.h
  454. wifi_endpoint.cc
  455. wifi_endpoint.h
  456. wifi_endpoint_unittest.cc
  457. wifi_service.cc
  458. wifi_service.h
  459. wifi_service_unittest.cc
  460. wifi_unittest.cc
  461. wimax.cc
  462. wimax.h
  463. wimax_device_proxy.cc
  464. wimax_device_proxy.h
  465. wimax_device_proxy_interface.h
  466. wimax_manager_proxy.cc
  467. wimax_manager_proxy.h
  468. wimax_manager_proxy_interface.h
  469. wimax_network_proxy.cc
  470. wimax_network_proxy.h
  471. wimax_network_proxy_interface.h
  472. wimax_provider.cc
  473. wimax_provider.h
  474. wimax_provider_unittest.cc
  475. wimax_service.cc
  476. wimax_service.h
  477. wimax_service_unittest.cc
  478. wimax_unittest.cc
  479. wpa_supplicant.cc
  480. wpa_supplicant.h