summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-02-04 12:34:20 -0800
committerColin Cross <ccross@android.com>2013-06-14 15:04:54 -0700
commit14c02f245e56687b765487d25a034d71196d33b6 (patch)
treeadee8f14a64c789fd8671796869ad06e1874e45f
parent8ab86c78654388ebafb23d0469c091118310ce58 (diff)
downloadplatform_hardware_libhardware_legacy-14c02f245e56687b765487d25a034d71196d33b6.tar.gz
platform_hardware_libhardware_legacy-14c02f245e56687b765487d25a034d71196d33b6.tar.bz2
platform_hardware_libhardware_legacy-14c02f245e56687b765487d25a034d71196d33b6.zip
Use accessor to read property serial numbers
Hide the implementation of the property structures by using an accessor. Change-Id: Ic604935882f6085e3d082baa651bad9bafe0a54a
-rw-r--r--wifi/wifi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wifi/wifi.c b/wifi/wifi.c
index cbf8303..6b4d32d 100644
--- a/wifi/wifi.c
+++ b/wifi/wifi.c
@@ -553,7 +553,7 @@ int wifi_start_supplicant(int p2p_supported)
*/
pi = __system_property_find(supplicant_prop_name);
if (pi != NULL) {
- serial = pi->serial;
+ serial = __system_property_serial(pi);
}
#endif
property_get("wifi.interface", primary_iface, WIFI_TEST_INTERFACE);
@@ -570,7 +570,7 @@ int wifi_start_supplicant(int p2p_supported)
__system_property_read(pi, NULL, supp_status);
if (strcmp(supp_status, "running") == 0) {
return 0;
- } else if (pi->serial != serial &&
+ } else if (__system_property_serial(pi) != serial &&
strcmp(supp_status, "stopped") == 0) {
return -1;
}