Skip to content

Commit

Permalink
Android: Also look for DHCP client in /vendor/bin
Browse files Browse the repository at this point in the history
New Android flavors will have the DHCP client in /vendor/bin This commit
looks for these client programs in this partition, too.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
  • Loading branch information
Ankita Bajaj authored and Jouni Malinen committed Jan 11, 2019
1 parent 33f2acf commit 6100039
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions p2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ void start_dhcp(struct sigma_dut *dut, const char *group_ifname, int go)
} else if (access("/system/bin/dhcptool", F_OK) != -1) {
snprintf(buf, sizeof(buf), "/system/bin/dhcptool %s",
group_ifname);
} else if (access("/vendor/bin/dhcpcd", F_OK) != -1) {
snprintf(buf, sizeof(buf), "/vendor/bin/dhcpcd %s",
group_ifname);
} else if (access("/vendor/bin/dhcptool", F_OK) != -1) {
snprintf(buf, sizeof(buf), "/vendor/bin/dhcptool %s",
group_ifname);
} else {
sigma_dut_print(dut, DUT_MSG_ERROR,
"DHCP client program missing");
Expand Down

0 comments on commit 6100039

Please sign in to comment.