diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-02-21 16:45:48 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2019-06-04 18:48:19 +0300 |
commit | d1f8f301ad225cad8d6dba320c97914cbd64c40e (patch) | |
tree | c9281f84b9ae3b226e3b6e069e6c366d5c1d51fe /binding/radio-binding.c | |
parent | 32dfec3cdb14ddc916248c183d7176c977b04d10 (diff) |
binding: make 4A truly optional
The non-4A codepaths were totally broken here
Bug-AGL: SPEC-2473
Change-Id: I1c3c49688566684455bf9522f68f506eaf6aa6c3
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Diffstat (limited to 'binding/radio-binding.c')
-rw-r--r-- | binding/radio-binding.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c index 02135fc..19cea20 100644 --- a/binding/radio-binding.c +++ b/binding/radio-binding.c @@ -57,6 +57,7 @@ static void scan_callback(uint32_t frequency, void *data) static int set_role_state(bool state, char **output) { +#ifdef HAVE_4A_FRAMEWORK int rc; json_object *response = NULL; json_object *jsonData = json_object_new_object(); @@ -114,6 +115,9 @@ failed_malformed: failed: return rc; +#else + return 0; +#endif } /* |