]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Use correct attribute for scan flags in vendor scan
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>
Wed, 4 Jan 2017 13:30:00 +0000 (19:00 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 5 Jan 2017 13:49:15 +0000 (15:49 +0200)
This fixes the netlink attribute identifier for the scan flags when
using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN.

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

index 3ad0d83c68dc2890135d05f1ec72690a81189c29..7dcfae28ee6fca96b4dff7c557b49c634b5bf422 100644 (file)
@@ -1096,7 +1096,7 @@ int wpa_driver_nl80211_vendor_scan(struct i802_bss *bss,
        }
 
        if (scan_flags &&
-           nla_put_u32(msg, NL80211_ATTR_SCAN_FLAGS, scan_flags))
+           nla_put_u32(msg, QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS, scan_flags))
                goto fail;
 
        if (params->p2p_probe) {