From: Sunil Dutt Date: Mon, 5 Dec 2016 11:22:20 +0000 (+0530) Subject: nl80211: Specify the BSSID in the QCA vendor scan X-Git-Tag: hostap_2_7~2033 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cd9d79261b6fe26d3a4e85b502f604e805c274;p=thirdparty%2Fhostap.git nl80211: Specify the BSSID in the QCA vendor scan This allows the vendor scan to be optimized when a response is needed only from a single, known BSS. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211_scan.c b/src/drivers/driver_nl80211_scan.c index 43ed2b74c..d7b61f677 100644 --- a/src/drivers/driver_nl80211_scan.c +++ b/src/drivers/driver_nl80211_scan.c @@ -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);