]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - ap.c
iw: ap: don't return -EPERM
[thirdparty/iw.git] / 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--;