hostapd: fix feature detection
authorRobert Marko <robimarko@gmail.com>
Sun, 12 Jun 2022 11:22:33 +0000 (13:22 +0200)
committerChristian 'Ansuel' Marangi <ansuelsmth@gmail.com>
Sun, 12 Jun 2022 21:03:36 +0000 (23:03 +0200)
Fix hostapd feature detection after the bump to 2022-05-08.
getopt was not updated correctly after upstream added support for -q arg.

This reenables feature detection so that LuCi can check for features like
SAE, fast roaming etc.

Fixes: c35ff1affe8f ("hostapd: update to 2022-05-08")
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/network/services/hostapd/patches/420-indicate-features.patch

index 80d945ca169ad45fe9534740ade4cf841114292a..12edb6baccbcc1631f0fffc4a2c901b88dbcd966 100644 (file)
@@ -14,7 +14,7 @@
        wpa_supplicant_event_global = hostapd_wpa_event_global;
        for (;;) {
 -              c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:q");
-+              c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:vg:G:qv::");
++              c = getopt(argc, argv, "b:Bde:f:hi:KP:sSTtu:g:G:qv::");
                if (c < 0)
                        break;
                switch (c) {