diff options
author | David Bauer <mail@david-bauer.net> | 2020-09-21 09:18:27 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2020-09-21 21:27:56 +0200 |
commit | d643b10a76965a94684012d2ddf36e2bcc146274 (patch) | |
tree | 4e73a65acbc2c4f15734f311f2d339e60e24a6c1 /package/network/services/hostapd/src | |
parent | 8e7aa739fb96c3d77238ec71c7b485fc8b17c8ac (diff) | |
download | upstream-d643b10a76965a94684012d2ddf36e2bcc146274.tar.gz upstream-d643b10a76965a94684012d2ddf36e2bcc146274.tar.bz2 upstream-d643b10a76965a94684012d2ddf36e2bcc146274.zip |
hostapd: ubus: fix infinite loop when configuring RRM NR
The return-code was set, however it was never returned, nor was
the loop interrupted.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/network/services/hostapd/src')
-rw-r--r-- | package/network/services/hostapd/src/src/ap/ubus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/network/services/hostapd/src/src/ap/ubus.c b/package/network/services/hostapd/src/src/ap/ubus.c index 293296d92c..9dd263837f 100644 --- a/package/network/services/hostapd/src/src/ap/ubus.c +++ b/package/network/services/hostapd/src/src/ap/ubus.c @@ -849,7 +849,6 @@ hostapd_rrm_nr_set(struct ubus_context *ctx, struct ubus_object *obj, struct blob_attr *tb_l[__NR_SET_LIST_MAX]; struct blob_attr *tb[ARRAY_SIZE(nr_e_policy)]; struct blob_attr *cur; - int ret = 0; int rem; hostapd_rrm_nr_enable(hapd); @@ -888,7 +887,7 @@ hostapd_rrm_nr_set(struct ubus_context *ctx, struct ubus_object *obj, continue; invalid: - ret = UBUS_STATUS_INVALID_ARGUMENT; + return UBUS_STATUS_INVALID_ARGUMENT; } return 0; |