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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
444930e5b6
commit
62cd9d7926
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue