shill: WiFiProvider: Add visible networks by security class

When a service is created due to a visible endpoint, create a service
with the generic security parameter (e.g., WPA -> PSK).  This allows
us to set the security of the service once, and not have to re-assign
this based on the visibility of WPA / RSN endpoints that may come
along later.  This will allow wpa_supplicant configurations that we
create based on this service to connect to either type of endpoint.

BUG=chromium-os:39813
TEST=Unit tests

Change-Id: I1da4224c73f1be3aad49ce57e3939149ec3f2668
Reviewed-on: https://gerrit.chromium.org/gerrit/45121
Tested-by: Ashok Nagarajan <asnagarajan@chromium.org>
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Paul Stewart <pstew@chromium.org>
5 files changed
tree: 4a2cb712b6c06c6c0e174ab18dcc899495a20e76
  1. bin/
  2. data/
  3. dbus_bindings/
  4. doc/
  5. shims/
  6. test-scripts/
  7. .gitignore
  8. accessor_interface.h
  9. activating_iccid_store.cc
  10. activating_iccid_store.h
  11. activating_iccid_store_unittest.cc
  12. adaptor_interfaces.h
  13. arp_client.cc
  14. arp_client.h
  15. arp_client_unittest.cc
  16. arp_packet.cc
  17. arp_packet.h
  18. arp_packet_unittest.cc
  19. async_connection.cc
  20. async_connection.h
  21. async_connection_unittest.cc
  22. attribute_list.cc
  23. attribute_list.h
  24. byte_string.cc
  25. byte_string.h
  26. byte_string_unittest.cc
  27. callback80211_metrics.cc
  28. callback80211_metrics.h
  29. callback80211_object.cc
  30. callback80211_object.h
  31. callbacks.h
  32. cellular.cc
  33. cellular.h
  34. cellular_capability.cc
  35. cellular_capability.h
  36. cellular_capability_cdma.cc
  37. cellular_capability_cdma.h
  38. cellular_capability_cdma_unittest.cc
  39. cellular_capability_classic.cc
  40. cellular_capability_classic.h
  41. cellular_capability_classic_unittest.cc
  42. cellular_capability_gsm.cc
  43. cellular_capability_gsm.h
  44. cellular_capability_gsm_unittest.cc
  45. cellular_capability_universal.cc
  46. cellular_capability_universal.h
  47. cellular_capability_universal_unittest.cc
  48. cellular_error.cc
  49. cellular_error.h
  50. cellular_operator_info.cc
  51. cellular_operator_info.h
  52. cellular_operator_info_unittest.cc
  53. cellular_service.cc
  54. cellular_service.h
  55. cellular_service_unittest.cc
  56. cellular_unittest.cc
  57. config80211.cc
  58. config80211.h
  59. config80211_unittest.cc
  60. connection.cc
  61. connection.h
  62. connection_unittest.cc
  63. control_interface.h
  64. control_netlink_attribute.cc
  65. control_netlink_attribute.h
  66. crypto_des_cbc.cc
  67. crypto_des_cbc.h
  68. crypto_des_cbc_unittest.cc
  69. crypto_interface.h
  70. crypto_provider.cc
  71. crypto_provider.h
  72. crypto_provider_unittest.cc
  73. crypto_rot47.cc
  74. crypto_rot47.h
  75. crypto_rot47_unittest.cc
  76. crypto_util_proxy.cc
  77. crypto_util_proxy.h
  78. crypto_util_proxy_unittest.cc
  79. dbus_adaptor.cc
  80. dbus_adaptor.h
  81. dbus_adaptor_unittest.cc
  82. dbus_control.cc
  83. dbus_control.h
  84. dbus_manager.cc
  85. dbus_manager.h
  86. dbus_manager_unittest.cc
  87. dbus_objectmanager_proxy.cc
  88. dbus_objectmanager_proxy.h
  89. dbus_objectmanager_proxy_interface.h
  90. dbus_properties.cc
  91. dbus_properties.h
  92. dbus_properties_proxy.cc
  93. dbus_properties_proxy.h
  94. dbus_properties_proxy_interface.h
  95. dbus_properties_unittest.cc
  96. dbus_property_matchers.h
  97. dbus_service_proxy.cc
  98. dbus_service_proxy.h
  99. dbus_service_proxy_interface.h
  100. default_profile.cc
  101. default_profile.h
  102. default_profile_unittest.cc
  103. device.cc
  104. device.h
  105. device_dbus_adaptor.cc
  106. device_dbus_adaptor.h
  107. device_info.cc
  108. device_info.h
  109. device_info_unittest.cc
  110. device_stub.h
  111. device_unittest.cc
  112. dhcp_config.cc
  113. dhcp_config.h
  114. dhcp_config_unittest.cc
  115. dhcp_provider.cc
  116. dhcp_provider.h
  117. dhcp_provider_unittest.cc
  118. dhcp_proxy_interface.h
  119. dhcpcd_proxy.cc
  120. dhcpcd_proxy.h
  121. diagnostics_reporter.cc
  122. diagnostics_reporter.h
  123. diagnostics_reporter_unittest.cc
  124. dns_client.cc
  125. dns_client.h
  126. dns_client_unittest.cc
  127. endpoint.cc
  128. endpoint.h
  129. ephemeral_profile.cc
  130. ephemeral_profile.h
  131. error.cc
  132. error.h
  133. error_unittest.cc
  134. ethernet.cc
  135. ethernet.h
  136. ethernet_service.cc
  137. ethernet_service.h
  138. ethernet_service_unittest.cc
  139. event_dispatcher.cc
  140. event_dispatcher.h
  141. file_io.cc
  142. file_io.h
  143. file_reader.cc
  144. file_reader.h
  145. file_reader_unittest.cc
  146. geolocation_info.cc
  147. geolocation_info.h
  148. glib.cc
  149. glib.h
  150. glib_io_input_handler.cc
  151. glib_io_input_handler.h
  152. glib_io_ready_handler.cc
  153. glib_io_ready_handler.h
  154. HACKING
  155. hook_table.cc
  156. hook_table.h
  157. hook_table_unittest.cc
  158. http_proxy.cc
  159. http_proxy.h
  160. http_proxy_unittest.cc
  161. http_request.cc
  162. http_request.h
  163. http_request_unittest.cc
  164. http_url.cc
  165. http_url.h
  166. http_url_unittest.cc
  167. ieee80211.h
  168. io_handler.h
  169. ip_address.cc
  170. ip_address.h
  171. ip_address_unittest.cc
  172. ipconfig.cc
  173. ipconfig.h
  174. ipconfig_dbus_adaptor.cc
  175. ipconfig_dbus_adaptor.h
  176. ipconfig_unittest.cc
  177. key_file_store.cc
  178. key_file_store.h
  179. key_file_store_unittest.cc
  180. key_value_store.cc
  181. key_value_store.h
  182. key_value_store_matcher.h
  183. key_value_store_unittest.cc
  184. l2tp_ipsec_driver.cc
  185. l2tp_ipsec_driver.h
  186. l2tp_ipsec_driver_unittest.cc
  187. LICENSE
  188. link_monitor.cc
  189. link_monitor.h
  190. link_monitor_unittest.cc
  191. logging.h
  192. Makefile
  193. manager.cc
  194. manager.h
  195. manager_dbus_adaptor.cc
  196. manager_dbus_adaptor.h
  197. manager_unittest.cc
  198. memory_log.cc
  199. memory_log.h
  200. memory_log_unittest.cc
  201. metrics.cc
  202. metrics.h
  203. metrics_unittest.cc
  204. minijail.cc
  205. minijail.h
  206. mm1_bearer_proxy.cc
  207. mm1_bearer_proxy.h
  208. mm1_bearer_proxy_interface.h
  209. mm1_modem_location_proxy.cc
  210. mm1_modem_location_proxy.h
  211. mm1_modem_location_proxy_interface.h
  212. mm1_modem_modem3gpp_proxy.cc
  213. mm1_modem_modem3gpp_proxy.h
  214. mm1_modem_modem3gpp_proxy_interface.h
  215. mm1_modem_modemcdma_proxy.cc
  216. mm1_modem_modemcdma_proxy.h
  217. mm1_modem_modemcdma_proxy_interface.h
  218. mm1_modem_proxy.cc
  219. mm1_modem_proxy.h
  220. mm1_modem_proxy_interface.h
  221. mm1_modem_simple_proxy.cc
  222. mm1_modem_simple_proxy.h
  223. mm1_modem_simple_proxy_interface.h
  224. mm1_modem_time_proxy.cc
  225. mm1_modem_time_proxy.h
  226. mm1_modem_time_proxy_interface.h
  227. mm1_sim_proxy.cc
  228. mm1_sim_proxy.h
  229. mm1_sim_proxy_interface.h
  230. mock_activating_iccid_store.cc
  231. mock_activating_iccid_store.h
  232. mock_adaptors.cc
  233. mock_adaptors.h
  234. mock_ares.cc
  235. mock_ares.h
  236. mock_arp_client.cc
  237. mock_arp_client.h
  238. mock_async_connection.cc
  239. mock_async_connection.h
  240. mock_cellular.cc
  241. mock_cellular.h
  242. mock_cellular_operator_info.cc
  243. mock_cellular_operator_info.h
  244. mock_cellular_service.cc
  245. mock_cellular_service.h
  246. mock_connection.cc
  247. mock_connection.h
  248. mock_control.cc
  249. mock_control.h
  250. mock_crypto_util_proxy.h
  251. mock_dbus_manager.cc
  252. mock_dbus_manager.h
  253. mock_dbus_objectmanager_proxy.cc
  254. mock_dbus_objectmanager_proxy.h
  255. mock_dbus_properties_proxy.cc
  256. mock_dbus_properties_proxy.h
  257. mock_dbus_service_proxy.cc
  258. mock_dbus_service_proxy.h
  259. mock_device.cc
  260. mock_device.h
  261. mock_device_info.cc
  262. mock_device_info.h
  263. mock_dhcp_config.cc
  264. mock_dhcp_config.h
  265. mock_dhcp_provider.cc
  266. mock_dhcp_provider.h
  267. mock_dhcp_proxy.cc
  268. mock_dhcp_proxy.h
  269. mock_diagnostics_reporter.cc
  270. mock_diagnostics_reporter.h
  271. mock_dns_client.cc
  272. mock_dns_client.h
  273. mock_ethernet.cc
  274. mock_ethernet.h
  275. mock_event_dispatcher.cc
  276. mock_event_dispatcher.h
  277. mock_file_io.h
  278. mock_glib.cc
  279. mock_glib.h
  280. mock_handler80211_object.h
  281. mock_http_request.cc
  282. mock_http_request.h
  283. mock_ipconfig.cc
  284. mock_ipconfig.h
  285. mock_link_monitor.cc
  286. mock_link_monitor.h
  287. mock_log.cc
  288. mock_log.h
  289. mock_log_unittest.cc
  290. mock_manager.cc
  291. mock_manager.h
  292. mock_metrics.cc
  293. mock_metrics.h
  294. mock_minijail.cc
  295. mock_minijail.h
  296. mock_mm1_bearer_proxy.cc
  297. mock_mm1_bearer_proxy.h
  298. mock_mm1_modem_location_proxy.cc
  299. mock_mm1_modem_location_proxy.h
  300. mock_mm1_modem_modem3gpp_proxy.cc
  301. mock_mm1_modem_modem3gpp_proxy.h
  302. mock_mm1_modem_modemcdma_proxy.cc
  303. mock_mm1_modem_modemcdma_proxy.h
  304. mock_mm1_modem_proxy.cc
  305. mock_mm1_modem_proxy.h
  306. mock_mm1_modem_simple_proxy.cc
  307. mock_mm1_modem_simple_proxy.h
  308. mock_mm1_modem_time_proxy.cc
  309. mock_mm1_modem_time_proxy.h
  310. mock_mm1_sim_proxy.cc
  311. mock_mm1_sim_proxy.h
  312. mock_modem.cc
  313. mock_modem.h
  314. mock_modem_cdma_proxy.cc
  315. mock_modem_cdma_proxy.h
  316. mock_modem_gobi_proxy.cc
  317. mock_modem_gobi_proxy.h
  318. mock_modem_gsm_card_proxy.cc
  319. mock_modem_gsm_card_proxy.h
  320. mock_modem_gsm_network_proxy.cc
  321. mock_modem_gsm_network_proxy.h
  322. mock_modem_info.cc
  323. mock_modem_info.h
  324. mock_modem_manager_proxy.cc
  325. mock_modem_manager_proxy.h
  326. mock_modem_proxy.cc
  327. mock_modem_proxy.h
  328. mock_modem_simple_proxy.cc
  329. mock_modem_simple_proxy.h
  330. mock_nl80211_socket.h
  331. mock_nss.cc
  332. mock_nss.h
  333. mock_openvpn_driver.cc
  334. mock_openvpn_driver.h
  335. mock_openvpn_management_server.cc
  336. mock_openvpn_management_server.h
  337. mock_portal_detector.cc
  338. mock_portal_detector.h
  339. mock_power_manager.cc
  340. mock_power_manager.h
  341. mock_power_manager_proxy.cc
  342. mock_power_manager_proxy.h
  343. mock_process_killer.cc
  344. mock_process_killer.h
  345. mock_profile.cc
  346. mock_profile.h
  347. mock_property_store.cc
  348. mock_property_store.h
  349. mock_proxy_factory.cc
  350. mock_proxy_factory.h
  351. mock_resolver.cc
  352. mock_resolver.h
  353. mock_routing_table.cc
  354. mock_routing_table.h
  355. mock_rtnl_handler.cc
  356. mock_rtnl_handler.h
  357. mock_service.cc
  358. mock_service.h
  359. mock_sockets.cc
  360. mock_sockets.h
  361. mock_store.cc
  362. mock_store.h
  363. mock_supplicant_bss_proxy.cc
  364. mock_supplicant_bss_proxy.h
  365. mock_supplicant_interface_proxy.cc
  366. mock_supplicant_interface_proxy.h
  367. mock_supplicant_network_proxy.cc
  368. mock_supplicant_network_proxy.h
  369. mock_supplicant_process_proxy.cc
  370. mock_supplicant_process_proxy.h
  371. mock_time.cc
  372. mock_time.h
  373. mock_traffic_monitor.cc
  374. mock_traffic_monitor.h
  375. mock_vpn.cc
  376. mock_vpn.h
  377. mock_vpn_driver.cc
  378. mock_vpn_driver.h
  379. mock_vpn_provider.cc
  380. mock_vpn_provider.h
  381. mock_vpn_service.cc
  382. mock_vpn_service.h
  383. mock_wifi.cc
  384. mock_wifi.h
  385. mock_wifi_provider.cc
  386. mock_wifi_provider.h
  387. mock_wifi_service.cc
  388. mock_wifi_service.h
  389. mock_wimax.cc
  390. mock_wimax.h
  391. mock_wimax_device_proxy.cc
  392. mock_wimax_device_proxy.h
  393. mock_wimax_manager_proxy.cc
  394. mock_wimax_manager_proxy.h
  395. mock_wimax_network_proxy.cc
  396. mock_wimax_network_proxy.h
  397. mock_wimax_provider.cc
  398. mock_wimax_provider.h
  399. mock_wimax_service.cc
  400. mock_wimax_service.h
  401. modem.cc
  402. modem.h
  403. modem_1.cc
  404. modem_1_unittest.cc
  405. modem_cdma_proxy.cc
  406. modem_cdma_proxy.h
  407. modem_cdma_proxy_interface.h
  408. modem_classic.cc
  409. modem_gobi_proxy.cc
  410. modem_gobi_proxy.h
  411. modem_gobi_proxy_interface.h
  412. modem_gsm_card_proxy.cc
  413. modem_gsm_card_proxy.h
  414. modem_gsm_card_proxy_interface.h
  415. modem_gsm_network_proxy.cc
  416. modem_gsm_network_proxy.h
  417. modem_gsm_network_proxy_interface.h
  418. modem_info.cc
  419. modem_info.h
  420. modem_info_unittest.cc
  421. modem_manager.cc
  422. modem_manager.h
  423. modem_manager_1.cc
  424. modem_manager_proxy.cc
  425. modem_manager_proxy.h
  426. modem_manager_proxy_interface.h
  427. modem_manager_unittest.cc
  428. modem_proxy.cc
  429. modem_proxy.h
  430. modem_proxy_interface.h
  431. modem_simple_proxy.cc
  432. modem_simple_proxy.h
  433. modem_simple_proxy_interface.h
  434. modem_unittest.cc
  435. netlink_attribute.cc
  436. netlink_attribute.h
  437. netlink_socket.cc
  438. netlink_socket.h
  439. nice_mock_control.cc
  440. nice_mock_control.h
  441. nl80211_attribute.cc
  442. nl80211_attribute.h
  443. nl80211_message.cc
  444. nl80211_message.h
  445. nl80211_socket.cc
  446. nl80211_socket.h
  447. nss.cc
  448. nss.h
  449. nss_unittest.cc
  450. openvpn_driver.cc
  451. openvpn_driver.h
  452. openvpn_driver_unittest.cc
  453. openvpn_management_server.cc
  454. openvpn_management_server.h
  455. openvpn_management_server_unittest.cc
  456. portal_detector.cc
  457. portal_detector.h
  458. portal_detector_unittest.cc
  459. power_manager.cc
  460. power_manager.h
  461. power_manager_proxy.cc
  462. power_manager_proxy.h
  463. power_manager_proxy_interface.h
  464. power_manager_unittest.cc
  465. process_killer.cc
  466. process_killer.h
  467. process_killer_unittest.cc
  468. profile.cc
  469. profile.h
  470. profile_dbus_adaptor.cc
  471. profile_dbus_adaptor.h
  472. profile_dbus_property_exporter.cc
  473. profile_dbus_property_exporter.h
  474. profile_dbus_property_exporter_unittest.cc
  475. profile_unittest.cc
  476. property_accessor.h
  477. property_accessor_unittest.cc
  478. property_iterator.h
  479. property_store.cc
  480. property_store.h
  481. property_store_unittest.cc
  482. property_store_unittest.h
  483. provider_db_unittest.bfd
  484. proxy_factory.cc
  485. proxy_factory.h
  486. refptr_types.h
  487. resolver.cc
  488. resolver.h
  489. resolver_unittest.cc
  490. routing_table.cc
  491. routing_table.h
  492. routing_table_entry.h
  493. routing_table_unittest.cc
  494. rpc_task.cc
  495. rpc_task.h
  496. rpc_task_dbus_adaptor.cc
  497. rpc_task_dbus_adaptor.h
  498. rpc_task_unittest.cc
  499. rtnl_handler.cc
  500. rtnl_handler.h
  501. rtnl_handler_unittest.cc
  502. rtnl_listener.cc
  503. rtnl_listener.h
  504. rtnl_listener_unittest.cc
  505. rtnl_message.cc
  506. rtnl_message.h
  507. rtnl_message_unittest.cc
  508. scope_logger.cc
  509. scope_logger.h
  510. scope_logger_unittest.cc
  511. service.cc
  512. service.h
  513. service_dbus_adaptor.cc
  514. service_dbus_adaptor.h
  515. service_sorter.h
  516. service_under_test.cc
  517. service_under_test.h
  518. service_unittest.cc
  519. shill_ares.cc
  520. shill_ares.h
  521. shill_config.cc
  522. shill_config.h
  523. shill_daemon.cc
  524. shill_daemon.h
  525. shill_main.cc
  526. shill_test_config.cc
  527. shill_test_config.h
  528. shill_time.cc
  529. shill_time.h
  530. shill_unittest.cc
  531. sockets.cc
  532. sockets.h
  533. static_ip_parameters.cc
  534. static_ip_parameters.h
  535. static_ip_parameters_unittest.cc
  536. store_interface.h
  537. supplicant_bss_proxy.cc
  538. supplicant_bss_proxy.h
  539. supplicant_bss_proxy_interface.h
  540. supplicant_interface_proxy.cc
  541. supplicant_interface_proxy.h
  542. supplicant_interface_proxy_interface.h
  543. supplicant_network_proxy.cc
  544. supplicant_network_proxy.h
  545. supplicant_network_proxy_interface.h
  546. supplicant_process_proxy.cc
  547. supplicant_process_proxy.h
  548. supplicant_process_proxy_interface.h
  549. technology.cc
  550. technology.h
  551. technology_unittest.cc
  552. TESTING
  553. testrunner.cc
  554. traffic_monitor.cc
  555. traffic_monitor.h
  556. traffic_monitor_unittest.cc
  557. virtio_ethernet.cc
  558. virtio_ethernet.h
  559. vpn.cc
  560. vpn.h
  561. vpn_driver.cc
  562. vpn_driver.h
  563. vpn_driver_unittest.cc
  564. vpn_provider.cc
  565. vpn_provider.h
  566. vpn_provider_unittest.cc
  567. vpn_service.cc
  568. vpn_service.h
  569. vpn_service_unittest.cc
  570. vpn_unittest.cc
  571. wifi.cc
  572. wifi.h
  573. wifi_endpoint.cc
  574. wifi_endpoint.h
  575. wifi_endpoint_unittest.cc
  576. wifi_provider.cc
  577. wifi_provider.h
  578. wifi_provider_unittest.cc
  579. wifi_service.cc
  580. wifi_service.h
  581. wifi_service_unittest.cc
  582. wifi_unittest.cc
  583. wimax.cc
  584. wimax.h
  585. wimax_device_proxy.cc
  586. wimax_device_proxy.h
  587. wimax_device_proxy_interface.h
  588. wimax_manager_proxy.cc
  589. wimax_manager_proxy.h
  590. wimax_manager_proxy_interface.h
  591. wimax_network_proxy.cc
  592. wimax_network_proxy.h
  593. wimax_network_proxy_interface.h
  594. wimax_provider.cc
  595. wimax_provider.h
  596. wimax_provider_unittest.cc
  597. wimax_service.cc
  598. wimax_service.h
  599. wimax_service_unittest.cc
  600. wimax_unittest.cc
  601. wpa_supplicant.cc
  602. wpa_supplicant.h