Add Broadcast (-B) option while triggering dhcp client 46/235846/1 submit/tizen/20200614.225356
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 10 Jun 2020 07:52:38 +0000 (13:22 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 10 Jun 2020 07:58:37 +0000 (13:28 +0530)
Description:
    toybox dhcp client has implemented -B option
    to forcefully set broadcast flag in DHCP packet.

    So to maintain previous behaviour of tizen_5.5)
    (which sends broadcast flag enabled dhcp packet),
    we need to add -B option while triggering dhcp client.

Reference:
    https://review.tizen.org/gerrit/#/c/platform/upstream/toybox/+/225942/

Change-Id: I65de16264356efa23ba1be955ce76f7a0463bb3f
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
files/wifi-direct-dhcp.sh.in
packaging/wifi-direct-manager.spec

index a9b76ea..dca9211 100644 (file)
@@ -54,7 +54,7 @@ start_dhcp_client()
        fi
 
        @BIN_DIR@/vconftool set -t string memory/private/wifi_direct_manager/dhcpc_server_ip "0.0.0.0" -f
-       @BIN_DIR@/dhcp -S -i $interface -s @TZ_SYS_RO_ETC@/wifi-direct/udhcp_script.non-autoip &
+       @BIN_DIR@/dhcp -S -B -i $interface -s @TZ_SYS_RO_ETC@/wifi-direct/udhcp_script.non-autoip &
 }
 
 
index e2e0c3d..5a8ab8f 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.280
+Version:       1.2.281
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0