]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: ap: don't return -EPERM
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 09:19:20 +0000 (10:19 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 12 Dec 2017 11:02:01 +0000 (12:02 +0100)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
ap.c

diff --git a/ap.c b/ap.c
index 0999999d3492c5ef19985339be191027ade8991f..4bab5b935ed4cc15275fd972ba5e375949a37a06 100644 (file)
--- a/ap.c
+++ b/ap.c
@@ -69,7 +69,7 @@ static int handle_start_ap(struct nl80211_state *state,
 
        /* beacon head must be provided */
        if (strcmp(argv[0], "head") != 0)
-               return -1;
+               return 1;
        argv++;
        argc--;