]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Specify the BSSID in the QCA vendor scan
authorSunil Dutt <usdutt@qti.qualcomm.com>
Mon, 5 Dec 2016 11:22:20 +0000 (16:52 +0530)
committerJouni Malinen <j@w1.fi>
Sun, 11 Dec 2016 19:36:16 +0000 (21:36 +0200)
This allows the vendor scan to be optimized when a response is needed
only from a single, known BSS.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211_scan.c

index 43ed2b74cf35561a460265082ec6f8961d3839f2..d7b61f67785ba32701cc545a322c108f656ba822 100644 (file)
@@ -1103,6 +1103,14 @@ int wpa_driver_nl80211_vendor_scan(struct i802_bss *bss,
                        goto fail;
        }
 
+       if (params->bssid) {
+               wpa_printf(MSG_DEBUG, "nl80211: Scan for a specific BSSID: "
+                          MACSTR, MAC2STR(params->bssid));
+               if (nla_put(msg, QCA_WLAN_VENDOR_ATTR_SCAN_BSSID, ETH_ALEN,
+                           params->bssid))
+                       goto fail;
+       }
+
        nla_nest_end(msg, attr);
 
        ret = send_and_recv_msgs(drv, msg, scan_cookie_handler, &cookie);