eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit c7b072ff2103624446b0d913fc8f98b4fa86cf5b
parent 0d2d34c3531e91cf5470a85daba6287c10243c4b
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date:   Wed,  9 Sep 2020 01:49:28 +0200

ap: Accept P2P wildcard SSIDs in probe requests

Add the special case "DIRECT-" SSID, called the P2P Wildcard SSID, in
ap_probe_req_cb so as not to reject those Probe Requests on the basis of
ssid mismatch.  I'd have preferred to keep all the P2P-specific bits in
p2p.c but in this case there's little point in adding a generic
config setting for SSID-matching quirks.

Diffstat:
Msrc/ap.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/ap.c b/src/ap.c @@ -1682,6 +1682,9 @@ static void ap_probe_req_cb(const struct mmpdu_header *hdr, const void *body, else if (ssid && ssid_len == strlen(ap->config->ssid) && /* One SSID */ !memcmp(ssid, ap->config->ssid, ssid_len)) match = true; + else if (ssid && ssid_len == 7 && !memcmp(ssid, "DIRECT-", 7) && + !memcmp(ssid, ap->config->ssid, 7)) /* P2P wildcard */ + match = true; else if (ssid_list) { /* SSID List */ ie_tlv_iter_init(&iter, ssid_list, ssid_list_len);