diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch')
-rw-r--r-- | meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch b/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch new file mode 100644 index 0000000000..a51302a0cb --- /dev/null +++ b/meta-oe/recipes-connectivity/wifi-test-suite/files/0003-fix-path-to-usr-sbin-for-script-and-make-script-for-.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | From fc7b7106dd0d8d123f20cbd8d408637fbc315e17 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ankit Navik <ankit.tarot@gmail.com> | ||
3 | Date: Tue, 25 Dec 2018 01:12:32 +0530 | ||
4 | Subject: [PATCH 3/3] fix path to /usr/sbin for script and make script for | ||
5 | generic shell | ||
6 | |||
7 | Signed-off-by: Ankit Navik <ankit.tarot@gmail.com> | ||
8 | --- | ||
9 | lib/wfa_cs.c | 4 ++-- | ||
10 | scripts/dev_send_frame | 2 +- | ||
11 | scripts/sta_reset_parm | 2 +- | ||
12 | 3 files changed, 4 insertions(+), 4 deletions(-) | ||
13 | |||
14 | diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c | ||
15 | index 6b1f5a2..2a18533 100644 | ||
16 | --- a/lib/wfa_cs.c | ||
17 | +++ b/lib/wfa_cs.c | ||
18 | @@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) | ||
19 | /* | ||
20 | * check a script file (the current implementation specific) | ||
21 | */ | ||
22 | - ret = access("/usr/local/sbin/getipconfig.sh", F_OK); | ||
23 | + ret = access("/usr/sbin/getipconfig.sh", F_OK); | ||
24 | if(ret == -1) | ||
25 | { | ||
26 | ipconfigResp->status = STATUS_ERROR; | ||
27 | @@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) | ||
28 | st = remove("/tmp/processid.txt"); | ||
29 | } | ||
30 | |||
31 | - sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); | ||
32 | + sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); | ||
33 | st = system(cmdStr); | ||
34 | |||
35 | tmpfd = fopen("/tmp/processid.txt", "r+"); | ||
36 | diff --git a/scripts/dev_send_frame b/scripts/dev_send_frame | ||
37 | index 9e6afd3..3c37d61 100644 | ||
38 | --- a/scripts/dev_send_frame | ||
39 | +++ b/scripts/dev_send_frame | ||
40 | @@ -1,4 +1,4 @@ | ||
41 | -#!/bin/bash | ||
42 | +#!/usr/bin/env sh | ||
43 | |||
44 | # | ||
45 | # Copyright (c) 2016 Wi-Fi Alliance | ||
46 | diff --git a/scripts/sta_reset_parm b/scripts/sta_reset_parm | ||
47 | index 2aff1f1..2c1c31e 100644 | ||
48 | --- a/scripts/sta_reset_parm | ||
49 | +++ b/scripts/sta_reset_parm | ||
50 | @@ -1,4 +1,4 @@ | ||
51 | -#!/bin/bash | ||
52 | +#!/usr/bin/env sh | ||
53 | |||
54 | # | ||
55 | # Copyright (c) 2016 Wi-Fi Alliance | ||
56 | -- | ||
57 | 2.7.4 | ||
58 | |||